Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid.column.text1.inputmask has no effect?
Message
 
À
23/09/1998 19:57:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00140112
Message ID:
00140347
Vues:
26
>>I was working on a custom form for displaying results of an automatic process running from the .activate event of the form. It works fine, there's just one glitch that I don't mind this time, but would certainly need solved for some other cases if it reappears.
>>
>>The numeric columns in the grid were assigned an InputMask of "999,999,999.99"; the numbers still display without separators. I've used a currency field, and the grid (quite unnecessarily) displayed all four decimals. Tried with n(16,2), it displayed the decimals ok (of course), but sitll didn't show the separators.
>>
>>The InputMask is assigned in the form's init, like this:
>>
>>this.nGrid1.column5.text1.InputMask=g_pc
>>
>>G_pc is defined elsewhere; in the debugger I see it properly assigned to the InputMask property of the textbox in the column. Still, the numbers show without it. Any clues?
>
>Is your column's sparse property set to .F.? Otherwise default textbox displays in inactive cells.

I have found that often (more often than not), you must set the focus to the column in order for the input mask to appear. I've even written a method called
SetFocusAllColumns() within my grid class which does that after the grid is built (self building grid).

Steve
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform