Just starting out? Need help? Post your questions and find answers here.
-
Randy Walker
- Addict

- Posts: 1059
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
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.
-
moulder61
- Enthusiast

- Posts: 193
- Joined: Sun Sep 19, 2021 6:16 pm
- Location: U.K.
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.
Moulder.
-
moulder61
- Enthusiast

- Posts: 193
- Joined: Sun Sep 19, 2021 6:16 pm
- Location: U.K.
Post
by moulder61 »
Also, I just noticed #TTRM shows up twice.
Moulder.
-
Randy Walker
- Addict

- Posts: 1059
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
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!!!

UGH!! I waste so much time on stupidity. (headbang)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
-
Randy Walker
- Addict

- Posts: 1059
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
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.
Moulder.

Thank you Moulder.

- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
-
Piero
- Addict

- Posts: 914
- Joined: Sat Apr 29, 2023 6:04 pm
- Location: Italy
Post
by Piero »
That made me feel like if you said: "

Str(#

)"
