I was wondering if anyone can see any places in this peice of code from a larger program I made that could be compressed to save space:
ClrHome
Input Str0
If inString(Str0,"S:
Then
If length(Str0)>2+inString(Str0,"S:
Then
If inString(sub(Str0,inString(Str0,"S:"),length(Str0)-inString(Str0,"S:")),"
Then
Disp "One"
Disp sub(Str0,inString(Str0,"S:")+2,inString(sub(Str0,inString(Str0,"S:"),length(Str0)-inString(Str0,"S:"))," ")-(inString(Str0,"S:")+2))
Else
Disp "Two"
Disp sub(Str0,inString(Str0,"S:")+2,length(Str0)-(inString(Str0,"S:")+1))
End
Else
Disp "Three
End
Else
Disp "Four
End
Thanks for any help