I'm having trouble getting variables to follow through from a function in which their value is altered. As previously suggested by people here I declared said variables first so they are classified as variables on a program-wide scope rather than just within the function.
I have also attempted to call the function specifically with the var names eg: call functionname(var1,var2,var3,var4,var5,var6)
the problem is that in a later part of the program i need to call var1 through 6 within another function, where they are written to the database. When they don't get passed from function1, they default to the null value from when they were dim'ed, and i get a whole bunch of blank values in the database.
Is there anything that i'm forgetting to do to get the values to pass properly? or am i just going to have to hard-code the functions in the places they're required. For obvious reasons i'd like to avoid this at any cost.