I have a variable that may contain spaces or text. The spaces are of an unknown length as is the text. I want to test if a variable has no text. How do I code for such a test an I see no trim or asci function?
Robin
Blank Variable
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hi,
VBSTART
VBEND
//e.g.:
Let>val= some text and spaces
//Let>val=
VBEval>Trim("%val%"),val
If>{%val%=""}
//empty
Else
//has text
Endif
Try setting val to just spaces.
VBSTART
VBEND
//e.g.:
Let>val= some text and spaces
//Let>val=
VBEval>Trim("%val%"),val
If>{%val%=""}
//empty
Else
//has text
Endif
Try setting val to just spaces.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?