• 0
Sign in to follow this  
Guest Roberto Miron

Arquivo Binário


Guest Roberto Miron

Help-me Please...

Estou começando em VB, e estou meio perdido em ler e gravar arquivos binários; fiz um arq teste mas estou tomando um baile do danado...

Arq teste....

Private Sub Command1_Click()

Dim b As String

Open "c:\teste\testee.tst" For Binary As #1 Len = 6

a = LOF(1) \ 6

a = a + 1

Label1.Caption = a

b = Text1.Text

Put #1, a, b

Close #1

End Sub

Private Sub Command2_Click()

Dim bb As String, aa As Integer

Open "c:\teste\testee.tst" For Binary As #1 Len = 6

aa = Val(Text2.Text)

Get #1, aa, bb

Label2.Caption = bb

Close #1

End Sub

Aguardo alguém q esteja disposto a dar uma mãozinha...

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this