08-31-2023, 05:42 PM
Code: (Select All)
ReDim Goals(6)
Goals(1) = New Tile()
Goals(1).Symbol = "o"
Help.
thank you.
Goals(1) = New Tile()
|
08-31-2023, 05:42 PM
Code: (Select All) ReDim Goals(6) Help. thank you.
08-31-2023, 06:08 PM
(This post was last modified: 08-31-2023, 06:09 PM by TerryRitchie.)
08-31-2023, 06:58 PM
(08-31-2023, 05:42 PM)gaslouk Wrote: As mentioned "new" is an operator for object oriented programming languages such as C++, PHP, Javascript etc. which is not possible in QB64(PE), however REDIM can do the job, but "Tile" have to be a user defined TYPE instead of a function. Code: (Select All) Type Tile
GuiTools, Blankers & other Projects:
https://staging.qb64phoenix.com/forumdisplay.php?fid=32 Libraries & useful Functions: https://staging.qb64phoenix.com/forumdisplay.php?fid=23 |
« Next Oldest | Next Newest »
|