Irwin
unread,Aug 22, 2014, 9:36:26 AM8/22/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mundovis...@googlegroups.com
Intenta con este ejemplo a ver si te sirve:
LOCAL _canent, _candec, _cancar, _at, _canfin
_canent = PADL(ALLTRIM(STR(INT(micursor.precio))),2,SPACE(1))
IF (VAL(_canent) == 0)
_canent = SPACE(1)+SPACE(1)
ELSE &&(VAL(_canent) == 0)
ENDIF &&(VAL(_canent) == 0)
_cancar = ALLTRIM(STR(micursor.precio,5,3))
_at = AT('.',_cancar)
_candec = PADL(SUBSTR(_cancar,_at+1,LEN(_cancar)-_at),3,'0')
_canfin = _canent + _candec
en la variable _canfin obtendrías el resultado final.
Saludos!