I infow Member Licensed User Longtime User Aug 15, 2013 #1 Hi, I declared a Cursor in globals, and trying to reutilize in the activity and getting: Error description: Use of undeclared array: CursorName In a clicksub of a button. I called the SQL data in another sub... Its possible share cursor data between the subs without call ExecuteNonQuery all time? Tried a simple Dim CurName as Cursor on Globals and Process Globals with no luck. Thanks
Hi, I declared a Cursor in globals, and trying to reutilize in the activity and getting: Error description: Use of undeclared array: CursorName In a clicksub of a button. I called the SQL data in another sub... Its possible share cursor data between the subs without call ExecuteNonQuery all time? Tried a simple Dim CurName as Cursor on Globals and Process Globals with no luck. Thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 15, 2013 #2 You should declare it as a process global variable. You can then access it from other modules: B4X: Main.MyCursor.GetString(..) Upvote 0
You should declare it as a process global variable. You can then access it from other modules: B4X: Main.MyCursor.GetString(..)
E Eumel Active Member Licensed User Longtime User Aug 15, 2013 #3 Hi, sharing variables during all modules , you must declare them in Process Globals. If you want read the data from an other module, you must call them with the name of the module. eg Main.CursorName Upvote 0
Hi, sharing variables during all modules , you must declare them in Process Globals. If you want read the data from an other module, you must call them with the name of the module. eg Main.CursorName