Welcome! Log In Create A New Profile

Advanced

WM 22: Step through file with pause

Posted by Peter Muckle 
WM 22: Step through file with pause
December 01, 2018 08:10PM
Hi All,

I am stepping through a query which includes a field with milliseconds, and want to pause for the duration while an image is displayed.

WHILE NOT HOut(QRY_step_through)
	
// Code here to make image visible

 // WHAT TO PUT HERE TO PAUSE?
// This works in Windows test mode but not android - nothing is shown until the last record

tduration is currency = QRY_step_through.duration_ms/10
ThreadPause(tduration)

HReadNext(QRY_step_through)

END

Thanks for any help

Pete
Re: WM 22: Step through file with pause
December 02, 2018 01:39PM
Hi Pete,

tduration should be of type integer (just a quess, did not try it)

regards, Heinz
Re: WM 22: Step through file with pause
December 03, 2018 08:50AM
Hi Pete,

afaik that is indeed how Android (or may it be WM) works. The GUI is refreshed when exiting the procedure, You could try to
- move the image display itself to a second procedure, called from within your loop. Maybe even an internal procedure will work. Jus ta guess
- or use threads to separate the query-loop from the GUI actions

Arie
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: