Product, version and build: 2015 7.1.71
32 or 64 bit version of product: 64
Operating system: 8.1
32 or 64 bit OS: 64
When running a code like ....$user = $admService.OpenObject($userPath, $NULL, $NULL, 0).... etc you can get a property like $user.Name. In Powergui it's possible to run the script once and then when you type $user. you can choose between all available properties. As far as I know of this is not possible in Primalscript, or am I mistaken?
With regards,
Remco
how to list available properties of $user?
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: how to list available properties of $user?
No, PrimalScript does not work that way. We do not run a script to get a dynamic objects properties.
Script are run in their own process and for security reason we do not execute code just to get IntelliSense information.
We know other editors run code, sometimes without the user's knowledge, to provide more intellisense, but we consider that a security risk.
You can run your code in the integrated shell and examine objects there if you like though.
Script are run in their own process and for security reason we do not execute code just to get IntelliSense information.
We know other editors run code, sometimes without the user's knowledge, to provide more intellisense, but we consider that a security risk.
You can run your code in the integrated shell and examine objects there if you like though.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.