TGet RIGHT clause is not working

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

TGet RIGHT clause is not working

Post by Enrico Maria Giordano »

This is a sample:

Code: Select all

#include "Fwce.ch"


FUNCTION MAIN()

    LOCAL oWnd

    LOCAL nVar := 123.45

    DEFINE WINDOW oWnd

    @ 1, 1 SAY "Test:  "

    @ 1, 10 GET nVar;
            SIZE 70, 20;
            PICTURE "@E 9999.99";
            RIGHT

    ACTIVATE WINDOW oWnd

    RETURN NIL
EMG
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Re: TGet RIGHT clause is not working

Post by Ugo »

EnricoMaria wrote:This is a sample:

Code: Select all

#include "Fwce.ch"


FUNCTION MAIN()

    LOCAL oWnd

    LOCAL nVar := 123.45

    DEFINE WINDOW oWnd

    @ 1, 1 SAY "Test:  "

    @ 1, 10 GET nVar;
            SIZE 70, 20;
            PICTURE "@E 9999.99";
            RIGHT

    ACTIVATE WINDOW oWnd

    RETURN NIL
EMG
I confirm, and this problem is also in redefine!
The number is not RIGHT!!!!
is possible to solve?
Thank you
Ciao, best regards,
Ugo
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

The problem comes from the PICTURE. If it is not used, then the ES_RIGHT style is working fine:

Code: Select all

    @ 1, 10 GET nVar; 
            SIZE 75, 20; 
            RIGHT 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Post by Ugo »

Antonio Linares wrote:The problem comes from the PICTURE. If it is not used, then the ES_RIGHT style is working fine:

Code: Select all

    @ 1, 10 GET nVar; 
            SIZE 75, 20; 
            RIGHT 
Dear Antonio,
it work fine!
I necessity to transform the number with this picture "@E 999,999.99" and i modify with the say:

Code: Select all

    REDEFINE SAY oSay PROMPT cVar
       oSay:bGet := {|| Transform( nVar, "@E 999,999.99" ) }
with this solution the number result with gray background and in left position :(
There are other possibility?
Ciao, best regards,
Ugo
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ugo,

You may use PadL() to add spaces on the left side. is that ok ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply