Need some help

cherryk
03-20-2003, 01:09 AM
Hey..

im still trying to figure this problem out. Basically if you look at the images below..
MAINFORM
http://www.geocities.com/dio_0ip/mainform.jpg

ADDFORM
http://www.geocities.com/dio_0ip/addform.jpg



There is the main form and add form.. the fields in the main form are locked and the only way to add new Id, customer is to click "Add".

The code behind the add button is simply an 'Add.show'..

The add form then shows prompting the user for new data.
'Save' is clicked and the data is to be saved to the already created array, and a .txt file.

The txt file has already been created with 2 records which are to come up on the form_load of the main form.

I basically need some awesome person here to show me how to do all of this this :) .. ive been stumped for about 3 days now :/ its driving me nuts..


cherry

Pookie
03-20-2003, 01:13 AM
Why not just use a public variable instead of saving the data to a file then loading it again?

cherryk
03-20-2003, 01:16 AM
Why not just use a public variable instead of saving the data to a file then loading it again?

thats how ive been told to do it.

Pookie
03-20-2003, 01:21 AM
There is another way to do it.

You can make one of the subs in the form public, then call it from the add form before closing it:

frmmain:

sub AddPerson(Id as string, Name as string)
' add the data
end sub

frmadd

call frmmain.addperson("12345","pooks")

joesatri
03-20-2003, 01:54 AM
Also, when u need help, it's good to use the 'subject' field to describe what u need..

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum