Page 1 of 1

@ get [clausula When]

Posted: Fri May 14, 2010 1:39 am
by danielmaximiliano
Hola Amigos:
No encontre ningun ejemplo dentro de HMG o Minigui
del uso de la clausula When dentro de un @GET, Utilizo la Clausula
VALID variable>0 para no dejar que dejen en blanco la variable, necesito despues agregar una nueva condicion.
esto saque del "xHarbour Reference Documentation "

@...GET
Creates a Get object (entry field) and displays it to the screen
Syntax
@ <nRow>, <nCol> ;
[SAY <xSay> [PICTURE <cSayPict>] COLOR <cSayColor>] ;
GET <xVar> [PICTURE <cGetPict>] [COLOR <cGetColor>] ;
[WHEN <lWhen>] ;
[VALID <lValid> | RANGE <xMinVal>, <xMaxVal> ] ;
[MESSAGE <cMessage> ] ;
[SEND <msg>] ;
[GUISEND <msg>]

Alguno uso esta Clausula When o Message ?
gracias
DaNiElMaXiMiLiAnO

Re: @ get [clausula When]

Posted: Fri May 14, 2010 11:31 am
by esgici
danielmaximiliano wrote:Hola Amigos:
No encontre ningun ejemplo dentro de HMG ... @GET...
Google wrote:...found no examples in HMG or Phrase ... @ GET...
Hola Daniel

@ ... GET is a Harbour implementation and HMG have TEXTBOX instead of it.

Regarding WHEN and VALID clause:

- You can use "Input Mask" or "Format" string for validity check
- Check by program "WHEN" user can enter value to TEXTBOX. For example :

Code: Select all

    if <xxx.variable> > 0 
       <formx.txbY. READONLY := .F.
    else
       <formx.txbY. READONLY := .T.
    endif 
Saludos

--

Esgici

Re: @ get [clausula When]

Posted: Fri May 14, 2010 11:35 am
by esgici
and ...

Alternatively, you can use single column, single row and noheaders grid including your text box. Because GRID control include VALID and WHEN clauses.

Saludos

--

Esgici

Re: @ get [clausula When]

Posted: Sat May 15, 2010 10:05 am
by mustafa
Hola danielmaximiliano
Mira estos Post sobre VALID haber si te sirven:
http://hmgforum.com/viewtopic.php?f=5&t=1243
y un ejemplo: http://hmgforum.com/viewtopic.php?f=15&t=1244

Un Saludo
Mustafa ;)

Re: @ get [clausula When]

Posted: Wed May 19, 2010 12:31 am
by danielmaximiliano
Gracias a todos por compartir su tiempo y experiencia.
de a poco voy refinando el programa implementando nuevas rutinas x ahora en modo consola, despues de funcione bien sin errores implementare GUI.
Saludos DaNiElMaXiMiLiAnO