Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert object (from result.item) to string

Status
Not open for further replies.

hc5316

Programmer
Jul 25, 2003
8
US
'' on my getreport.asp...
'' I use query to get parent folder id... (the result datatype is object => vartype value is 9)
'' Response.Write display the value... but I have problem when append the parentFolderId to another string
'' How to convert the object to string (get object value) ??

Dim parentFolderId
set folderResult = IStore.Query("Select SI_ID From CI_INFOOBJECTS Where SI_PROGID = 'CrystalEnterprise.Folder' And SI_NAME = 'CRS'")
parentFolderId = folderResult.Item(1)
Response.Write(parentFolderId )
Response.Write(VarType(parentFolderId) )

otherString = "parent folder id: " & parentFolderId


Error:

------------------------------
Microsoft VBScript runtime (0x800A000D)
Type mismatch
-------------------------------



Thanks,
-Howard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top