haii...anybody knows any thread concept implementation in 4DGL...
Announcement
Collapse
No announcement yet.
Thread implementation in 4DGL
Collapse
X
-
Thanks for ur reply...I am designing a GUI application and in that, first i want to display a splash screen at the same time in the back side a comport polling has to occur. So when the COM get a value, then it has to switch to another screen from the currently running splash screen. For that, i want to process has to run in parallel...splash screen and comport reading...thanks..RHS
Comment
-
repeat
// check comms for command, how to NAK invalid command
if (com_Count() != 0)
cmd[cmdi++] := serin() ;
if (cmdi == 3) // assumes all serial commands are 2 bytes long
// process command in 'cmd'
cmdi := 0 ;
endif
endif
// touch code processing, more detail in many Visi samples
state := touch_Get(TOUCH_STATUS); // get touchscreen status
n := img_Touched(hndl,-1) ;
if ((state == TOUCH_PRESSED) || (state == TOUCH_RELEASED) || (state == TOUCH_MOVING))
// do whatever is required
endif
foreverMark
Comment
Comment