Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where do I put the code??
Message
From
21/11/1996 15:08:14
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00013033
Message ID:
00013053
Views:
34
>>>I have a text box that is disabled and I wish it to display the contents of a memory variable. With debug window open and this.cUserName displays the contents, but I cannot figure out where to put the code to make it display in the text box. Tried *=this.cUserName* in the value but no go, also tried it in the control source, init of the form...etc. Any ideas?
>>>
>>>Jon
>>
>>Where are you setting the variable?
>
>It is stored to cUserName in my PUBLIC nonvisual application.
>
>>In the portion of the code that you are setting the variable, you can just assign that value to the text field
>> eg.
>> ThisForm.txt_MyTextBox.value = This.cUserName
>
>I have tried this with no luck. this.cUserName displays it as well as oApp.cUserName. The value is out there, I'm just having difficulty assigning the value to display in my textbox.
>
>Jon

Normally it's enough to issue:
thisform.YourTxtBox.value=cVariable
If it doesn't work I would recommend to check ControlsSource (make it empty), InputMask and/or Format properties.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform