Author Topic: An introduction; A note on Wiki  (Read 9606 times)

0 Members and 1 Guest are viewing this topic.

Offline dcromley

  • Newbie
  • Posts: 2
    • View Profile
An introduction; A note on Wiki
« on: April 15, 2022, 11:34:00 am »
This is my first post -- it is meant to be constructive -- there is so much here; so much history; a bottomless pit.
I haven't got the hang of here vs. discord vs. tapatalk.

I noticed that the Wiki for "SUB" does not have the "static" option.
I hope it is helpful to point that out.

I met a nice guy on PM.
Looking forward to more looking and participating.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: An introduction; A note on Wiki
« Reply #1 on: April 15, 2022, 12:13:01 pm »
Welcome @dcromley

Are you talking about static for the whole sub or all the variables in it?
Was this something in earlier QB?

I know you can have Static variables in a Sub but I don't think that's what you mean.


Marked as best answer by dcromley on April 15, 2022, 06:12:34 pm

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: An introduction; A note on Wiki
« Reply #2 on: April 15, 2022, 12:42:18 pm »
Welcome @dcromley

Are you talking about static for the whole sub or all the variables in it?
Was this something in earlier QB?

I know you can have Static variables in a Sub but I don't think that's what you mean.

There's no mention of STATIC for the SUB itself:  https://wiki.qb64.org/wiki/SUB

Code: QB64: [Select]
  1. For i = 1 To 5
  2.     foo
  3.  
  4.     x = x + 1
  5.     Print x

Such as the above...
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline dcromley

  • Newbie
  • Posts: 2
    • View Profile
Re: An introduction; A note on Wiki
« Reply #3 on: April 15, 2022, 12:52:30 pm »
Yes -- Steve's got it.
And what a time to join (Steve's QB64 Bible is a joy!).

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: An introduction; A note on Wiki
« Reply #4 on: April 15, 2022, 01:01:59 pm »
Always glad to hear when someone enjoys any of my stuff.  Many thanks!  ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: An introduction; A note on Wiki
« Reply #5 on: April 15, 2022, 01:12:37 pm »
So what does static do like that? Make all variables static?

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: An introduction; A note on Wiki
« Reply #6 on: April 15, 2022, 01:26:05 pm »
Makes the whole sub static.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline CharlieJV

  • Newbie
  • Posts: 89
    • View Profile
Re: An introduction; A note on Wiki
« Reply #7 on: April 15, 2022, 02:26:01 pm »
Welcome to the "QB64-forumhood", @dcromley !