Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a minimum password
Message
De
13/01/2011 06:27:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/01/2011 11:47:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01495915
Message ID:
01496009
Vues:
51
>Hello
>Im trying to create a password field for an application. I already set
>the max size to ten in the database. but im wondering how should i go about setting
>the min size of that field since there isnt a minimum property.
>Is there anyway i can count the 'items' in the ".value" of the text box then create a statement that throws an error when the count of the "items" in the textbox field is less than 8?
>or is there any other way to go about doing this?

Others have pointed out the len() function.

As to the event, in general I prefer postponing any validation until data is saved (or rather, until the user TRIES to save it). I find this approach to have several advantages. Mainly, it is simpler to program, the user can input data in any order, and fields the user never enters are also validated.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform