Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A bit dim about "DIM"
#6
(04-30-2022, 04:56 AM)BSpinoza Wrote:
Quote:Pete wrote: "DIM can also be used with TYPE statements."

I think Pete wanted to say this:

In older QB64 versions for typing of variables you have to use the DIM for every value like this :


Code: (Select All)
DIM A AS INTEGER
DIM B AS INTEGER
DIM C AS INTEGER
...
DIM X AS DOUBLE
DIM Y AS DOUBLE
DIM Z AS DOUBLE...

In the newer Versions (I don't know since which version number)  you can write:

Code: (Select All)
DIM A, B, C AS INTEGER
DIM X, Y, Z AS DOUBLE

Oh yeah, that's certainly a possibility. I've only used the new method a couple of times. Very married to the old style, but the new method is definitely a time saver. Well any bases we haven't covered here, guys?

Pete
Reply


Messages In This Thread
A bit dim about "DIM" - by PhilOfPerth - 04-30-2022, 03:34 AM
RE: A bit dim about "DIM" - by OldMoses - 04-30-2022, 03:52 AM
RE: A bit dim about "DIM" - by Pete - 04-30-2022, 03:56 AM
RE: A bit dim about "DIM" - by PhilOfPerth - 04-30-2022, 04:16 AM
RE: A bit dim about "DIM" - by BSpinoza - 04-30-2022, 04:56 AM
RE: A bit dim about "DIM" - by Pete - 04-30-2022, 05:07 AM
RE: A bit dim about "DIM" - by SMcNeill - 04-30-2022, 05:08 AM
RE: A bit dim about "DIM" - by BSpinoza - 04-30-2022, 06:10 AM
RE: A bit dim about "DIM" - by PhilOfPerth - 04-30-2022, 10:16 AM



Users browsing this thread: 3 Guest(s)