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!

Work with second instance

Status
Not open for further replies.

newtofoxpro

Programmer
Sep 16, 2007
301
IN
Recently I worked on IE automation sending s*m*s. It takes 25 sec (approx) time to finish the job. my code is as under...

Function SendS_M_S
******************
parameter inMob_NO, inTxtToSend

CODE

RETURN (nothing)

When I run this function/procedure I have to wait for if this function run background the main foxpro screen, means I don't want to wait for finishing. So is it possible to run this code with another instance or should I call it as activex.

 
Building a seperate EXE with lparameters in it's main.prg, which would be exactly this code, enables you to call it as RUN /N yoursms.exe 5551234 "text", which would be a good and simple solution. Shoot and go.

Another possibility without a seperate exe is actually also available as based on the original idea by Calvin Hsia, one of the original VFP developers:
Bye, Olaf.
 
Thank you Olaf, I did not know muti-threading.. I think its opened new world for me. Let me try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top