Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric to character with format
Message
De
07/12/2004 12:40:21
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
07/12/2004 06:59:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
00967416
Message ID:
00967524
Vues:
7
Hello, Tariq-

>I have two textboxes, the first is numeric and the later is character type.
>
>Text1.value is 98745184
>
>In text2.value, I want to show this data as
>
>=498,745,184/=
>
>What should I do?
>
>The numeric data could be different every type.

Set the Text2.ControlSource to "Thisform.Text1.Value" (for example, and without the quotes).
Set the Text2.Format property to "R" (without the quotes).
Set the Text2.InputMask to ">=499,999,999/=" (again, without the quotes).

The "R" in the Format property means insert the special characters (the >, =, 4, and /) into the display instead of using up characters spaces from the value. (If that makes sense.) The text2 display will be refreshed when the the first textbox control loses focus.

Depending on how close this fits your needs, you may need to make some adjustments. For example, can the numbers be fewer than 9 digits? If so, post back and we can add some code to the refresh of the text2 to change the input mask to suit the number.

HTH.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform