--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+unsubscribe@googlegroups.com
For more options, visit http://groups.google.com/group/mvdbms
HI
.
Because, for us Pr1mates, named common was ALWAYS initialised? Put a
variable in named common, and it could NEVER be unassigned?
So at the start of my code, I had an include block that said
IF FILEVAR EQ "" THEN OPEN FILE, ...
Which was great until we ported it to UV and pretty much EVERY program
would crash ...
I said "buffer" I meant "register"
Not sure what you mean.
Are you referring to the Run Time Engine names?
And are you referring to the first byte of the register or the entire register?
QM stores data internally in a type variant manner. The actual data type associated with a variable may change as new data is stored. The VARTYPE() function allows a program to determine the internal data type being used. It returns one of the following values. The symbolic names shown are defined in the SYSCOM KEYS.H include record.
Ross, let's say we have a subroutine that accepts a file name as a formal argument. Years pass and some new person passes a file pointer instead. If the subroutine could check the variable type it could accept either and behave properly instead of blowing up. By your definition this would signify a problem with the subroutine that it is being used improperly. I disagree. Without this ability to check the variable type, the subroutine writer doesn't have a fighting chance to protect against fringe misuse.
I tend to agree with Jim ... your program should be in total control ... if you have to check to see if a variable has been assigned, or is of the right "type", fix the problem in the program tather than the symptom in the runtime.
--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+unsubscribe@googlegroups.com
Hi Wol
This is Chuck's original point. He is being passed this stuff by a
subroutine to which he has no source. So your admonition "don't do it"
is impractical. He doesn't know what he's got so he can't not do it.
It always amazes me how so many people are happy to put up with hacky
workarounds and stupid restrictions, just to work around someone else's
stupid decisions.
Visage > Better by Design!
Hi Wol
.
Decompilers help. :)
I tend to agree with Jim ... your program should be in total control ... if you have to check to see if a variable has been assigned, or is of the right "type", fix the problem in the program tather than the symptom in the runtime.