@ get [clausula When]

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2010
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 38 times
Been thanked: 10 times
Contact:

@ get [clausula When]

Post by danielmaximiliano » Fri May 14, 2010 1:39 am

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
esgici
Posts: 4289
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 175 times
Been thanked: 65 times
Contact:

Post by esgici » Fri May 14, 2010 11:31 am

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: 4289
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 175 times
Been thanked: 65 times
Contact:

Post by esgici » Fri May 14, 2010 11:35 am

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: 583
Joined: Fri Mar 20, 2009 11:38 am
Location: Alicante - Spain
Been thanked: 42 times

Post by mustafa » Sat May 15, 2010 10:05 am

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: 2010
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 38 times
Been thanked: 10 times
Contact:

Post by danielmaximiliano » Wed May 19, 2010 12:31 am

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest