บทความนี้เป็นการเขียนโปรแกรม เพื่อดึงค่าที่อยู่ในรูปแบบ Byte หรือ hexadecimal (hex) มาแสดงเป็นรูปแบบสตริง (String)
อย่างเช่น ตัวอย่างซอร์คโค้ดต่อไปนี้
byte[] array = new byte[5];
array[0] = 0?53;
array[1] = 0xA4;
array[2] = 0xB5;
array[3] = 0xC6;
array[4] = 0xFF;
ต้องการให้แสดงผลใน TextBox ปกติ ก็จะแสดง FF ก็จะแสดง “255? ,A4 ก็จะแสดง “164? แต่สิ่งที่เราต้องการ ก็คือ ค่า FF ก็ต้องแสดงผลใน Textbox “FF” ด้วยเช่นกัน จะเขียนโค้ดอย่างไร ง่ายนิดเดียวครับ ไปดูกันเลย
Search results for ซอร์สโค้ด
« previous1 next »
–
airport
asbestos
asbestos abatement
benjamin moore paint
birth injuries
birth injury
blog
camera
cameras
cleaner
comments
complications of hip replacement
credit cards
depuy hip recall
digital
discount
erbs palsy
femur fracture
femur fractures
health
hip implant recall
hire
home
home improvement
hosting
ibiza
lawyer
men’
mesothelioma
mesothelioma lawyers
online
painting
paints
plasma
projector
s
samsung
series
special
stainless
surgery
uk
uncategorized
vacuum
ขายที่ดิน
ถังบำบัดน้ำเสีย
ถังเก็บน้ำ
ทัวร์ญี่ปุ่น
ที่ดิน













