Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transform()
Message
De
19/12/2016 03:07:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01645510
Message ID:
01645518
Vues:
52
>Hi,
>
>I have a code in the program that converts a string of numbers (not a number but a string of numbers) according to the second parameter of Transform(). For example,
>
>nNumber = 67849
>cMask = 'M XXXXXXXXXX'
>cNumber = transform( alltrim(str(nNumber)) + "@R" + cMask)
>*-- the result, cNumber, should be 'M 67849'
>
>
>The above works unless the cMask is 'A XXXXXXXXXX'
>
>Why does the 'A' make a difference?
>
>TIA

Not only A, but your code (as corrected by Naoto) won't work with the alphabetic characters H, L, N, U, W, X, Y, either, because they have a functional meaning for the construction and application of the mask.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform