Click here to Skip to main content
15,892,059 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalprinting problems Pin
Eng Hong Teo13-Jul-03 20:59
Eng Hong Teo13-Jul-03 20:59 
GeneralON GOTO statement to vc++ Pin
shanila13-Jul-03 3:12
shanila13-Jul-03 3:12 
GeneralRe: ON GOTO statement to vc++ Pin
Hesham Amin13-Jul-03 8:52
Hesham Amin13-Jul-03 8:52 
QuestionHow do I use Left, Right and Mid Functions? Pin
MrGee12-Jul-03 8:49
MrGee12-Jul-03 8:49 
AnswerRe: How do I use Left, Right and Mid Functions? Pin
Nick Parker12-Jul-03 9:16
protectorNick Parker12-Jul-03 9:16 
AnswerRe: How do I use Left, Right and Mid Functions? Pin
Hesham Amin12-Jul-03 9:21
Hesham Amin12-Jul-03 9:21 
GeneralRe: How do I use Left, Right and Mid Functions? Pin
MrGee14-Jul-03 9:32
MrGee14-Jul-03 9:32 
GeneralRe: How do I use Left, Right and Mid Functions? Pin
dynamic14-Jul-03 9:54
dynamic14-Jul-03 9:54 
you could cut down with the string , also you could make an array of your textboxes , then you could use something like this :
Vb6:
<font color="blue">Private</font> <font color="blue">Sub</font> Command1_Click() <br> <font color="blue">Dim</font> code(2 To 49) <font color="blue">As</font> <font color="blue">String</font>, x <font color="blue">As</font> <font color="blue">Long</font> <br> <font color="blue">Dim</font> txthx(2 To 49) <font color="blue">As</font> <font color="blue">String</font> <br> <font color="blue">Dim</font> tb <font color="blue">As</font> TextBox <br>  <br> <font color="blue">For</font> x = 2 <font color="#0000FF">To</font> 49 <br>     <font color="blue">For</font> <font color="blue">Each</font> tb <font color="blue">In</font> <font color="#0000FF">Controls </font><br>         <font color="#0000FF">If</font> tb.Name = txthx(x) <font color="#0000FF">Then </font><br>             tb.Text = code(x) <br>         <font color="blue">End</font> <font color="#0000FF">If </font><br>     <font color="blue">Next</font> <br> <font color="blue">Next</font> <br>  <br> <font color="blue">End</font> <font color="blue">Sub</font> <br> 



that would cut out a lot of code Smile | :)



Vb:
<font color="blue">Public Function</font> TwinsOnWay(<font color="blue">ByVal</font> twins <font color="blue">As String</font>) <font color="blue">As String <br>     Select Case</font> twins<br>         <font color="blue">Case</font> "Gender" <br>             <font color="blue">Return</font> "Two Girls" <br>     <font color="blue">End Select <br> End Function</font> <br> 


GeneralRe: How do I use Left, Right and Mid Functions? Pin
MrGee16-Jul-03 14:24
MrGee16-Jul-03 14:24 
GeneralClearing the Console Pin
mightymiracleman12-Jul-03 7:33
mightymiracleman12-Jul-03 7:33 
GeneralRe: Clearing the Console Pin
Mike Dimmick13-Jul-03 0:59
Mike Dimmick13-Jul-03 0:59 
GeneralRe: Clearing the Console Pin
mightymiracleman13-Jul-03 6:56
mightymiracleman13-Jul-03 6:56 
GeneralRe: Clearing the Console Pin
Mike Dimmick13-Jul-03 7:05
Mike Dimmick13-Jul-03 7:05 
GeneralRe: Clearing the Console Pin
Richard Deeming14-Jul-03 2:18
mveRichard Deeming14-Jul-03 2:18 
GeneralFiltering two datatables (urgent plz) Pin
aamirsaddiq12-Jul-03 2:26
aamirsaddiq12-Jul-03 2:26 
GeneralRe: Filtering two datatables (urgent plz) Pin
Mike Dimmick12-Jul-03 3:29
Mike Dimmick12-Jul-03 3:29 
GeneralRe: Filtering two datatables (urgent plz) Pin
aamirsaddiq12-Jul-03 21:42
aamirsaddiq12-Jul-03 21:42 
GeneralRe: Filtering two datatables (urgent plz) Pin
Mike Dimmick13-Jul-03 0:50
Mike Dimmick13-Jul-03 0:50 
GeneralRe: Filtering two datatables (urgent plz) Pin
aamirsaddiq13-Jul-03 1:10
aamirsaddiq13-Jul-03 1:10 
GeneralRe: Filtering two datatables (urgent plz) Pin
Mike Dimmick13-Jul-03 7:14
Mike Dimmick13-Jul-03 7:14 
GeneralVery Handy Utility Pin
William Bartholomew11-Jul-03 21:29
William Bartholomew11-Jul-03 21:29 
GeneralTCP/IP Multi Server Chat System Pin
Syphon11-Jul-03 9:05
Syphon11-Jul-03 9:05 
GeneralRe: TCP/IP Multi Server Chat System Pin
Wayne Phipps11-Jul-03 9:15
Wayne Phipps11-Jul-03 9:15 
GeneralRe: TCP/IP Multi Server Chat System Pin
William Bartholomew11-Jul-03 21:32
William Bartholomew11-Jul-03 21:32 
GeneralPlug-ins API Pin
shem711-Jul-03 2:10
shem711-Jul-03 2:10 

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.