I’m coming for help. For several days I have been stuck on my problem. I work with SAPIUEN Powershell Studio 2018 software.
I would like according to a variable to create the equivalent number of textbox.
(region createtextbox)
Then I only want the first textbox to be activated. the next can only be if the previous one has at least 5 characters. and when all my textboxes are filled, then I have a button that appears.
(region WRITETEXTBOX)
The first point is good, I can’t get there on the second and especially how I can select this or that textbox value?
Hello;
thanks for this help.
On the other hand ; how do i select this or that textbox.
example: I want all textboxes to be disabled and only the first to be active.
The next one will be activated only when I have at least 5 characters in the previous one.
What I can’t do is select the desired textbox because I would need the following variables.
Maybe I’m misunderstanding, but couldn’t you “select” the text boxes by their names? Of course you would want to give them better names.
$textboxuser.Name ='$textboxuser'+$u
So you are effectively naming these $textboxuser1, $textboxuser2, etc. I would remove that $ - it is a special reserved character in powershell. If you remove that dollar sign, you’ll end up with textboxuser1, textboxuser2, etc. If you intended to expand $textboxuser, you should first take a look at what that contains. Now knowing their names, you should be able to grab that control by name. Otherwise, you could use something like this to gather a list of all your textbox controls.