ich bin neu hier also hauz ruhig drauf

Es giebt doch bestimmt eine bessere Methode ein Word in zwei Byte zu zerlegen ... oder?
Code: Alles auswählen
Case 2
ASPP = Val(GetGadgetText(2)) ; max 65535
SPP_ADRESSE_EMPFANGER_High.a = ASPP / 256
SPP_ADRESSE_EMPFANGER_Low.a = ASPP - 256
Debug Hex(SPP_ADRESSE_EMPFANGER_High)
Debug Hex(SPP_ADRESSE_EMPFANGER_Low)
Ich brauche von einem Word Bit 10, Bit 11... Bit16 als Bitwert (1 oder 0), und von diesem Word Bit 0 bis 9 (1024) als neue Variable.u
Wie bekomme ich das sauber hin ?
Danke euch schon mal Gruß Sven