Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute a function in background 2

Status
Not open for further replies.

LuigiG

Programmer
Jun 9, 2011
8
IT
Hi,

I am writing a code for reading gps data from a serial, after open the port I am using a cicle do wile to read the data, the problem is that this does not allow the possibility to use mouse for stop the process. My applycation will run on touch screen computer without keyboard.

Is there any way to run the process in backgroud? I need to create an application like hyper terminal where it is possible to see the strings from serial port.

Thanks
Luigi
 
I use commtools for foxpro and a timer to retrieve data arriving at the port. The timer would also be a solution for you, a timer event each second may even be sufficient to read RS232.

Also there should be events when data is arriving you could use instead of a WHILE loop.

Bye, Olaf.
 
Thanks Mike and Olaf for you replay I will test

Regards
Luigi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top