Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP after 2015
Message
From
12/09/2007 05:00:27
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01253216
Message ID:
01253861
Views:
37
>Can you show me an example of this in VFP?:
>
>Thread MyThread = new Thread(new ThreadStart (MyCallbackFunction));
>
>
>Or an example of passing a variable of complex type or structure to an API or third party tool? Or a example referencing a 64bit memory address? Or an example of a callback function being called in an asychronous routine?...the list goes on and on....
>
>I mean this in the nicest possible way...keep coding in VFP as long as you can make a living, but study up on another language. You may not know what you are missing.

Great if that is any use to you. I know there are ways to do multithreading in VFP somehow, but lets be realistic. What use is this to me as a database developper ? I don't need to spawn extra threads in my application. If I need to do things in parrallel I'd probably can do with server COM solutions or launch another process (EXE). Not as clean as with the thing mentioned above, but it would do. Not that I've used this in any commercial app BTW. There simply was no need to.

In regards to passing a variable of complex type or structure. Oh we've done it in the past to overcome some limitations in VFP. Cristofs struct class is one way of dealing with it. In regards to callback functions. Do you mean events? You can capture them with VFP9 BINDEVENT() function. Lets not forget that VFP9 is extensible through flls. In the past I've written flls to do things that were not posible through native VFP.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform