Page 1 of 1

Posted: 15 Mar 2010, 07:15
by LevraiBernardo
I have a problem with textfields : When an empty string is entered, nothing happens in the wire (I mean there was a string in the text field output. If I enter an empty string, the old one is still there instead of a null string). So how to check if a textfield is empty ?

Posted: 15 Mar 2010, 08:07
by nay-seven
can you explain a little more wich module you use and the order..?

usually when there's an empty string you can see:
[large]""[/large][large][/large]
in the text field

Posted: 15 Mar 2010, 08:28
by senso
you're right, the empty string is considered as a NULL event in Usine.
It can be a pb in your case, let me think about it.

Posted: 15 Mar 2010, 10:59
by senso
oups I forgot something
To check if a string is empty just use get array size module. If size = 0 then the string is empty

Posted: 15 Mar 2010, 11:18
by LevraiBernardo
Yes, Senso, I tried that, but it doesn't work anymore : If you link a text field to a get array size, type "Hello" in the field. Array size is 5. Fine. Then, type an empty string in the field, the array size is still 5 (and [Array] in "Array In" pin becomes red, to show it's an empty array).

Posted: 15 Mar 2010, 12:54
by senso
ok.
I understand why it works on my system.
[large]I'll post an update very soon.[/large]

Posted: 15 Mar 2010, 13:30
by LevraiBernardo
Cool. Thanx, sir.