I would like to find a FreeBasic function in manual for optimise this :
Code: Select all
Print " A:" & hex(ASC(Mid(*Data, 1, 1)), 2) & "."
Print " R:" & hex(ASC(Mid(*Data, 2, 1)), 2) & "."
Print " G:" & hex(ASC(Mid(*Data, 3, 1)), 2) & "."
Print " B:" & hex(ASC(Mid(*Data, 4, 1)), 2) & "."
Results :
A:AA
R:BB
G:CC
B:DD
He display hexa values, I must cut Data in 4 parts, and I'm upset to pass by string mid() function..
There exist function for cut "from-to" unsigned long/unsigned integer values ?
Thank you :)