Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SHARED statement
#4
(03-14-2023, 10:38 PM)RhoSigma Wrote: Big Grin Another reason why I always use type suffixes, there's no worries about the correct syntax
Code: (Select All)
SHARED a%, b%, c% 'all done, less typing, no ambiguities

However, as far as I remember, this syntax was one of Fellippes last improvements, at least for DIM (SHARED) blabla AS... but obviously it works for a simple SHARED as well. Unfortunatly Fellippe left the stage before he properly documented his additions/improvements.

"Dim Shared . . ." only applies to the main program. "Shared" can only be used in Sub and Functions (QuickBasic Manual).
Today I don't feel like doing a test anymore. But I can assure you it works.

Main program: Dim Shared. . .
[Image: 04618-delaforce-fine-white-port-portwein...rtugal.png]
Reply


Messages In This Thread
SHARED statement - by TerryRitchie - 03-14-2023, 07:16 PM
RE: SHARED statement - by bplus - 03-14-2023, 08:01 PM
RE: SHARED statement - by RhoSigma - 03-14-2023, 10:38 PM
RE: SHARED statement - by Kernelpanic - 03-14-2023, 11:33 PM
RE: SHARED statement - by SMcNeill - 03-15-2023, 01:43 AM
RE: SHARED statement - by TerryRitchie - 03-15-2023, 03:18 AM
RE: SHARED statement - by mnrvovrfc - 03-15-2023, 12:23 PM
RE: SHARED statement - by SMcNeill - 03-15-2023, 02:07 PM
RE: SHARED statement - by TempodiBasic - 03-19-2023, 11:51 PM



Users browsing this thread: 1 Guest(s)