>Hi gang-
>
>I haven't programmed in VFP for a little while so I think i am losing my mind asking this. I am trying to have a property (cshipto) as the name of an object on the form (this.parent.cbocustno). Then, I will use the value stored in cshipto to lookup the value of the object (this.parent.cbocustno.value).....is there a way to do this?
>
>In other words, how do i use the value of the property to look up the value in another object?
>
>Thanks for your help...i think this is a gimmie....
>
>Geoff
Geoff,
FWIW do not do it. You might end up with hanging object references. Simply use with..endwith instead. But in any case these are legal :
cshipto = this.parent.cbocustno
*...
myValue = cshipto.Value
You might better handle it by storing the name as string instead. ie:
cshipto = stuff(sys(1272,this.parent.cbocustno),1,len(thisform.name),'thisform')
with eval(cShipTo)
myValue = .Value
endwith
Cetin