Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application freezes
Message
From
27/04/2006 06:21:42
Suhas Hegde
Dental Surgeon
Sirsi, India
 
 
To
27/04/2006 06:08:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01116564
Message ID:
01117027
Views:
20
>>Do u mean to use a seperate exe to run the download part and then return the values ?
>>
>>I get the values in a string format so is it possible to get the result back ?
>>
>>something i have not tried ....
>>
>>any pointers in code ??
>>
>>thanxs
>>
>>suhashegde
>
>I have a similar situation in one application I use daily. I have a separate exe which does the downloads, and this exe creates a txt-file in a specific folder for each successful download, the name of the file is a random number, like 12345678.txt. The main program has a timer, and this timer checks this directory regualarly using
>something like
>if adir(dummy,'mydir\*.txt')>0
>  do myprocess && myprocess reads the file via filetostr(), processes the file, and deletes it
>enddo
Hi,
I infact would not like to save as a text file or use a file handle because it consumes time. What i do is use the return in a memvariable maniulate it and feed the grid.

There would be a timer on the form to contimously search for the file and would update with the old file if avaiable. In that case the data viewed might not be current and that would not be good. These are live stock market rates where i wish i would be current. If broad band is avaiable then that would ease a lot of my problems but its avaiablity is distant in the near future....

would a seperate exe return string ?

and i would do something like this

returnvar = ''
with thisform
.object = createobject('newexe')
.object.download(url)
returnvar = .object.string1
endwith
do while empty(returnvar)
enddo


would that approach work ??

suhashege
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform