Anyone know if there is any tricks to doing this? Is it a type cast problem
or something else?
I have some Ben Forta code one works and the other errors.
First Code: Error's
<cfobject type=".NET" name="sidiClass" class="System.IO.DriveInfo">
<!--- Get drives --->
<cfset drives=sidiClass.GetDrives()>
<cfloop from="1" to="#ArrayLen(drives)#" index="Count">
<cfoutput>#drives[Count].Get_Name()# -
#drives[Count].Get_AvailableFreeSpace()#</cfoutput><br>
</cfloop>
The error is this
drives[Count].Get_AvailableFreeSpace()
and produces this error
The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.
With nothing useful.
Yet Ben Forta's Code with this works
<cfset QuerySetCell(result, "freespace",
drives[i].Get_AvailableFreeSpace())>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---