2024 Aug 01 11:47 AM
Hi, expert.
I have an activex component and want to use it with oops concept
It works with simple calling it throught ole2_object and i don't undestand why it works, cause after statement
create object - handle is 1-, and it's changed after i call method of it.
DATA EVatService TYPE OLE2_OBJECT,
ver type string.
CREATE OBJECT EVatService 'EInvVatService.Connector'.
CALL METHOD of EvatService 'Version' = ver.
write : ver.
Is it should work like that or i'm doing smth wrong.
And i want to know can it throught some standart classes, using oops concept?
2024 Aug 01 12:49 PM
It's also itresting that handle changes to int value if to add 1 command after 'Create Object' statemet.
So handle initializes with int.
CREATE OBJECT EVatService 'EInvVatService.Connector'.
wait UP TO 1 SECONDS.
Hanle is -1 if there no statements after 'Create Object'