Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic value of textbox in a grid
Message
From
06/04/1998 12:22:59
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Dynamic value of textbox in a grid
Miscellaneous
Thread ID:
00089867
Message ID:
00089867
Views:
65
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
R. Davila
DBA / Network Administrator
Administracion de Fomento Comercial
Gobierno de Puerto Rico

Still waiting for FoxPro for LINUX
Next
Reply
Map
View

Click here to load this message in the networking platform