PDA

View Full Version : Static can count


edgar
09-24-2007, 10:22 AM
Hi, Iīm trying to make an counter in to static like:

Numeber of Machines = 9 , already have buttons to ADD and DEL machines, but i want to refresh this number in to the static...i was trying but i canīt
:rolleyes:
i know i have to use a concat command but i dont know how....so shame..jejeje
well, i keep on trying.... but if some one have a clue i appreciated that...

Grettings

Edgar Berho

Cliff King
09-24-2007, 04:35 PM
It's probably just a matter of using getviewtext() and setviewtext(). You might also get away with two statics so you don't need to concatenate. One static could be named "Machines =", and the other static could have a hotlink to the node holding the value for the number of machines. Have you found the section in the online help that talks about the different view objects? It's in Help>User Manual>Contents>Miscellaneous Concepts>View Attributes Reference. Another suggestion is to learn from looking "behind the scenes" of standard guis by right-clicking on the gui, then selecting View>Structure...>Explore Structure.

edgar
09-25-2007, 09:25 PM
Thanks Cliff for the answer , i solve my problem with a viewtext code like in the pic with the GUI .
I was learnig a lot looking "behind the scenes" thaks for the advise...

grretings :D