>>>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.
TYPE should work, but you could check PARAMETERS() to see if it's getting passed.
Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown