Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building up an object property name from strings ?
Message
From
25/10/2005 19:26:49
 
 
To
25/10/2005 18:55:26
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01062046
Message ID:
01062093
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Rich
>
>This is my Plan B. It does make the referencing between objects much easier but there is more problems with the set up as there are variable numbers of the textboxes.
>
>The code looks much easier though so I may go for it.
>
>I am also intrigued as to why the original code with = doesn't work whereas STORE TO does! The manual says they are the same.
>
>Thanks
>
>mike

I don't think name expressions work on the left side of an = assignment. For example
("abc") = 1
gives an "Unrecognized Command Verb" for me while
STORE 1 TO ("abc")
works just fine. You could have used macro substitution
lnTag = ALLTRIM(This.Tag)
Thisform.ResultLine&lnTag..txtPatientNotes.Value = ;
    ALLTRIM(This.Value) +;
    EVALUATE(ALLTRIM("ThisForm.ResultLine"+ALLTRIM(This.tag)+".txtPatientNotes.Value"))
but STORE is better.
Previous
Reply
Map
View

Click here to load this message in the networking platform