Announcement

Collapse
No announcement yet.

Please replace % TO Const

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Please replace % TO Const

    Hi Dave,

    I have problems with this short sign %. % is all a datatype integer. It's better that this replaced to Const.
    Is that possibly for local and global consts?

    Kind regards,
    Stephane


  • #2
    In the PowerBASIC for Windows compilers, the % prefix for numeric equates does not mean that the equate values are limited to INTEGERs (which use the % suffix). For example, this will work fine:

    Code:
    %MyEquate = 123456
    PB/DLL and PB/CC automatically use the most efficient data type (BYTE, INTEGER, WORD, LONG, DWORD, etc.) for the numeric value that you provide, or you can specify the data type that you want it to use, like this...

    Code:
    %MyEquate = 123456&
    ...to specify a LONG (&).

    This behavior is described in detail in the PB/DLL and PB/CC Help Files.

    -- Eric

    ------------------
    Perfect Sync: Perfect Sync Development Tools
    Email: mailto:[email protected][email protected]</A>



    [This message has been edited by Eric Pearson (edited March 13, 2000).]
    "Not my circus, not my monkeys."

    Comment

    Working...
    X