Ilogic: What is type of PropertySet.Item?

Ilogic: What is type of PropertySet.Item?

j.pavlicek
Collaborator Collaborator
913 Views
4 Replies
Message 1 of 5

Ilogic: What is type of PropertySet.Item?

j.pavlicek
Collaborator
Collaborator

Hello,

what is type of PropertySet.Item? It has to be Property (according the API Help).

 

But when I use following code, it gives me error The keyword is not a type. (Translated to EN by me.)

...
Dim iProps As PropertySet
Dim iProp As Property  'Error here
...

 

Why?

(I used Object instead of Property.)



Inventor 2022, Windows 10 Pro
Sorry for bad English.
0 Likes
Accepted solutions (2)
914 Views
4 Replies
Replies (4)
Message 2 of 5

marcin_otręba
Advisor
Advisor
Accepted solution

try:

 

Dim iProp As [Property]

 

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

Message 3 of 5

j.pavlicek
Collaborator
Collaborator

Could you please provide some sauce? What square brackets around a type means? 

Thank you!



Inventor 2022, Windows 10 Pro
Sorry for bad English.
0 Likes
Message 4 of 5

marcin_otręba
Advisor
Advisor
Accepted solution

with google uncle:

 

"The square brackets is used so that the compiler interprets it as a type, even if it would be a keyword."

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes
Message 5 of 5

j.pavlicek
Collaborator
Collaborator
Thank you, my Google is returns nonsence.




Inventor 2022, Windows 10 Pro
Sorry for bad English.
0 Likes