• Print

Author Topic: ARRAYS not supported INSIDE TYPE STRUCTURES [verified]  (Read 944 times)

happybasic

  • Newbie
  • *
  • Posts: 3
    • Email
ARRAYS not supported INSIDE TYPE STRUCTURES [verified]
« on: September 09, 2008, 06:28:53 AM »
QB64 not support QBasic's TYPE function, example as below:

DECLARE FUNCTION ChineseMode% ()
DECLARE SUB LCD (y%, x%, a$, c%, t%)
DECLARE FUNCTION GetBit$ (Num%, Bit%)

ON KEY(2) GOSUB CLOCK1
ON KEY(3) GOSUB CLOCK2

TYPE ZiKu

  a         AS STRING * 1
  b(0 TO 7) AS INTEGER

END TYPE

complie message:
Expected variablename AS type
Caused by (or after):
LINE 0: B (0 TO 7) AS INTEGER
       ^ also, the line no is wrong, the right is 11.
« Last Edit: September 17, 2008, 05:25:19 AM by Galleon »

qbguy

  • Full Member
  • ***
  • Posts: 239
Re: QBasic's TYPE not support & Line no is wrong~
« Reply #1 on: September 11, 2008, 01:41:41 PM »
TYPE is supported in QB64. QBASIC does not allow arrays in user defined types and neither does QB64.

happybasic

  • Newbie
  • *
  • Posts: 3
    • Email
Re: QBasic's TYPE not support & Line no is wrong~
« Reply #2 on: September 12, 2008, 07:23:47 PM »
Quote from: qbguy on September 11, 2008, 01:41:41 PM
TYPE is supported in QB64. QBASIC does not allow arrays in user defined types and neither does QB64.


I used Quick Basic 7.1, that allow arrays in user defined types,is thar QB64 support QBASIC only?

  • Print