Support Forums

how to list available properties of $user?

Support for all customers who have purchased a PrimalScript product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
User avatar
rtiel1
Posts: 15
Joined: Thu Jul 26, 2012 11:34 pm

how to list available properties of $user?

Postby rtiel1 » Fri Nov 06, 2015 4:07 am

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
User avatar
Alexander Riedel
Posts: 5858
Joined: Tue May 29, 2007 4:43 pm

Re: how to list available properties of $user?

Postby Alexander Riedel » Thu Nov 19, 2015 3:31 pm

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.
Alexander Riedel
SAPIEN Technologies, Inc.

Return to “PrimalScript”

Who is online

Users browsing this forum: No registered users and 3 guests