AsUser sample

Hi everyone,

I’m looking for a sample for ArUser lib.
I want to create a list (in vc4), where all created user
are visible.
Problem is, there is no example in the help.

Hi,

we don’t provide examples for every single library but imo the function blocks are described very well to be able to go and start programming any functionality you wish for.

  • Start with ArUserInitList() , parameterize it and call it.
  • With that filled properly and called, call ArUserGetFirst() next and use the result to judge if it gave you a valid user (output Done, store the resulting ElementName) or maybe found none (ErrorID being arUSER_WRN_END_OF_LIST
  • Call ArUserGetNext() next and every time you do, store result or check if no more users (same as with ArUserGetFirst())
  • Once finished or no more space in your user array, destroy the List handle (to free memory) by calling ArUserDestroyList()

Hope that helps
BR

Edit: I edited this to be more generic but the edit history will give away more :wink:

Hi @c507613 ,

did my previous reply help you? If so, please let me know or mark it as solution.

Thanks and BR
Michael