List vs. NewList

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

List vs. NewList

Post by blueznl »

we have NewList wich erases the list

making a new list global is easy:

Global NewList

but let's say i have a bunch of procedures, and i just want to create a global list upon the first call of one of those procedures, i cannot use:

Global NewList

... as the first line, as it would clear the list :-)

it's a bit of a stupid request, but I'd like to have a List command so a list is not cleared when I make it global

or am i loosing it? (too many num3 posts)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Use a flag variable?
Post Reply