Autor Beitrag
Skywalker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mi 04.12.02 15:40 
Hi Leute,

ich hab da ein kleines Prob!!

Ich bekomme Daten für mein Programm in Byte gesendet.
Um mit diesen aber Arbeiten zu können, muss ich sie aber in Integer-Werte umwandeln.

Wie komme ich da am Besten weiter??

Für Eure Hilfe wäre ich sehr dankbar.

_________________
CU

Skywalker

:nixweiss:
Nobody is perfect!!!!!
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mi 04.12.02 16:08 
Soweit ich weiß, kannst Du einer Integervariable einfach einen Bytewert zuweisen. Da Byte "kleiner" ist als Integer, sollte das keine Probleme machen.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Popov
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mi 04.12.02 17:00 
Der Variablentyp Byte gehört zu der Integer Familie. Deshalb kann Byte an jeden andere Integer (Shortint, Smallint, Longint, Byte, Word, Integer, Cardinal) ohne Probleme übergeben werden.
Skywalker Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Do 05.12.02 09:35 
Vielen Dank, für Eure schnelle Hilfe

_________________
CU

Skywalker

:nixweiss:
Nobody is perfect!!!!!