Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format Numeric values
Message
From
08/01/1999 15:05:11
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174133
Message ID:
00174171
Views:
30
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform