GLBasic forum

Feature request => IDE/Syntax => Topic started by: Moru on 2009-Oct-08

Title: Easier use of TYPEs (WITH)
Post by: Moru on 2009-Oct-08
Any chance for a command similar to the one in VB, I think it was called "WITH". This makes it easer to use a type that you need to use many times within a code block. Can also use with deeply nested types.

Usage like this:

Code (glbasic) Select
TYPE tAtype
    x; y
ENDTYPE

GLOBAL theType as tAtype

WITH theType
    .x = 50
    .y = 150
ENDWITH
Title: Re: Easier use of TYPEs (WITH)
Post by: Kitty Hello on 2009-Oct-08
ALIAS