News:

;) This forum is the property of Proton software developers

Main Menu

Duplicate item, just curious

Started by RGV250, Today at 01:41 PM

Previous topic - Next topic

RGV250

Hi,
I am a bit puzzled why I get a duplicate item here, it is always the "H", it does not matter what I call it IE TempVar it compiles OK withL but fails with H
    Include "amicus18.inc"
   
    Dim TempBuffer As Word
    Dim TempBufferL As Byte
    Dim TempBufferH As Byte

I have done it differently now but just curious.

Regards,
Bob

top204

When the compiler creates a Word variable, it will create the byte sized parts of it as:

MyWord

and

MyWordH

So the "TempBufferH" in your code has already been created, so it is a duplicate and not allowed.

When the compiler creates a DWord variable, it will create the parts of it as:

MyDword
MyDwordH
MyDwordHH
MyDwordHHH


The same for Long type variables, and Float type variables.

Regards
Les

RGV250

Thanks Les,
I thought it was something like that but could not find it in the manual.

Regards,
Bob