Error 嗨,
我正在尝试根据TAG属性更改Button的ForeColor,但我收到错误,有人能告诉我这段代码有什么问题吗 谢谢
Sub SetBTkey(ByVal BT As String)
> Supported SourceDataLines of default mixer (PCH [default]):
>
> interface SourceDataLine supporting 48 audio formats, and buffers of
> at least 32 bytes max buffer size: -1 min buffer size: 32
> Supported Audio formats:
> PCM_SIGNED unknown sample rate, 16 bit, mono, 2 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 16 bit, mono, 2 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 16 bit, 3 channels, 6 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 16 bit, 3 channels, 6 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 16 bit, 4 channels, 8 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 16 bit, 4 channels, 8 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 8 bit, mono, 1 bytes/frame,
> PCM_UNSIGNED unknown sample rate, 8 bit, mono, 1 bytes/frame,
> PCM_SIGNED unknown sample rate, 8 bit, stereo, 2 bytes/frame,
> PCM_UNSIGNED unknown sample rate, 8 bit, stereo, 2 bytes/frame,
> PCM_SIGNED unknown sample rate, 8 bit, 3 channels, 3 bytes/frame,
> PCM_UNSIGNED unknown sample rate, 8 bit, 3 channels, 3 bytes/frame,
> PCM_SIGNED unknown sample rate, 8 bit, 4 channels, 4 bytes/frame,
> PCM_UNSIGNED unknown sample rate, 8 bit, 4 channels, 4 bytes/frame,
> PCM_SIGNED unknown sample rate, 32 bit, mono, 4 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 32 bit, mono, 4 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 32 bit, stereo, 8 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 32 bit, stereo, 8 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 32 bit, 3 channels, 12 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 32 bit, 3 channels, 12 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 32 bit, 4 channels, 16 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 32 bit, 4 channels, 16 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 24 bit, mono, 4 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 24 bit, mono, 4 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 24 bit, stereo, 8 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 24 bit, stereo, 8 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 24 bit, 3 channels, 12 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 24 bit, 3 channels, 12 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 24 bit, 4 channels, 16 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 24 bit, 4 channels, 16 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 24 bit, mono, 3 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 24 bit, mono, 3 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 24 bit, stereo, 6 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 24 bit, stereo, 6 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 24 bit, 3 channels, 9 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 24 bit, 3 channels, 9 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 24 bit, 4 channels, 12 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 24 bit, 4 channels, 12 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 20 bit, mono, 3 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 20 bit, mono, 3 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 20 bit, stereo, 6 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 20 bit, stereo, 6 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 20 bit, 3 channels, 9 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 20 bit, 3 channels, 9 bytes/frame, big-endian
> PCM_SIGNED unknown sample rate, 20 bit, 4 channels, 12 bytes/frame, little-endian
> PCM_SIGNED unknown sample rate, 20 bit, 4 channels, 12 bytes/frame, big-endian
SetBTkey(" BTkey01&#34)
答案 0 :(得分:0)
好的,我找到了解决方案
Dim按钮As Button()= {Button1,Button2,...}
对于每个按钮按钮按钮 button.tag =" foo" 下一个