>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!