Respond to this messageReturn to Index
Original Message
  • nested types work.
    • (Login MCalkins)
      Moderator
      Posted Jun 4, 2012 5:20 AM

      arrays within types:

      In QBASIC? No.
      In QB64? Not yet, as far as I know, but expect it in the future.

      types within types:

      Yes, in both QBASIC and QB64.

      Regards,
      Michael

      TYPE a
      n AS INTEGER
      o AS INTEGER
      END TYPE

      TYPE b
      x AS a
      y AS LONG
      END TYPE

      DIM z AS b

      z.x.n = 5
      z.x.o = 6
      z.y = 4

      PRINT z.x.n
      PRINT z.x.o
      PRINT z.y
    Your Name
    Message Title
    Message Text
    Options
          


     Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement