DIMDATA query.

Previous topic - Next topic

Hatonastick

Does DIMDATA only work on one line?  ie. Can I do this?

DIMDATA array[], 0, 1, 2, 3, 4, 5
DIMDATA 6, 7, 8, 9

Or does it have to be like this?

DIMDATA array[], 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

I assumed it worked like a more direct version of DATA, where you don't have to read the data in yourself using READ, RESTORE etc.  If DIMDATA can only be used on one line, it might be a good idea to update the help section for it to remove any future confusion for the easily confused (such as myself). :)

Thanks.

MrTAToad

Use _ to split data over multiple lines, thus :

DIMDATA array[], 1, 2, 3, _
                         4, 5, 6

Hatonastick

#2
Aha!  Thanks, I was wondering if there was a way to split commands between lines.

MrTAToad

I have found that a space is needed before the _ character - otherwise the compiler will complain.