... hmm not sure i'm following this right so just do a general help
these are always global
#constant [inline name] [inline value]
[variable] AS [variable type]
type [variable type name]
[variables]
endtype
global [variable]
these are local & global depending on placement within a function
dim [array name]([elements])
[variable]
[variable]#
[variable]$
remember that althought an array isn't by default global, because an AS type definition is then this also automatically declares the array as a global
if you wish to keep things private within functions you place the word 'local' infront of it, and this then gives the following function, variable, array access within that function.
also remember that the input variables
function [function name]([input variables])
are also locally defined by defualt, and declaring them as global is likely to crash your DBpro program.
however what if you declare a local variable yet wish it to be used in another function?
remember that whilst the function is running the contained data IS NOT constricted to simply what is running within that function, but if you run a function within it - that too will also be handed down the variable for use because it is localising the variable definition within that particular function ... it is only once the function has ended that the variable is gone.
if no input for a variable you declare is provided within the subiquent function then it is likely that you function will not perform as you wanted it to
hopefully this makes things a little clearer
Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?