Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21884

pass variable to form?

$
0
0
Hello,

I am using VB 6 to create a program that will allow a user to create and manage groups of assets.

FormA instantiates multiple instances of FormB, one per user menu click. FormB is used to create and manage a group of assets. Each instance of FormB saves the value of a global variable that is used to index a global array of asset group info. So each instantiation of FormB stores assets in one element of the array of asset group info.

I would like each instantiation of FormB to display FormC on user menu click, to add an asset to the asset group associated with that instantiation of FormB. How can I get FormC to make assignment to the correct asset group info array element? Is there any way for an instance of FormB to pass the saved asset group info array index to FormC?

I apologize if this description is not clear. I'm relatively new to Visual Basic programming. Perhaps there is another way to solve this problem. I appreciate any assistance.

Thanks,

Charles

Viewing all articles
Browse latest Browse all 21884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>