caramoan tour package

caramoan tour package

Author Topic: VB6 hex to decimal conversion  (Read 347 times)

Offline trololol

  • Size D Battery
  • ******
  • Posts: 445
  • Pogi/Ganda Points: 4
VB6 hex to decimal conversion
« on: January 25, 2012, 11:50:14 PM »
i'm planning to send the hex data from the EEPROM of my PIC18f4550 via bluetooth..

example:
//in MikroC
val = EEPROM_Read(0x00);
Uart_Write(val);

so my question is.. since the value is a hex/binary value..
how can i convert it to string or decimal to a textbox in VB6..

let's say text1.text = MSComm1.Input

hoping my code is correct..

thanks in advance   ;D
be humble for once!

Philippine Electronics Forum

VB6 hex to decimal conversion
« on: January 25, 2012, 11:50:14 PM »

Offline PlCUSER

  • Diesel Generator
  • *
  • Posts: 1909
  • Pogi/Ganda Points: 152
Re: VB6 hex to decimal conversion
« Reply #1 on: January 26, 2012, 01:30:35 AM »
Try mo

Asc(mscomm1.input)

Not sure lng.;D ;D ;D

Philippine Electronics Forum

Re: VB6 hex to decimal conversion
« Reply #1 on: January 26, 2012, 01:30:35 AM »

Offline trololol

  • Size D Battery
  • ******
  • Posts: 445
  • Pogi/Ganda Points: 4
Re: VB6 hex to decimal conversion
« Reply #2 on: January 26, 2012, 08:39:47 AM »
ok sir, will try..thanks :)
be humble for once!

Philippine Electronics Forum

Re: VB6 hex to decimal conversion
« Reply #2 on: January 26, 2012, 08:39:47 AM »

Offline trololol

  • Size D Battery
  • ******
  • Posts: 445
  • Pogi/Ganda Points: 4
Re: VB6 hex to decimal conversion
« Reply #3 on: February 19, 2012, 03:39:12 PM »
gumana salamat ^_^
be humble for once!

Philippine Electronics Forum

Re: VB6 hex to decimal conversion
« Reply #3 on: February 19, 2012, 03:39:12 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com