Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic value of textbox in a grid
Message
From
06/04/1998 16:10:00
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
 
 
To
06/04/1998 12:34:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00089867
Message ID:
00089968
Views:
30
>>Hi:
>>
>> This should be easy but I have yet to make it work.
>> I want to change the value of a textbox inside a grid
>> depending on a logical field in a table.
>>
>>Eg:
>>crea table users (user C(10), level L)
>>
>>The grid has two columns:
>> grid.column1.ControlSource = users.user
>> with grid.column2
>> .ControlSource = users.level
>> .Bound = .F. && I don't want a ControlSource on the textbox
>> .ReadOnly = .T.
>> .Sparse = .F.
>> endwith
>>
>> grid.column2.text1.value = iif(users.level, 'Master User', 'Normal User')
>> FAILS -> it only uses the value of users.level on the first record
>>
>> Any ideas aside from adding a new field to the table?
>>
>>TIA
>grid.column2.controlsource = "iif(users.level, 'Master User', 'Normal User')"
>This would be a readonly calculated field.
>Cetin

Thanks, that did it.

I was so "concentrated" in "pushing" the value to the textbox that
I overlooked assigning it to the column.

Thnx
R. Davila
DBA / Network Administrator
Administracion de Fomento Comercial
Gobierno de Puerto Rico

Still waiting for FoxPro for LINUX
Previous
Reply
Map
View

Click here to load this message in the networking platform