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

Click here to load this message in the networking platform