Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting control source to a variable
Message
From
11/07/2002 13:31:19
Brian Atkins
Lender Support Systems, Inc.
San Diego, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00677331
Message ID:
00677650
Views:
23
Thanks for your suggestion.

Unfortunately it doesn't seem to correct the problem.

Are there any other suggestions out there?

Brian


>Try to trim trailing spaces.
lcsource = 'ARCHIVE.' + ALLTRIM(udarc.field_name)
>.controlsource = lcsource
>* or
>.controlsource = 'ARCHIVE.' + ALLTRIM(udarc.field_name)
>
>
>>Hi,
>>
>>I have a user defined screen in which I want to assign the controsource of a textbox to a value stored in a variable.
>>
>>This works fine:
>>.controlsource='ARCHIVE.FAX'
>>
>>I have a table called udarc which holds the field_name I want to assign as the control source
>>unfortunately when I do:
>>
>>lcsource='ARCHIVE.'+udarc.field_name
>>.controlsource=lcsource
>>
>>I get:
>>
>>the data source for this object must be a variable reference.
>>
>>In this case of course the value in udarc.field_name is 'FAX'
>>
>>How do I get this to work?
>>
>>Thanks in advance,
>>
>>Brian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform