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 the object to string

Status
Not open for further replies.

hc5316

Programmer
Jul 25, 2003
8
US
'' The data from query result.. I have is an object....(parentFolderId)
'' 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

 
Convert the object to string --> asnwer is cStr() function

____________________________________________________
Python????? The other programming language you never thought of!
thread333-584700

onpnt2.gif
 
I have tried.... cstr() doesn't work with object

- only: bool, date, empty, error, numeric and null
- not object..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top