About Mikrobasic

Discussion in 'Programmer's Corner' started by R!f@@, Aug 31, 2016.

  1. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    8,733
    759
    I am trying to figure out some Mikrobasic functions and as such so I can convert it to MikroC Pro.
    First this part.

    Code (Text):
    1. sub function Adc_Read_Ext_Res(dim resolution, ch_ as byte) as longword
    2. dim i as longword
    3. j as byte
    From what I searched it means....
    Code (Text):
    1.  Adc_Read_Ext_Res
    is
    Code (Text):
    1.   unsigned long (int) Adc_Read_Ext_Res;
    and
    Code (Text):
    1.  dim resolution
    is
    Code (Text):
    1.   unsigned long (int) resolution;
    and
    Code (Text):
    1.  ch_ as byte
    is
    Code (Text):
    1. char ch_;
    and
    Code (Text):
    1.  dim i as longword
    is
    Code (Text):
    1.   unsigned long (int) i;
    and
    Code (Text):
    1.  j as byte
    is
    Code (Text):
    1. char j;
    Am I right or wrong ?
     
  2. upand_at_them

    Active Member

    May 15, 2010
    246
    29
    This should mean that both "resolution" and "ch_" are declared as bytes.
     
  3. R!f@@

    Thread Starter AAC Fanatic!

    Apr 2, 2009
    8,733
    759
    Aah ! That was confusing part.
    Any other mistake ?
     
Loading...