Unsetting a variable?
Unsetting a variable?
Is there a way to "unset" a variable similar to php's unset()?
no you can't (as far as i know).
local vars (in procedures) are automatically unset when exiting the proc.
others vars are unset when exiting the app.
the only thing you can do is to 'nullify' your var ( myvar = #Null, myvar$ = #Null$ ) but it's not an 'unset'.
local vars (in procedures) are automatically unset when exiting the proc.
others vars are unset when exiting the app.
the only thing you can do is to 'nullify' your var ( myvar = #Null, myvar$ = #Null$ ) but it's not an 'unset'.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
People ignore the main question: why would you want to do such a thing?
( 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... )
( The path to enlightenment and the PureBasic Survival Guide right here... )