|
-
Jan 20th, 2000, 10:59 AM
#1
Thread Starter
Lively Member
Ok i got your attention so heres a list of questions...
1. How do you search for a binary number?
or delete a binary number(such as one byte without replacing it)?
2. How do you directly delete a file on the hd?
ok one more....
3. 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|