Project

General

Profile

Bug #4148

Passing HANDLE to method with TABLE-HANDLE or DATASET-HANDLE converts to uncompilable code

Added by Hynek Cihlar about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:

Related issues

Related to Base Language - Feature #3751: implement support for OO 4GL and structured error handling Closed

History

#1 Updated by Hynek Cihlar about 7 years ago

The subjected test case:

DEFINE VARIABLE httCust AS HANDLE NO-UNDO.
DEFINE VARIABLE myArr AS Progress.Json.ObjectModel.JsonArray NO-UNDO.

DEFINE TEMP-TABLE ttCust.

httCust = BUFFER ttCust:HANDLE.
myArr = NEW Progress.Json.ObjectModel.JsonArray().
myArr:Read(httCust:TABLE-HANDLE).

converts to

myArr.ref().read(httCust.unwrapBuffer().tableHandle());

The table handle needs to be wrapped in TableParameter class.

#2 Updated by Greg Shah about 7 years ago

  • Related to Feature #3751: implement support for OO 4GL and structured error handling added

Also available in: Atom PDF