|
-
May 2nd, 2008, 03:17 PM
#1
Converting to string
Here's a general question. I have some code that was generated via templates. In general, wherever an object needed to be turned into a string, the templates used CStr(). This works fine for nearly everything...until I switched a field to a GUID, at which point CStr() throws an exception. Using .ToString works fine for GUIDs, and I can't think of any situation where .ToString will fail when CStr() would work. All of the items that are being passed in are fields in a datarow, datagridviewrow, pure objects (that are generally fields from datarows), or something like that. Am I overlooking a situation?
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|