Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting control source to a variable
Message
De
11/07/2002 18:43:10
Brian Atkins
Lender Support Systems, Inc.
San Diego, Californie, États-Unis
 
 
À
11/07/2002 14:08:58
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00677331
Message ID:
00677791
Vues:
24
Well Irv,

Now I am completely baffled. I know I tried it that way before and it didn't work, but after reading your note I tried it again and it works great, so thank you.

Brian
>In Init event of a Form I do something like this:
>
>
>Testvar = 'Agenttrack.name'
>THIS.Text2.ControlSource =  Testvar
>
>
>...and it works, assigning the value from the table...check your spelling and table names, etc...
>
>HTH,
>
>-Irv.
>
>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform