Mensaje
De
26/06/2008 09:43:51
 
General information
Foro:
Visual FoxPro
Category:
Programación, sintáxis y comandos
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
ID de la conversación:
01326898
ID del mensaje:
01326920
Views:
16
>>>Using vfp 8
>>>
>>>lcStringValue=[1,234]
>>>? VAL(lcStringValue)
>>>
>>>returns 1.00
>>>
>>>How can I get the real value of 1234?
>>>
>>>Thanks
>>
>>the ultimate solution:
>>Function NewVal
>>  Parameters lcIndata
>>Return Val(Chrtran(lcIndata,',.',Repl(Set('POINT'),2)))
>
>I think the comma is not from SET POINT. It's thousands separator.

Yes, sorry. In my work I almost never have to worry about any thousands separator, but I frequently have to work with different "decimal separators".
Previous
Responder
Mapa
Ver