Alanukdude
Technical User
hi, i've got the below code saving various txt boxes saving values from 0-254 to a text file to a users choice.
CDMain.CancelError = True
On Error GoTo ErrHandler
CDMain.Filter = "All Files (*.*)|*.*|Text Files (*.txt)|*.txt"
CDMain.FilterIndex = 2
CDMain.ShowSave
Dim save1
save1 = CDMain.FileName
Open save1 For Output As #1
Write #1, txtBase1.Text, txtBase2.Text
Write #1, txtShoulder1.Text, txtShoulder2.Text
Write #1, txtElbow1.Text, txtElbow2.Text
Write #1, txtWrist1.Text, txtWrist2.
Write #1, txtGripper1.Text, txtGripper2.Text
Close #1
Exit Sub
ErrHandler:
Exit Sub
How would i go about loading this back up into the software. everything is seperated by a comma.
This is a bit of software im atempting to write for my students robotic arm, it came with rubbish software so i decided to write my own.
thanks in advance
CDMain.CancelError = True
On Error GoTo ErrHandler
CDMain.Filter = "All Files (*.*)|*.*|Text Files (*.txt)|*.txt"
CDMain.FilterIndex = 2
CDMain.ShowSave
Dim save1
save1 = CDMain.FileName
Open save1 For Output As #1
Write #1, txtBase1.Text, txtBase2.Text
Write #1, txtShoulder1.Text, txtShoulder2.Text
Write #1, txtElbow1.Text, txtElbow2.Text
Write #1, txtWrist1.Text, txtWrist2.
Write #1, txtGripper1.Text, txtGripper2.Text
Close #1
Exit Sub
ErrHandler:
Exit Sub
How would i go about loading this back up into the software. everything is seperated by a comma.
This is a bit of software im atempting to write for my students robotic arm, it came with rubbish software so i decided to write my own.
thanks in advance