QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Pete on March 08, 2018, 06:32:06 pm

Title: I got a syntax bug today. What am I doing wrong?
Post by: Pete on March 08, 2018, 06:32:06 pm
So I made a sub, and I wanted to preserve a variable. So I coded...

SUB mysub
STxAxTIC

... and it gave me a syntax error. It's a real head scratcher, but it does prove the IDE doesn't like STxAxTIC.

Pete :D

Title: Re: I got a syntax bug today. What am I doing wrong?
Post by: codeguy on March 08, 2018, 10:32:18 pm
TRY
Code: QB64: [Select]
  1. SUB RePete
  2. STATIC STxAxTIC
  3.  
This will help cure your STxAxTIC cling.
:) :) :)
Title: Re: I got a syntax bug today. What am I doing wrong?
Post by: Pete on March 08, 2018, 11:43:47 pm
LOL@STxAxTIC cling!

I actually did have to check the wiki today for STATIC. It's been forever since I used it in a sub. Anyway, I got a C++ compiler failure message, so I had to double check it. The syntax was right, STATIC, but I forgot I had pasted in a data block. It was pasted after a SUB, which of course caused the compiler error. Fixed that and everything was fine, but I'm not going to miss an opportunity to blame it on STxAxTIC! Please note I only bug you when I'm out of sorts.

Pete :D
Title: Re: I got a syntax bug today. What am I doing wrong?
Post by: Ashish on March 09, 2018, 03:10:11 am
So I made a sub, and I wanted to preserve a variable. So I coded...

SUB mysub
STxAxTIC

... and it gave me a syntax error. It's a real head scratcher, but it does prove the IDE doesn't like STxAxTIC.

Pete :D


You forgot to add END SUB. ;D
Title: Re: I got a syntax bug today. What am I doing wrong?
Post by: Pete on March 09, 2018, 03:19:41 am
I tried...

END SNUB

...but I got another syntax error. Go figure.

Pete :D
Title: Re: I got a syntax bug today. What am I doing wrong?
Post by: Prithak on March 18, 2018, 09:16:00 am
I tried...

END SNUB

...but I got another syntax error. Go figure.

Pete :D
Do you even QB64 bro?????
Title: Re: I got a syntax bug today. What am I doing wrong?
Post by: bplus on March 18, 2018, 11:39:51 am
I tried...

END SNUB

...but I got another syntax error. Go figure.

Pete :D
Do you even QB64 bro?????

The bro is only coding in BALL these days, BALL is acronym for Beginner All-purpose Laughing Laughing....

Have a ball (with a wink)  ;D

 
Title: Re: I got a syntax bug today. What am I doing wrong?
Post by: Prithak on March 18, 2018, 12:26:31 pm
I tried...

END SNUB

...but I got another syntax error. Go figure.

Pete :D
Do you even QB64 bro?????

The bro is only coding in BALL these days, BALL is acronym for Beginner All-purpose Laughing Laughing....

Have a ball (with a wink)  ;D
LOL!!!
Title: Re: I got a syntax bug today. What am I doing wrong?
Post by: Pete on March 18, 2018, 04:19:17 pm
I tried...

END SNUB

...but I got another syntax error. Go figure.

Pete :D
Do you even QB64 bro?????

I've dabbled in QB /QB64 but I doubt I have produced much more than one or so million lines of code. Next time I'm picking a language that "Hello World!" can be produced with far less work. Now if you will excuse me, March is "r" month. Hello Wor...

Pete  :D

LOL@Basic All-Purpose Laughter Language
Title: Re: I got a syntax bug today. What am I doing wrong?
Post by: Prithak on March 18, 2018, 10:28:46 pm
I tried...

END SNUB

...but I got another syntax error. Go figure.

Pete :D

Do you even QB64 bro?????

I've dabbled in QB /QB64 but I doubt I have produced much more than one or so million lines of code. Next time I'm picking a language that "Hello World!" can be produced with far less work. Now if you will excuse me, March is "r" month. Hello Wor...

Pete  :D

LOL@Basic All-Purpose Laughter Language
Try C++ xD!

But DAMN!!! Someone SHOULD make the BALL language (Beginner All-Purpose Laughter Language)