I’m writing a single program that contains multiple ‘games’. Each game is on a separate form. There is one Function that is used by the (currently) two forms. I currently have duplicated that function in both forms, using the same function name and the same variables.
Question: Are there any ‘does’ and ‘don’ts’ that are unique to multi-form programs? e.g., can I call a function from form 2 that is located in form 1? Can I use variables that are created in another form? What other pit falls are there (if any)?
The issue that I’m currently having is that the form 1 ‘game’ works perfectly if I totally comment out the form 2 game… and form 2 works if form 1 is commented out (totally) … but if BOTH are active, neither one runs correctly.