Easier use of TYPEs (WITH)

Previous topic - Next topic

Moru

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

Kitty Hello