Passing values of selected items from first form until third form

masoud_sedighy

Registered User.
Local time
Today, 12:41
Joined
Dec 10, 2011
Messages
132
I would like passing values from first form until third form.
In the first form I have a list box after selecting items (For each selected item in first form I have 4 values) and pressing button (or right click of mouse) the second form will be open, then in the second form I have 2 option (inserting, deleting), when I select inserting or deleting in the second form, third form will be open, in the third form there is a "OK" button, when I press that, passed values from first form will be used for inserting or deleting records to the table.


Best Regards.
 
Pass the Values from the First form to the second using the OpenArgs, then assign it to a variable in the second form the pass it to the third form..

Or set a Public variable, set it in the First Form and refer to it in the third form..
 
thanks, how i have to pass variable from second form to the third form again with OpenArgs.?

it seems using Public Variable in the first form would be easier because in the list box i select 100 items and in each item i like to grab 4 values, i think i should use array variable, some sample code can help me a lot, please.

thanks a lot.
 
3 forms for ONE operation? Sounds unusual, to say the least.

AFAIK the selection in Form 1 remains intact when you go to the next form and then the next again, so what would the point be of getting those values into an array or whatever? You can still loop over the selected values of the list box in some code in Form 3.
 
Selecting 100 items - each garbing 4 values? Sounds real strange.. As spikepl has suggested, you can use the Form Name to loop through the listbox..
 

Users who are viewing this thread

Back
Top Bottom