Click here to Skip to main content
16,011,849 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all,

i'm generating guid by using
VB
Public getItem(ByVal dc As Item ) As Result
    Dim s As String = Guid.NewGuid.ToString
    dc.Guid = New Guid(s)
End Function

but still i'm getting value of dc.guid=empty

pls give me a proper solution for it.
Posted
Updated 7-Feb-12 8:02am
v2

1 solution

Why do you need to do this ? dc.guid = guid.newguid solves your problem, doesn't it ?
 
Share this answer
 
Comments
Dave Kreskowiak 7-Feb-12 21:12pm    
Apparently, documentation and Intellisense are only appropriate for house training your pets.
Member 7887455 7-Feb-12 23:57pm    
actually i'm getting all certain information related to item from dc but their have guid is empty that's why i need to assign a guid to it. and after that i want to insert the record into table.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900