Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in wizard txtbtn
Message
 
À
01/10/1997 11:38:44
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00052053
Message ID:
00052800
Vues:
36
>>>>The statement TYPE("m.cChildKey")#TYPE('oAddRecKeyValue') is always .T.
>>>because TYPE("m.cChildKey") is always Character type. cChildKey is assigned
>>>with my key with type Integer. How do I make the code looks at my key type
>>>instead of the property type.
>>
>>TYPE("m.cChildKey") will always return "C" because the m.cChildKey
>>contains the _name_ of the real key. TYPE(m.cChildKey) (no quotes) will
>>return the type of what m.cChildKey contains, i.e. the key itself. Just
>>remove the quotes.
>
>Hi! Thx for answering my question.
>
>You answered part of my questions. However, the quotes were added in VFP5.0 to solve some 'add blank record....' kind of bug in VFP3.0. I have not used VFP3.0 before but I guess I should not be going back to the buggy code. What is your opinion?
>
>Once again, thx.
>
>
>Tai

Tai, in VFP I try to avoid the use of "m." in front of my variables. It's possible that this may be causing some of your problems. Try using just
type(cChildKey) and see if that works.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform