Click here to Skip to main content
15,922,007 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Dynamic function calls in VB Pin
Dave Kreskowiak20-Nov-03 9:29
mveDave Kreskowiak20-Nov-03 9:29 
GeneralRe: Dynamic function calls in VB Pin
Cliff Wellman21-Nov-03 2:47
Cliff Wellman21-Nov-03 2:47 
Generalcalling myclass subs Pin
Anonymous19-Nov-03 10:10
Anonymous19-Nov-03 10:10 
GeneralRe: calling myclass subs Pin
Dave Kreskowiak20-Nov-03 9:08
mveDave Kreskowiak20-Nov-03 9:08 
General.NET Deployment Errors Pin
wmhhodson19-Nov-03 7:48
wmhhodson19-Nov-03 7:48 
GeneralRe: .NET Deployment Errors Pin
Dave Kreskowiak19-Nov-03 8:37
mveDave Kreskowiak19-Nov-03 8:37 
GeneralRe: .NET Deployment Errors Pin
wmhhodson19-Nov-03 9:10
wmhhodson19-Nov-03 9:10 
Questionneed to parse text. Any ideas on how to write the conversion routine? Pin
ratman219-Nov-03 7:21
ratman219-Nov-03 7:21 
Hey fellow coders.
I'm writing a program in VB that is designed to take the question and answer file for IRC trivia bots and convert the file format over to be used with another type of trivia bot. As an example of what I need to do here is an example of text I need to parse

I need to convert the line below:
What band got their name from the sixties movie Barbarella?*Duran Duran

To this line:
Duran Duran|What band got their name from the sixties movie Barbarella?

Now, this program opens a text file and copies the entire file to one string variable. That code looks like this:

Public Class Form1
Inherits System.Windows.Forms.Form
Dim currsep As String, newsep As String, lineoftext As String, filetext As String

Private Sub mnu_file_open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnu_file_open.Click
OpenFileDialog.Filter = "Text Files (*.txt)|*.txt"
OpenFileDialog.ShowDialog()
If OpenFileDialog.FileName <> "" Then
FileOpen(1, OpenFileDialog.FileName, OpenMode.Input)
Do Until EOF(1) 'read file into RAM
lineoftext = LineInput(1)
filetext = filetext & lineoftext & vbCrLf
Loop
lbl_open.Text = "File is open and ready to be converted"
FileClose(1)
End If
End Sub

Private Sub cmd_conv_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd_conv.Click
'this procedure takes the file (in variable filetext) and performs the parsing.
End Sub
End Class

any ideas for cmd_conv_click?
AnswerRe: need to parse text. Any ideas on how to write the conversion routine? Pin
Dave Kreskowiak19-Nov-03 8:26
mveDave Kreskowiak19-Nov-03 8:26 
GeneralRe: need to parse text. Any ideas on how to write the conversion routine? Pin
ratman219-Nov-03 15:01
ratman219-Nov-03 15:01 
GeneralRe: need to parse text. Any ideas on how to write the conversion routine? Pin
Dave Kreskowiak20-Nov-03 4:21
mveDave Kreskowiak20-Nov-03 4:21 
GeneralSpeech To Text Pin
ganesansivasamy19-Nov-03 3:20
ganesansivasamy19-Nov-03 3:20 
GeneralRe: Speech To Text Pin
Dave Kreskowiak19-Nov-03 3:49
mveDave Kreskowiak19-Nov-03 3:49 
GeneralRe: Speech To Text Pin
Anonymous19-Nov-03 23:38
Anonymous19-Nov-03 23:38 
GeneralRe: Speech To Text Pin
Dave Kreskowiak20-Nov-03 4:13
mveDave Kreskowiak20-Nov-03 4:13 
GeneralProgram needs to have focus full time Pin
bruceb18-Nov-03 20:47
bruceb18-Nov-03 20:47 
GeneralRe: Program needs to have focus full time Pin
Dave Kreskowiak19-Nov-03 3:33
mveDave Kreskowiak19-Nov-03 3:33 
GeneralHELP NEEDED WITH REGEX Pin
roychoudhury_sudip18-Nov-03 18:17
roychoudhury_sudip18-Nov-03 18:17 
GeneralRe: HELP NEEDED WITH REGEX Pin
Heath Stewart19-Nov-03 4:40
protectorHeath Stewart19-Nov-03 4:40 
GeneralDisplay OLE Object Pin
scitro18-Nov-03 12:40
scitro18-Nov-03 12:40 
GeneralRe: Display OLE Object Pin
Cliff Wellman21-Nov-03 14:11
Cliff Wellman21-Nov-03 14:11 
GeneralVB.NET - generate reports Pin
Sean Wyatt18-Nov-03 12:31
Sean Wyatt18-Nov-03 12:31 
GeneralRe: VB.NET - generate reports Pin
Mike Ellison19-Nov-03 9:55
Mike Ellison19-Nov-03 9:55 
Generalsending a message from one machine to the other in LAN ...... Pin
Mohan G18-Nov-03 9:20
Mohan G18-Nov-03 9:20 
Generalhelp with spliting:still didn't get a help Pin
18-Nov-03 8:04
suss18-Nov-03 8:04 

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.