Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format Numeric values
Message
De
08/01/1999 15:05:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00174133
Message ID:
00174171
Vues:
31
>The way I have it is for the to type in there but that could very easily changed if it bacame necessary to achieve the goal.

If you mean here, that your users can live with read-only grid.column then it can be achieved by using custom form method as grid.column.controlsource. This method will return properly formatted string, e.g.
cString=chrtran(alltrim(str(table1.dummy,10,2)),".",",")
cRetvalue=""
nCounter=0
FOR n=len(cString) to 1 step -1
 nCounter=nCounter+1
 IF mod(nCounter,4)=3 and nCounter>3
  cRetvalue="."+cRetvalue
 ENDIF
 cRetvalue=substr(cString,n,1)+cRetvalue
ENDFOR
RETURN cRetvalue
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform