Hi Guys..,
Hope you can help.
Visual foxpro 9
Background: I run a small IT company selling hardware and web hosting. I want to import different suppliers data feeds (products and pricing) into a temp table and then scan my stock files and change supplier prices and stock levels as needed, add new stock and flag my stock as no longer in my suppliers list. I also want to import supplier data feeds and convert that data to something that is suitable for importing to ecommerce websites - my own website and customers.
I have created the import program all works fine for my own use. So I then started to create the ecommerce program that I could give to my customer to allow them to manage their own data feeds... (the import routine allows you to configure the fields needed for different types of supplier and map those to your own tables.
So, no point in reinventing / modifying the data import program again so I decided to experiment with classes etc...
I've created a class... acsimport which when the "import_main" screen is instantiated it check's if the data tables exist and creates them if needed... (I thought if i can implement all of the data creation in the main screen I could drop the class in any project and wouldn't have to remember to make sure all of the data tables where in the correct place... the "import_main" form would create the tables if they didn't exit and offer a menu to configure the import routines.
So... i'm new to classes etc.. and to experiment I and have added only two forms to the class...
Now I'm lost as to what to search for in google to try and find a solution... so I was hoping you may be able to help.
I have created a normal form with a button and the following code executes when you press the button:-
Again... this is just so I can experiment...
It works and calls the form within the class... "import_main"
Import_main has 2 buttons... one to close the form and one to goto another form to start the configuration process...
To start a normal form I would just do:-
and it would launch...
So, Whats the best way to start the other forms from the class?
I assume I need to do as I did with the original form and "oMyForm = CREATEOBJ('import_main_menu')" etc...
But is this the correct way or am I missing something?
Thanks in advance.
Regards
Steve
If you alway do what you've always done, you always get what you've always got.
Hope you can help.
Visual foxpro 9
Background: I run a small IT company selling hardware and web hosting. I want to import different suppliers data feeds (products and pricing) into a temp table and then scan my stock files and change supplier prices and stock levels as needed, add new stock and flag my stock as no longer in my suppliers list. I also want to import supplier data feeds and convert that data to something that is suitable for importing to ecommerce websites - my own website and customers.
I have created the import program all works fine for my own use. So I then started to create the ecommerce program that I could give to my customer to allow them to manage their own data feeds... (the import routine allows you to configure the fields needed for different types of supplier and map those to your own tables.
So, no point in reinventing / modifying the data import program again so I decided to experiment with classes etc...
I've created a class... acsimport which when the "import_main" screen is instantiated it check's if the data tables exist and creates them if needed... (I thought if i can implement all of the data creation in the main screen I could drop the class in any project and wouldn't have to remember to make sure all of the data tables where in the correct place... the "import_main" form would create the tables if they didn't exit and offer a menu to configure the import routines.
So... i'm new to classes etc.. and to experiment I and have added only two forms to the class...
Now I'm lost as to what to search for in google to try and find a solution... so I was hoping you may be able to help.
I have created a normal form with a button and the following code executes when you press the button:-
Code:
SET CLASSLIB TO acsimport additive
oMyForm = CREATEOBJ('import_main_menu')
PUBLIC a
a = oMyForm
oMyForm.show()
Again... this is just so I can experiment...
It works and calls the form within the class... "import_main"
Import_main has 2 buttons... one to close the form and one to goto another form to start the configuration process...
To start a normal form I would just do:-
Code:
DO FORM forms\import_master_list
and it would launch...
So, Whats the best way to start the other forms from the class?
I assume I need to do as I did with the original form and "oMyForm = CREATEOBJ('import_main_menu')" etc...
But is this the correct way or am I missing something?
Thanks in advance.
Regards
Steve
If you alway do what you've always done, you always get what you've always got.