Click here to Skip to main content
15,905,963 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionshape of number Pin
memas6316-Sep-12 6:24
memas6316-Sep-12 6:24 
AnswerRe: shape of number Pin
Wes Aday16-Sep-12 6:44
professionalWes Aday16-Sep-12 6:44 
GeneralRe: shape of number Pin
memas6316-Sep-12 7:00
memas6316-Sep-12 7:00 
GeneralRe: shape of number Pin
Wes Aday16-Sep-12 7:08
professionalWes Aday16-Sep-12 7:08 
GeneralRe: shape of number Pin
memas6316-Sep-12 7:13
memas6316-Sep-12 7:13 
GeneralRe: shape of number Pin
Wes Aday16-Sep-12 7:18
professionalWes Aday16-Sep-12 7:18 
GeneralRe: shape of number Pin
memas6316-Sep-12 7:19
memas6316-Sep-12 7:19 
GeneralRe: shape of number Pin
Steven St. John16-Sep-12 16:03
Steven St. John16-Sep-12 16:03 
XML
Here's some code that might give you an idea, since it takes a string, iterates through character by character, and tests each character.  Obviously your test will be different, but it should get you on the right track.  Taken from <a href="http://msdn.microsoft.com/en-us/library/system.string.chars.aspx">MSDN</a>[<a href="http://msdn.microsoft.com/en-us/library/system.string.chars.aspx" target="_blank" title="New Window">^</a>].

<pre lang="vb">Console.Write("Type a string : ")
Dim myString As String = Console.ReadLine()
Dim i As Integer
For i = 0 To myString.Length - 1
   If Uri.IsHexDigit(myString.Chars(i)) Then
      Console.WriteLine("{0} is a hexadecimal digit.", myString.Chars(i))
   Else
      Console.WriteLine("{0} is not a hexadecimal digit.", myString.Chars(i))
   End If
Next
' The example produces output like the following:
'    Type a string : 3f5EaZ
'    3 is a hexadecimal digit.
'    f is a hexadecimal digit.
'    5 is a hexadecimal digit.
'    E is a hexadecimal digit.
'    a is a hexadecimal digit.
'    Z is not a hexadecimal digit.  </pre>

GeneralRe: shape of number Pin
memas6317-Sep-12 0:42
memas6317-Sep-12 0:42 
QuestionI need to copy a file into (anyone's) Startup Folder w/ no Access errors... Pin
WillB1215-Sep-12 22:45
WillB1215-Sep-12 22:45 
AnswerRe: I need to copy a file into (anyone's) Startup Folder w/ no Access errors... Pin
Richard MacCutchan16-Sep-12 0:18
mveRichard MacCutchan16-Sep-12 0:18 
GeneralRe: I need to copy a file into (anyone's) Startup Folder w/ no Access errors... Pin
WillB1216-Sep-12 0:39
WillB1216-Sep-12 0:39 
GeneralRe: I need to copy a file into (anyone's) Startup Folder w/ no Access errors... Pin
Richard MacCutchan16-Sep-12 1:07
mveRichard MacCutchan16-Sep-12 1:07 
GeneralRe: I need to copy a file into (anyone's) Startup Folder w/ no Access errors... Pin
WillB1216-Sep-12 3:23
WillB1216-Sep-12 3:23 
GeneralRe: I need to copy a file into (anyone's) Startup Folder w/ no Access errors... Pin
Richard MacCutchan16-Sep-12 4:05
mveRichard MacCutchan16-Sep-12 4:05 
AnswerRe: I need to copy a file into (anyone's) Startup Folder w/ no Access errors... Pin
Dave Kreskowiak16-Sep-12 6:02
mveDave Kreskowiak16-Sep-12 6:02 
QuestionMicrosoft ReportViewer Pass By Parameter(WinForm) Pin
garyu8715-Sep-12 2:06
garyu8715-Sep-12 2:06 
AnswerRe: Microsoft ReportViewer Pass By Parameter(WinForm) Pin
garyu8715-Sep-12 4:02
garyu8715-Sep-12 4:02 
QuestionWhat Trace??? Pin
alirezamansoori14-Sep-12 5:20
alirezamansoori14-Sep-12 5:20 
AnswerRe: What Trace??? Pin
Wes Aday14-Sep-12 5:27
professionalWes Aday14-Sep-12 5:27 
GeneralRe: What Trace??? Pin
alirezamansoori14-Sep-12 7:23
alirezamansoori14-Sep-12 7:23 
GeneralRe: What Trace??? Pin
Wes Aday14-Sep-12 9:09
professionalWes Aday14-Sep-12 9:09 
AnswerRe: What Trace??? Pin
Richard MacCutchan14-Sep-12 5:35
mveRichard MacCutchan14-Sep-12 5:35 
GeneralRe: What Trace??? Pin
alirezamansoori14-Sep-12 7:23
alirezamansoori14-Sep-12 7:23 
GeneralRe: What Trace??? Pin
Richard MacCutchan14-Sep-12 7:31
mveRichard MacCutchan14-Sep-12 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.