Page 1 of 1

Is WDCustomScriptText still in use?

PostPosted: Tue Sep 12, 2017 12:59 pm
by chrisr
I just tried to rename 80 buttons with a for loop using WDCustomscriptText.... which is doing nothing :*(.

Is this script still in play with Ver6?

Thanks All!

Chris

Re: Is WDCustomScriptText still in use?

PostPosted: Tue Sep 12, 2017 2:48 pm
by justyn roy
Try this:

Code: Select all
for i = 1 to 80 {
WDCustomScriptLabel(i,"My Label " + i)
}


This will also label your button with the button's number.
You can also do math on that line if you want.
For example:

Code: Select all
WDCustomScriptLabel(i,"My Label " + i * 2)



Let me know if this is what you were looking for.

Justyn

Re: Is WDCustomScriptText still in use?

PostPosted: Tue Sep 12, 2017 3:28 pm
by chrisr
Justyn, thanks for the speedy reply... totally makes sense. The field is called a Label: Thanks for the clue in. I appreciate it!

Chris.

Just from looking at the script it'll do what I was trying to do. I'll try it out as soon as I'm back at my desk.

Have a great week!