How can I change the PICTURE "99,999" from a numeric field to this PICTURE "9,999.9"

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

How can I change the PICTURE "99,999" from a numeric field to this PICTURE "9,999.9"

#1 Post by digitsoft »

Good morning Roger
How can I change the PICTURE "99,999" from a numeric field to this PICTURE "9,999.9" and have it reflected on the screen at once

Thank you.
Nolberto Paulino
Regards

Piotr D
Posts: 129
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: How can I change the PICTURE "99,999" from a numeric field to this PICTURE "9,999.9"

#2 Post by Piotr D »

Hi Nolberto,
the simplest way is to double the DCGET like:

@ 1,1 DCGET nVar PICT "999,99" HIDE {|| nChoice=2}
@ 1,1 DCGET nVar PICT "9,999.99" HIDE {||nChoice=1}

Regards,
Piotr

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: How can I change the PICTURE "99,999" from a numeric field to this PICTURE "9,999.9"

#3 Post by digitsoft »

Thanks for your help
use this solution

bPicture := {|| IIF(LEFT(cMetodo,3)="FSS" .AND. LEFT(cFp,1)="Q","9999.9","99,999") }
@ 05.4,01 DCSAY "Duración:" GET cTiempo PICT bPicture MESSAGE "Digite el Tiempo ó Duración del Prestamo" INTO oMsgBox ;
GETPOS 05.25,08 ;
GETOBJECT oTiempo ;
POPUP {|n|DC_PopCalc(n)} ;
POPKEY xbeK_F6 ;
VALID {|c| ValidarCampo(5.1,aApp,GetList) } ;
PARENT oMyGroup1 ;
WHEN {|obj| lEditar .AND. SQLFieldGet(oDXCAM02,"BCE_Cap_An") = 0} ;
HIDE {|| LEFT(cCodTip,2)="PR" }
Nolberto Paulino
Regards

Post Reply