#99616 - 2003-03-15 02:11 AM
I need a ubound of a object handle
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I'm doing $Computers = GetObject($ldap) for each $item in $computers next
but I need to know how many objects are in $computers first... I want to put a progressbar integral to the for each.
$max=ubound($computers) doesn't work [ 15. March 2003, 02:12: Message edited by: Radimus ]
|
Top
|
|
|
|
#99619 - 2003-03-15 02:38 AM
Re: I need a ubound of a object handle
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I've tried:
$Computers = GetObject($area) ? $computers.count ? ubound($computers) $max=0 for each $c in $computers $max=$max+1 next
the for each works, but it is kludgy...
|
Top
|
|
|
|
#99621 - 2003-03-15 02:54 AM
Re: I need a ubound of a object handle
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Anybody good at using ADO and LDAP SQL dialect? Can one "select count from a collection"?
Example SQL dialect:
Select ADsPath, cn FROM 'LDAP://O=Internet/DC=COM/DC=ARCADIABAY/DC=ARCADIADEV' where objectClass='group'
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 259 anonymous users online.
|
|
|