# Re: 我也这样试过了,可是还是一样(无内文)

Posted by 琏琏 on October 20, 1999 at 12:39:29:

In Reply to: 我也这样试过了,可是还是一样(无内文) posted by Dai on October 20, 1999 at 09:22:04:

: : 看一下书上的范例，好像从来没有人直接在 Put 中就放值进去的，都是透过变数间接储存，这样才能确保存入的 size。所以
: : Dim byt As Byte
: : byt = &HA
: : Put #fileNum, , byt
: : Close

我试正常啊!!
测试环境 vb6+sp3+Windows 98
测试码如下:
-------------
Private Sub Form_Load()

Dim tByte As Byte

tByte = &HA
Open "c:\temp\test.bin" For Binary As 1
Put #1, , tByte
Close 1

End Sub

- 培基语言

Follow Ups: