GetVariable(variable-name) only returns public, non-static variables.
GetVariable(variable-name, flags) does return ABL class variables defined as protected, private, and/or static if they satisfy the specified conditions, although you cannot get or set the values of any private or protected variables that are returned. A private variable will only be returned if it is defined in the given class; a private variable inherited from a super class will not be returned.