>>>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement