Student Needs Help with a VB6 Problem.... 
Author Message
 Student Needs Help with a VB6 Problem....

   > Why do I get an "Invalid" printout for any words
   >beginning with G/g, P/p or Z/z:
Because a word beginning with "G" is greater than the single letter "G"
and less than "H".
Change your Case statements to something like
Case "A" to "GZZZZ"
or better yet:
Select Case FirstLetter

   >Private Sub Form_Click()
   >Dim Word As String, UCWord as String
   >Word = InputBox("Enter a 5-letter word: ", "Word Test")
   >UCWord = UCase(Word)
   >Select Case UCWord
   >Case "A" To "G"
   >Print "Early Word"
   >Case "H" To "P"
   >Print "Middle Word"
   >Case "Q" To "Z"
   >Print "Late Word"
   >Case Else
   >Print "Invalid"
   >End Select
   >End Sub

Net-Tamer V 1.08X - Test Drive

Mon, 10 Sep 2001 03:00:00 GMT  
 [ 5 post ] 

 Relevant Pages 

1. HELP!! Student needs help with module/form error

2. Student needs help with record sets

3. Student Needs help with Visual Basic Database Programming

4. Student Needs Help

5. Student new to vb needs urgent help!

6. Student needs help!!!

7. student need help

8. Student Needs Serious Help with Array

9. Student Needs Help

10. Student Needs Help

11. Student needs a little help.

12. Students needing help in VB?


Powered by phpBB® Forum Software