B4X FEED Passing Cursor in as a parameter creates an error

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Passing Cursor in as a parameter creates an error است. این موضوع تا کنون 96 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Passing Cursor in as a parameter creates an error
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
96
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,576
4,480
Since the latest update of B4A, there is a section of code relating to passing in a cursor as parameter that is no longer performing as it did in the past. The following line of code passes a cursor, map and spinner in as parameters to a "General Module" that then populates all the parameters and returns them to the original function (Note that "CursorScorerUmpire" is declared in Process_Globals):
B4X:

modGeneral.QueryScorerUmpire(CursorScorerUmpire, spnUmpire2, MapScorerUmpire, NewGame.TheServerRegionID, "Please select an Umpire")

The "General Module" code header is as follows:
B4X:

Sub QueryScorerUmpire(CursorScorerUmpire As Cursor, SpnScorerUmpire As Spinner, mapScorerUmpire As Map, RegionID As Int, HintText As String)

Once the Cursor, Spinner and Map are populated by running a DB query in the code above, the objects are passed back to the original Sub. At that point I run the following code to check if the Cursor Recordset does contain any...



 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا