Hi D,But sometimes, using different variables IS MORE confusing. There are times when ONE variable is the proper choice.
I’m going to describe an example. Let’s say your code is dealing with another device. Maybe an external GPS device. Your code has two or more functions that access the device. You would create a GLOBAL variable for the device id or address. Then, you would use the same name in all functions and Main to access the external device.
Otherwise, you’d see the separate name and wonder what it’s value is. You’d have to initialize the device address in Main and each function. At least three places. I don’t know but can guarantee you’ll have a problem because you’ll forget to change the value in one of the functions
I started to reply, then fell into a pile of brain spaghetti
If a FUNCTION, PROCEDURE or INCLUDE has VARIABLE, that isn't affected by the MAIN program, then it can be a different name. (As you can see I'm still in Spaghetti mode)
I just tried a test with an INCLUDE, where I searched for something that is in the INCLUDE and it didn't produce? I think this is why I found that I couldn't use them. There's got to be a method, that others use?
C.