TGet RIGHT clause is not working

TGet RIGHT clause is not working

Postby Enrico Maria Giordano » Sat Feb 10, 2007 6:07 pm

This is a sample:

Code: Select all  Expand view
#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
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia



Re: TGet RIGHT clause is not working

Postby Ugo » Thu Sep 06, 2007 6:17 am

EnricoMaria wrote:This is a sample:

Code: Select all  Expand view
#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
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Antonio Linares » Thu Sep 06, 2007 9:47 am

The problem comes from the PICTURE. If it is not used, then the ES_RIGHT style is working fine:
Code: Select all  Expand view
    @ 1, 10 GET nVar;
            SIZE 75, 20;
            RIGHT
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ugo » Thu Sep 06, 2007 4:57 pm

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  Expand view
    @ 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  Expand view
    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
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Antonio Linares » Thu Sep 06, 2007 6:22 pm

Ugo,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 9 guests