Is WDCustomScriptText still in use?

Christie Widget Designer Version 6 - Q&A

Moderator: Moderator Group

Forum rules
When asking make sure to include the operating system and the revision of Widget Designer you are using.

Is WDCustomScriptText still in use?

Postby chrisr » Tue Sep 12, 2017 12:59 pm

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
Thank You

ChrisR
SurfacePro3 - 2GHz i5 - 4GB ram - Windows 10 Pro - WD Pro 4.7 Rev2500 and WD v6
Sager Laptop - Intel 2.4GHz i7 3630QM - 16GB ram - Windows 7 Pro Svc Pack1 - Offline Manager v6
chrisr
 
Posts: 143
Joined: Tue Jan 26, 2016 10:50 pm

Re: Is WDCustomScriptText still in use?

Postby justyn roy » Tue Sep 12, 2017 2:48 pm

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
Justyn Roy

Online Manual
User avatar
justyn roy
 
Posts: 132
Joined: Tue Sep 27, 2016 1:26 am

Re: Is WDCustomScriptText still in use?

Postby chrisr » Tue Sep 12, 2017 3:28 pm

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!
Thank You

ChrisR
SurfacePro3 - 2GHz i5 - 4GB ram - Windows 10 Pro - WD Pro 4.7 Rev2500 and WD v6
Sager Laptop - Intel 2.4GHz i7 3630QM - 16GB ram - Windows 7 Pro Svc Pack1 - Offline Manager v6
chrisr
 
Posts: 143
Joined: Tue Jan 26, 2016 10:50 pm


Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 16 guests