PDA

Click to See Complete Forum and Search --> : Delete/search in binary?


Iceman
Jan 20th, 2000, 07:53 AM
How do you search for a binary number?

or delete a binary number(such as one byte without replacing it)?

How do you directly delete a file on the hd?

gotta add yet another...

How do you copy and paste bytes in a file NOT all of them and i want to paste them back in....Can you do that?

ok one more and you're done... ;)

i have this code, yet it does not create the file im goin ???(it was before)

Private Sub cmdcreate_Click()
Dim x As Byte
Dim response As Integer
Dim Filename, typetest As String
cdbsave.CancelError = True
On Error GoTo saveerror
cdbsave.Filter = _
"Starcraft triggers (*.trg)|*.trg*"
responseno:
cdbsave.ShowSave
Filename = cdbsave.Filename
typetest = Right$(Filename, 4)
If typetest = ".trg" Then
Else
Filename = Filename & ".trg"
End If
If Dir(Filename) = "" Then
Else
response = MsgBox("The file exists. Do you want to replace it?", 564, "Error: Same name")
If response = 6 Then
ElseIf response = 7 Then GoTo responseno
End If
End If
x = 113
Open Filename For Binary As #1
Put #1, , x
Close #1
saveerror:
End Sub

later,
Iceman

[This message has been edited by Iceman (edited 01-21-2000).]