Is it possible in ZPL to detect if a line red with READSTRING Line$ contains only any number of spaces or tabs?
Solved
Detecting a line with any number of only spaces or tabs with ZPL
Best answer by Christoph.Bodendorf
Yes, ZPL is a clunky language . I found this clunky workaround:
label BEGIN_LOOP01 #-----------------
READSTRING Line$
if EOFF() then goto END_LOOP01
if (Line$ $== '') then GOTO BEGIN_LOOP01
Keyword$ = $GETSTRING(Line$, 1) # Substring, space-separiert
indicator$ = $LEFTSTRING(Keyword$,1) # 1st character
if (indicator$ $== '#')|(indicator$ $== ' ') then goto BEGIN_LOOP01 # coment or empty line
Value$ = $GETSTRING(Line$, 2)
...
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.