By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,640 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,640 IT Pros & Developers. It's quick & easy.

Convert String to GUID that is Compliant with Option Strict

P: n/a
I have the the folllowing code that works when Option Strict is Off:

Dim SearchID as string = "2F0B92F1-23E5-4CFA-B8D6-FAFEADE90EBC"
Dim SearchGUID As Guid
SearchGUID = GetConverter(SearchGUID).ConvertFrom(SearchID)

GetConverter is used with the following Imports Object:
Imports System.ComponentModel.TypeDescriptor

Is there a different way to convert a string to a GUID that is compliant
with Option Strict ON?

Thanks.
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"jmhmaine" <jm*@online.nospam> schrieb:
I have the the folllowing code that works when Option Strict is Off:

Dim SearchID as string = "2F0B92F1-23E5-4CFA-B8D6-FAFEADE90EBC"
Dim SearchGUID As Guid
SearchGUID = GetConverter(SearchGUID).ConvertFrom(SearchID)

GetConverter is used with the following Imports Object:
Imports System.ComponentModel.TypeDescriptor

Is there a different way to convert a string to a GUID that is compliant
with Option Strict ON?


\\\
Dim g As New Guid("2F...BC")
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

P: n/a
Gotta love the simple solutions, thanks!

"Herfried K. Wagner [MVP]" wrote:
"jmhmaine" <jm*@online.nospam> schrieb:
I have the the folllowing code that works when Option Strict is Off:

Dim SearchID as string = "2F0B92F1-23E5-4CFA-B8D6-FAFEADE90EBC"
Dim SearchGUID As Guid
SearchGUID = GetConverter(SearchGUID).ConvertFrom(SearchID)

GetConverter is used with the following Imports Object:
Imports System.ComponentModel.TypeDescriptor

Is there a different way to convert a string to a GUID that is compliant
with Option Strict ON?


\\\
Dim g As New Guid("2F...BC")
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.