Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is VFP (6, SP3) inherently slower than FPD (2.6a)
Message
 
To
17/03/2000 08:41:26
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00346811
Message ID:
00347009
Views:
50
>How often does anyone use a stand-alone PRG file containing only procedures and functions? Isn't this concept replaced with adding those procedures to your form as a custom method?

Hi Michael,

I am facing that exact situation right now.

I have a program that imports inventory data from quickbooks and has to "massage" each record imported.

The function that does the "massaging" (am I sounding like Dr. Evil yet?) is stored in a prg as a udf and is called many times as the program iterates through the imported data once it's in the dbf.

What other options do I have here?

At risk of answering my own question, all the importing is done from within a form, so I guess I would just create a new method called "massage_data" or something like that and when the click event of the "Import" button is handled, I would just issue a thisform.massage_data()?

Now, what happens if this function needs to be called from several parts in the program? What do I do then? Is there a workaround that doesn't involve a prg with nothing but function definitions?

And another question: Does it make a difference if the prg is attached to the database or to the project?

Alex
Low-carb diet not working? Try the Low-food diet instead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform