Page 1 of 1
[SOLVVED] Line 6: 'Str' is not a valid operator.
Posted: Wed Jun 04, 2025 4:41 pm
by Randy Walker
Ok, now what am I doing wrong? it says "Line 6: 'Str' is not a valid operator."
Code: Select all
#SCRT = 1
#TTRM = 2
#TTDB = 3
#PTTY = 4
Ntype.i = 2
MessageRequester("Ntype values:","Current value is: "+Str(Ntype.i)+Chr(13)+"Possible values are:"+Chr(13)+"#SCRT: " Str(#SCRT)+Chr(13)+"#TTRM: " Str(#TTRM)+Chr(13)+"#TTRM: " Str(#TTRM)+Chr(13)+"#TTDB: " Str(#TTDB)+Chr(13)+"#PTTY: " Str(#PTTY))
Re: Line 6: 'Str' is not a valid operator.
Posted: Wed Jun 04, 2025 4:50 pm
by moulder61
You missed a few "+" out.
Code: Select all
MessageRequester("Ntype values:","Current value is: "+Str(Ntype.i)+Chr(13)+"Possible values are:"+Chr(13)+"#SCRT: "+Str(#SCRT)+Chr(13)+"#TTRM: "+Str(#TTRM)+Chr(13)+"#TTRM: "+Str(#TTRM)+Chr(13)+"#TTDB: "+Str(#TTDB)+Chr(13)+"#PTTY: "+Str(#PTTY))
All without a senseless Repeat Forever loop too.
Moulder.
Re: Line 6: 'Str' is not a valid operator.
Posted: Wed Jun 04, 2025 4:53 pm
by moulder61
Also, I just noticed #TTRM shows up twice.
Moulder.
Re: Line 6: 'Str' is not a valid operator.
Posted: Wed Jun 04, 2025 4:58 pm
by Randy Walker
Ok, AGAIN -- STUPID ME> my messagerequester line was missing + sign in front of most of the Str() values:
Code: Select all
MessageRequester("Ntype values:","Current value is: "+Str(Ntype.i)+Chr(13)+"Possible values are:"+Chr(13)+"#SCRT: "+Str(#SCRT)+Chr(13)+"#TTRM: "+Str(#TTRM)+Chr(13)+"#TTRM: "+Str(#TTRM)+Chr(13)+"#TTDB: "+Str(#TTDB)+Chr(13)+"#PTTY: "+Str(#PTTY))
That fixed it. DUHH!!!

UGH!! I waste so much time on stupidity. (headbang)
Re: Line 6: 'Str' is not a valid operator.
Posted: Wed Jun 04, 2025 5:00 pm
by Randy Walker
moulder61 wrote: Wed Jun 04, 2025 4:50 pm
You missed a few "+" out.

All without a senseless Repeat Forever loop too.
Moulder.

Thank you Moulder.

Re: [SOLVVED] Line 6: 'Str' is not a valid operator.
Posted: Wed Jun 04, 2025 5:21 pm
by Piero
That made me feel like if you said: "

Str(#

)"
