Hi,
Can anyone help.
I'd like a BASIC function that will return the contents of a global.
See below. GetLocation() is passed the name of a global, and it needs to return the contents of that global. Is there a function that might do that?
Thanks
Milt.
=== Example code ====
Declare
Option Internal
Global MainLocation As String
' MainLocation is initialized later in code
End Declare
' ~~~~~ then later ~~~~
Function GetLocation(locn As String) As String
' Inbound parameter locn conatins: "MainLocation"
GetLocation = ...syntax.... to retrieve the contents of whatever global name was named in "locn"
End Function
============================
Can anyone help.
I'd like a BASIC function that will return the contents of a global.
See below. GetLocation() is passed the name of a global, and it needs to return the contents of that global. Is there a function that might do that?
Thanks
Milt.
=== Example code ====
Declare
Option Internal
Global MainLocation As String
' MainLocation is initialized later in code
End Declare
' ~~~~~ then later ~~~~
Function GetLocation(locn As String) As String
' Inbound parameter locn conatins: "MainLocation"
GetLocation = ...syntax.... to retrieve the contents of whatever global name was named in "locn"
End Function
============================