Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SHARED statement
#6
(03-15-2023, 01:43 AM)SMcNeill Wrote: SHARED a, b, c AS INTEGER

The above is valid, but you're mixing data types.  a and b are undefined so they're SINGLE types.  c is the only integer type above.

Add this to the main code:

a! = 1
b! = 2

Ah, so it should be done as:

SHARED a AS INTEGER, b AS INTEGER, c AS INTEGER

Yeah, this makes sense.

Update: yep, just tried it, works. I'll pass this information along.

Thanks for sleuthing this out guys.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
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: 3 Guest(s)