Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List of fields in DBF
Message
From
27/04/1998 07:03:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00094989
Message ID:
00095068
Views:
21
>Hello everyone, me again... >Is there a way to get a list of fields from a table? =AFIELDS() command gives a list of fields. >What I would like to do is as follows: > >on the save button, check all fields on the form and see if any >of them were left blank and based on this inform the user that >so and so field can not be left blank. Create a property in your base class: is_allowed_blank=.f. METHOD is_blank * Assumes character field IF LEN(ALLTRIM(this.value))=0 AND this.is_allowed_blank =MESSAGEBOX(blah, blah, blah) this.setfocus ENDIF Then you can loop through all fields on the form and check call each is_blank method. Or Loop through each field by the forms collection .CONTROLS(#) and check their. Gene Berger The Corner Analyst 13995 Graham Road Pataskala, Ohio 43062 (614) 927-8994 gberger@asacomp.com
Previous
Reply
Map
View

Click here to load this message in the networking platform