Ok im getting the words from a text
Then...
Im using the Split method
to Split them if they contain "; "
Word() = Split(Words, "; ")
For Wd = 0 To UBound(Word)
This is the part where i want to separate the numbers even from odd...
Then do something like...
If Odd Then
listbox1.additem Word(Wd)
Else
listbox2.additem Word(Wd)
End If
Next Wd
Word() = Split(Words, "; ")
For Wd = 0 To UBound(Word)
If (Word(Wd) Mod 2) = 1 Then
lstOddNumbers.AddItem Word(Wd)
Else
lstEvenNumbers.AddItem Word(Wd)
End If
Next Wd
intWD or something would help also
Quote from: UserLoser on October 26, 2003, 02:17 AM
Word() = Split(Words, "; ")
For Wd = 0 To UBound(Word)
If (Word(Wd) Mod 2) = 1 Then
lstOddNumbers.AddItem Word(Wd)
Else
lstEvenNumbers.AddItem Word(Wd)
End If
Next Wd
Tip: 'Mod' gets the integer remainder from divison.
This question was asked somewhere else, too.. one of them should be deleted.
Quote from: iago on October 27, 2003, 02:14 AM
This question was asked somewhere else, too.. one of them should be deleted.
should keep newest and most up to date one