Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List of fields in DBF
Message
De
27/04/1998 07:03:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00094989
Message ID:
00095068
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform