Page 1 of 1

Gui data to Excel Sheet

Posted: 08 Apr 2017, 08:54
by Crashm87
Morning Community,

I have a script I have written to take information from Gui Edit boxes and push them to excel sheet to make labels. The script searches an old database to see if the label has been made before, if it has it pulls all the data to sheet from database. If it hasn't been made, it opens a Gui to input all the new information, on OK sends it to sheet.

Problem I'm having is, if I have to add another one manually like that, I get an error that the same variable can't be used for more than one control.
Here is broken down code that shows code related to errors.

Any help is appreciated.

Thanks

Re: Gui data to Excel Sheet

Posted: 08 Apr 2017, 10:57
by Wolfdagon
Like the error says, you can't use the same variable for more than one control in a GUI. Simply change this variable name to something like cname2. If you really need for it to be cname for the later part of the script, then at some point before that put cname := cname2