Click here to Skip to main content
15,891,423 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCreating "virtual pages" Pin
grantg5-Mar-07 9:57
grantg5-Mar-07 9:57 
AnswerRe: Creating "virtual pages" Pin
Dave Kreskowiak5-Mar-07 14:00
mveDave Kreskowiak5-Mar-07 14:00 
Questionvb.net class Pin
Lorenzo5-Mar-07 9:55
Lorenzo5-Mar-07 9:55 
AnswerRe: vb.net class Pin
Colin Angus Mackay5-Mar-07 13:58
Colin Angus Mackay5-Mar-07 13:58 
GeneralRe: vb.net class Pin
Colin Angus Mackay5-Mar-07 20:29
Colin Angus Mackay5-Mar-07 20:29 
Questionreading from a multiline textbox Pin
irfan_mohsin5-Mar-07 9:03
irfan_mohsin5-Mar-07 9:03 
AnswerRe: reading from a multiline textbox Pin
Marcus J. Smith5-Mar-07 9:19
professionalMarcus J. Smith5-Mar-07 9:19 
GeneralRe: reading from a multiline textbox Pin
irfan_mohsin5-Mar-07 11:35
irfan_mohsin5-Mar-07 11:35 
Hi,
this is what my code is
Private Function testFunction(ByVal str As String)
Dim lines() As String
Dim s As String = "-"
Dim before, after As String
' Split the contents into lines.
lines = Split(str, vbCrLf)
If lines.Length > 0 Then
For i As Integer = 0 To lines.Length - 1
Dim mypos As Integer
mypos = InStr(lines(i), s)
before = lines(i).Substring(0, mypos - 1)
Dim il As Integer
il = lines(i).Length
after = lines(i).Substring(mypos)
If CInt(after) <= CInt(before) Then
Response.Write("First Item is greate than second")
End If
Next
End If
End Function
But the problem is i even want to check that the last item in lines array should be less than the first item of the next lines()
i.e. 1.5-2.5
3.5-4.5
4.0-5.0 'Note:here 4.0 is not valid as in the last item we already had 4.5
I hope you got it
QuestionAutomated Program for getting downloadable files Pin
rucadulu5-Mar-07 8:52
rucadulu5-Mar-07 8:52 
AnswerRe: Automated Program for getting downloadable files Pin
nlarson115-Mar-07 9:35
nlarson115-Mar-07 9:35 
GeneralRe: Automated Program for getting downloadable files Pin
rucadulu5-Mar-07 12:57
rucadulu5-Mar-07 12:57 
GeneralRe: Automated Program for getting downloadable files Pin
nlarson116-Mar-07 3:34
nlarson116-Mar-07 3:34 
AnswerRe: Automated Program for getting downloadable files Pin
Carmine_XX7-Mar-07 4:33
Carmine_XX7-Mar-07 4:33 
QuestionInserting a WAV into a VB.NET 2005 prog Pin
harveyhanson5-Mar-07 8:08
harveyhanson5-Mar-07 8:08 
AnswerRe: Inserting a WAV into a VB.NET 2005 prog Pin
nlarson115-Mar-07 9:36
nlarson115-Mar-07 9:36 
GeneralRe: Inserting a WAV into a VB.NET 2005 prog Pin
harveyhanson5-Mar-07 9:48
harveyhanson5-Mar-07 9:48 
GeneralRe: Inserting a WAV into a VB.NET 2005 prog Pin
nlarson115-Mar-07 9:58
nlarson115-Mar-07 9:58 
GeneralRe: Inserting a WAV into a VB.NET 2005 prog Pin
harveyhanson5-Mar-07 11:09
harveyhanson5-Mar-07 11:09 
GeneralRe: Inserting a WAV into a VB.NET 2005 prog Pin
nlarson116-Mar-07 3:36
nlarson116-Mar-07 3:36 
Questionflash file in vb.net Pin
bhawna_k5-Mar-07 6:33
bhawna_k5-Mar-07 6:33 
AnswerRe: flash file in vb.net Pin
AlexeiXX35-Mar-07 8:00
AlexeiXX35-Mar-07 8:00 
GeneralRe: flash file in vb.net Pin
bhawna_k5-Mar-07 22:38
bhawna_k5-Mar-07 22:38 
QuestionHandling embedded quotes in csv files Pin
Sarah Jane Snow5-Mar-07 6:15
Sarah Jane Snow5-Mar-07 6:15 
AnswerRe: Handling embedded quotes in csv files Pin
nlarson115-Mar-07 7:04
nlarson115-Mar-07 7:04 
GeneralRe: Handling embedded quotes in csv files Pin
Sarah Jane Snow5-Mar-07 21:07
Sarah Jane Snow5-Mar-07 21:07 

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.