@ get [clausula When]

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2607
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

@ get [clausula When]

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: @ get [clausula When]

Post 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
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: @ get [clausula When]

Post 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
Viva INTERNATIONAL HMG :D
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: @ get [clausula When]

Post 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 ;)
User avatar
danielmaximiliano
Posts: 2607
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: @ get [clausula When]

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply