>>>>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