Timer in HMGIDE not accept longer than 20 seconds

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
jairpinho
Posts: 420
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Contact:

Timer in HMGIDE not accept longer than 20 seconds

Post by jairpinho »

Timer in HMGIDE not accept longer than 20 seconds, there is a way to put a value of 15 minutes on the timer, or otherwise
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: Timer in HMGIDE not accept longer than 20 seconds

Post by salamandra »

Hi Jair :) ,
This is a quite old issue...
But, you can try to solve by assigning the value of
a var to the Timer value.
Ex.

Code: Select all


my_var:=900000     // In milliseconds => 15 minutes
yourform.timer.value:=my_var

In this case I´ve assigned 15 minutes (or 900000 milliseconds to timer)

this way works fine for me... ;)


[]´s Salamandra
Last edited by salamandra on Wed Mar 21, 2012 7:14 pm, edited 1 time in total.
There is one time in which is crucial awakening. That time is now. ( Buddha )
User avatar
jairpinho
Posts: 420
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Contact:

Re: Timer in HMGIDE not accept longer than 20 seconds

Post by jairpinho »

Ola Salamandra deu certo somente definindo o valor a uma variavel se definir direto o valor não funciona, adicionei a uma variavel como voce falou e esta funcionando obrigado


Hello Salamander worked only by setting the value to a variable to set the value directly does not work, I added a variable as you said and it works thanks

salamandra wrote:Hi Jair :) ,
This is a quite old issue...
But, you can try to solve by assigning the value of
a var to the Timer value.
Ex.

Code: Select all


my_var:=1000000
yourform.timer.value:=my_var

this works fine for me... ;)


[]´s Salamandra
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Timer in HMGIDE not accept longer than 20 seconds

Post by esgici »

Hi friends

It's possible also assigning any value to INTERVAL propery of TIMER control, out of HMG IDE; editing .FMG file by any code editor :arrow:

Code: Select all

DEFINE TIMER Timer_1 INTERVAL 900000 ACTION ...
Regards, saludos

--

Esgici
Viva INTERNATIONAL HMG :D
Post Reply