Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TYPE() function misfire....
Message
 
To
03/08/1998 16:57:20
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00123594
Message ID:
00123646
Views:
16
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform