I have a VB6.0 app with a lot of interaction between forms. I hate using global variables but it seesm like this is the only way to pass information from one form to another. For example I am on frmClientMaint, which is used to maintain the general information (name, address, contact, phone etc..) about a client. I have another form (frmClientItem) that is used to maintian a list of products which this client can order. The user presses a button on frmClientMaint to present frmClientItem. frmClientItem needs to know which client is being worked on so I place this value in a global variable prior to executing, like this:
gCurrClientId = wkClientId
gCurrClientID is defined in Module 1 as 'Public gCurrClientID As Long'. It seems like there must be a better way of doing this but I haven't uncovered it yet.
What techniques to the experts use?