[SOLVVED] Line 6: 'Str' is not a valid operator.

Just starting out? Need help? Post your questions and find answers here.
Randy Walker
Addict
Addict
Posts: 1059
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

[SOLVVED] Line 6: 'Str' is not a valid operator.

Post 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))
Last edited by Randy Walker on Wed Jun 04, 2025 5:00 pm, edited 1 time in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Line 6: 'Str' is not a valid operator.

Post 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. :P

Moulder.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Line 6: 'Str' is not a valid operator.

Post by moulder61 »

Also, I just noticed #TTRM shows up twice.

Moulder.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
Randy Walker
Addict
Addict
Posts: 1059
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: Line 6: 'Str' is not a valid operator.

Post 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!!! :oops:
UGH!! I waste so much time on stupidity. (headbang)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy Walker
Addict
Addict
Posts: 1059
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: Line 6: 'Str' is not a valid operator.

Post 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. :P

Moulder.
:lol: Thank you Moulder. :)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
User avatar
Piero
Addict
Addict
Posts: 914
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: [SOLVVED] Line 6: 'Str' is not a valid operator.

Post by Piero »

That made me feel like if you said: "🍕 Str(#🍍)"
:cry:
Post Reply