#64552 - 2002-04-17 09:38 PM
Re: UDF Design
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
Great stuff yall!
My input on returning an array from a UDF call.
I am guilty of this, several of my UDF's return an array.
In all cases the array that is returned is 100% pure data, and using an array seemed like the natural way to present the data being requested.
With the addition of the enhanced array tools in Kix 4.x, working with array's is much simpler.
take for example my GroupMembers() UDF.
This UDF returns an array, and the array size will always be unknown.
All groupmembers() really is, is the "(ADSI Group Object).members" interface wrapped up into an easy to use UDF with some simple filter capabilities.
The "(ADSI Group Object).members" object is an array of "(ASDI Groups Objects)" that the given user is a member of.
So in this case, returning an Array just seemed logical.
Bryce
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 657 anonymous users online.
|
|
|