Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TYPE() function misfire....
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00123594
Message ID:
00123637
Vues:
19
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform