Public Function MidiIn_Event(ByVal MidiInHandle As Long, ByVal Message As Long, ByVal Instance As Long, ByVal dw1 As Long, ByVal dw2 As Long) As Long If dw1 > 2 Then Form1.Text1.Text = dw1 End Function
Text2.Text = Left(Right("00000000" + Hex(Text1.Text), 6), 4)
Text4.Text = Int("&H" + Right(Text2.Text, 2))
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPublic Function MidiIn_Event(ByVal MidiInHandle As Long, ByVal Message As Long, ByVal Instance As Long, ByVal dw1 As Long, ByVal dw2 As Long) As Long If dw1 > 2 Then Form1.Text1.Text = Hex$(dw1) End If End Function Private Function Hex$(Number, Optional Taille As Long = 6) Hex = Conversion.Hex$(Number) If Taille > Len(Buffer) Then Hex = String(Taille - Len(Hex), "0") & Hex End If End Function