Mega Search
23.2 Million


Sign Up

Make a donation  
Re: [Uniface-L] run a trigger automatically  
News Group: comp.soft-sys.app-builder.uniface

Hi All,

Take a read of utimer in the manual. This should efficiently meet your needs.

Regards,

Jason.

On 28 Mar 2014 01:06, "Maier, Bob"  wrote:
>
> Ronny is right -- ​ASYNC can only be set in minutes.
>
> But he is also right about the loop.
>
> Although I would not use it to time titrations, this works reasonably well:
>
>
> variables
> numeric vTimeStart,vCount, vHowmany
> endvariables
> EB_SECOND_COUNTER = 0
> vTimeStart = $clock
> ebstart = vTimeStart
> ebend = ""
> ebhowmany = ""
> show
> while (vCount < 10)
> if (($clock - vTimeStart)>= 1s)
> vTimeStart = $clock
> vCount = vCount + 1
> EB_SECOND_COUNTER = vCount
> show
> else
> ;;; count how many cycles are "skipped" between increments
> vHowmany = vHowmany + 1
> endif
> endwhile
> ebend = $clock
> ebhowmany = vHowmany
>
> The full export is attached.
>
> Hope this helps,
>
>     Bob Maier
>
> ​
>
>
> ________________________________
> From: uniface-l-bounces@uug.org  on behalf of Ronny Krite 
> Sent: Thursday, March 27, 2014 5:52 PM
> To: UNIFACE List Server
> Cc: uniface-l-gate@lists.umanitoba.ca
> Subject: Re: [Uniface-L] run a trigger automatically
>  
>
> I think ASYNC interrupt trigger can only be triggered once per minute using $timeout in your assignment file. Someone correct me if I am wrong?
>
> In ASYNC trigger is this...
>
> $prompt = "MYFIELD"
> macro "^DETAIL"
>
> That is just off the top of my head.
>
> Instead of firing detail, you may like to call some proc. After the macro instruction your proc will end.
>
> Some other way......
> If you do not require access to your app, and you can only get the $timeout to work once per minute, you could just loop and check if THIS second is greater than the PREVIOUS second then call your proc.
>
> -- 
> Ronny Krite
> rkrite@gmail.com
> 0433282152
>
> On 28/03/2014 5:26 AM, "fabricio venancio"  wrote:
>>
>> Hi friends!
>>
>> I have a form with a button.
>>
>> In a detail button I have a statement message/nobeep "I am here..."
>>
>> Someone knows how is possible execute this detail trigger each second, automatically?
>>
>> This action needs to start after the click button...
>>
>>
>> Thanks a lot
>>
>> Fabricio Venancio
>>
>> Brazilian Uniface Developer
>> Florianópolis-SC
>> _______________________________________________
>> Uniface User Group Discussion Forum
>> For more information: http://lists.umanitoba.ca/mailman/listinfo/uniface-l
>> To unsubscribe/set options: http://lists.umanitoba.ca/mailman/options/uniface-l
>
> The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. Uniface B.V. (Registration number: 59760559) is a company registered in the Netherlands whose registered office is at Hoogoorddreef 60, 1101 BE Amsterdam, The Netherlands.
Vote for best question.
Score: 0  # Vote:  0
Date Posted: 28-Mar-2014, at 9:52 AM EST
From: Jason Huggins
 
Re: [Uniface-L] run a trigger automatically  
News Group: comp.soft-sys.app-builder.uniface
Hi Friends

I used the UTIMER componente for the first time with sucess!

DETAIL of start button:

activate "UTIMER".start("00.00.01")
activate "UTIMER".setMessage("COMPONENTNAME", "MESSAGE", "")
activate "UTIMER".setRepeat(0)

DETAIL of stop button:
activate "UTIMER".stop()

Asynchronous Interrupt Trigger

if ($msgid = "MESSAGE")
  ;my code

endif


Thank's for the tips!

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 28-Mar-2014, at 7:50 AM EST
From: fabricio venancio