Skip to content

Fix PyObjectAsVariant and change event types to reference to procedure#36

Closed
SemenKhmelev wants to merge 3 commits intolmbelo:masterfrom
global-system:master
Closed

Fix PyObjectAsVariant and change event types to reference to procedure#36
SemenKhmelev wants to merge 3 commits intolmbelo:masterfrom
global-system:master

Conversation

@SemenKhmelev
Copy link
Copy Markdown

No description provided.

sergey.bugay and others added 3 commits January 11, 2016 10:46
Resolved hints:
* [dcc32 Hint] PythonEngine.pas(5559): H2443 Inline function 'TList.Remove' has not been expanded because unit 'System.Types' is not specified in USES list
* [dcc32 Hint] PythonEngine.pas(5561): H2443 Inline function 'TList.Remove' has not been expanded because unit 'System.Types' is not specified in USES list
Otherwise, the work with results of PyObjectAsVariant  lead to AV   (PyObjectAsVariant.ArrayLowBound -> AV)
@pyscripter
Copy link
Copy Markdown
Collaborator

Unfortunately reference to has the disadvantage that the events will not be visible in the Object Inspector.
Also the second patch is not correct.
If the length is 0 we still want to return an empty var array.

V := VarArrayCreate([0,-1], VarVariant);
is valid in Delphi and equivalent to:
V := VarArrayOf([]);

@pyscripter pyscripter closed this Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants