|
Prev: How to replace the dataAdapter with tableAdapter?
Next: Missing parameter for data adapter select
From: Ronald S. Cook on 3 Jul 2008 17:47 I want to pass a string to a function: Function IsGuid(ByVal value As String) As Boolean .... End Function Can anyone tell me what goes in the function? What about: Function IsBoolean(ByVal value As String) As Boolean .... End Function Thanks for any help.
From: rowe_newsgroups on 3 Jul 2008 18:23 On Jul 3, 5:47 pm, "Ronald S. Cook" <rc...(a)westinis.com> wrote: > I want to pass a string to a function: > > Function IsGuid(ByVal value As String) As Boolean > ... > End Function > > Can anyone tell me what goes in the function? > > What about: > > Function IsBoolean(ByVal value As String) As Boolean > ... > End Function > > Thanks for any help. For the Guid I say a simple Try...Catch statement would work fine. For the Boolean, just use Boolean.TryParse(...) Thanks, Seth Rowe [MVP] http://sethrowe.blogspot.com/
|
Pages: 1 Prev: How to replace the dataAdapter with tableAdapter? Next: Missing parameter for data adapter select |