Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record source - how to speed up manipulation?
Message
From
24/03/2006 20:28:14
 
 
To
24/03/2006 11:20:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01107414
Message ID:
01107564
Views:
19
Hi Naomi,
>why not something like
rs = loConn.Execute(m.ldapStr)
do while  !rs.eof
	oUser = getobject(rs.fields(0).value)
	insert into (m.tcCursorName) (cFullName, cuserid, cDepartment, cPhone) ;
		values (;
                  upper(nvl(m.oUser.cn,"")), ;
                  upper(nvl(m.oUser.sAMAccountName,"")), ;
                  upper(nvl(m.oUser.department,"")), ;
                  upper(nvl(m.oUser.telephoneNumber,"")))
	rs.MoveNext()
enddo
but the problem is probably the marshalling across COM borders,
which is still there in less lines <g>. Lines like
upper(nvl(m.oUser.cn,""))
should be minimally slower if encountering oodles of .NULL.s than
nvl(upper(m.oUser.cn),"")
but I haven't tested it <bg>. Doubt anything will make a big impact.

regards

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform