Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command button in grid
Message
From
23/11/2005 04:21:23
 
 
To
23/11/2005 03:46:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01071465
Message ID:
01071499
Views:
22
I don't have the chance to test it, but you can replace controlsource with the name of the field, if it's only used once. =!Empty(yourtable.yourfield). Note the !.

BTW, I gave you a misleading tip. This.controlsource will point to the name of the field, which will never be empty. !Empty(Evaluate(this.controlsource)) or !Empty(Evaluate(this.parent.controlsource)) should work, if you put it in the visible property of the commandbutton. And remember to remove or make invisible the default textbox in the column.

>OK
>I found the place for code but I got a 'syntax error' message by the expression builder.
>I tried this 3 option and I got alwais the message:
>
Empty(this.controlsource)
>!Empty(this.controlsource)
>=!Empty(this.controlsource)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform