CarlaGibson
asked on
Option Strict On disallows implicit conversions from 'Object' to 'System.Guid'
I'm getting the following error:
Option Strict On disallows implicit conversions from 'Object' to 'System.Guid'
Here's my code:
Dim prmOutputParam As SqlParameter = cm.Parameters.Add("@UserKe yGUID", SqlDbType.UniqueIdentifier )
prmOutputParam.Direction = ParameterDirection.Output
Dim tmpGUID As Guid
tmpGUID = cm.Parameters("@UserKeyGUI D").Value
What is the proper way to tell .NET that cm.Parameters("@UserKeyGUI D").Value is a Guid and not an Object?
Option Strict On disallows implicit conversions from 'Object' to 'System.Guid'
Here's my code:
Dim prmOutputParam As SqlParameter = cm.Parameters.Add("@UserKe
prmOutputParam.Direction = ParameterDirection.Output
Dim tmpGUID As Guid
tmpGUID = cm.Parameters("@UserKeyGUI
What is the proper way to tell .NET that cm.Parameters("@UserKeyGUI
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
Not a problem, glad I was able to help. ;=)
ASKER