Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validation the input of a grid textbox
Message
De
01/03/2002 15:03:26
 
 
À
27/02/2002 23:52:25
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00626172
Message ID:
00627165
Vues:
11
Instead of using a text box in column1 try to use a combobox. Set the Style property to "2 - Dropdown list" and the RowSourceType to "2 - Alias" and RowSource to "TableText1.FieldA". That way the user is only allowed to enter valid values.

Hope this helps.

Aloha,

James

>Dear all,
>
>How to write a routine to vlaidate the input of a textbox of a grid say text1?
>
>Check the value of column1, find whether it is exist in a table TableText1.FieldA or not, if it exists, assign the grid.column2.text1.value = TableText1.FieldB, otherwise clear the input of column1.text1, set focus on that cell and force the user to enter the correct input or press to escape.
>
>I have tried to implement by LostFocus Method of grid.column1.text1, however the result is unsatisfactory and the user can left it blank and sewitch to the other cells
>
>With regards,
>
>Ransome
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform