>>Has anyone ever had the TYPE function error?
>>
>>Here's the situation.....
>>
>>FPD 2.6 on a 486-33 (doesn't need to run on anything faster)
>>
>>We have an error coming up from a UDF on a variable that is calculated from a parameter.
>>
>>Trying to get around (what we thought was) the source of the error, decided to try checking the 'type' of the parameters and make sure they were what we expected them to be, but the line
>>
>>IF type('pStrttime') # 'C'
>>
>>returns an error along the lines of "Variable Not Found"
>>
>>Any ideas??
>
>does pStrttime exist there? (obvious i know, but as complicated as i can handle today)
If it helps (I know it's Monday), here's the basic code
Function Exectime
parameter pstrttime,pstrtdate
if type('pstrttime') # 'C'
.
.
.
so yes, pstrttime DOES exist and in the worst case, TYPE should return either 'U' (Unknown/Undefined), or 'L' because the parameter statement SHOULD create the variable name as a logical.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place