Announcement

Collapse
No announcement yet.

Error on AddBand Function

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

  • Error on AddBand Function

    Hi,
    I get the following error when trying to use AddBand function:

    ********************
    Parameter number 5 of AddBand function invalid
    ********************
    ****************
    addBand(SlopeTrendLevel, PS_SOLID, 1, Color.blue);
    addBand(-SlopeTrendLevel, PS_SOLID, 1, Color.blue);
    ***************
    Even if I use a number instead of my parameter, I get the same error message.
    I copied it directly from Reference Library.
    AddBand function does not have 5 parameters!!!

    Can anybody tell me what I am doing wrong?
    Thanks,
    Mihai Buta

  • #2
    The documentation is wrong on AddBand() as a 5th parameter is required. I'll have our web team correct the problem. The doc should read...

    addBand( dValue, nStyle, nThickness, Color, TagName )

    ... where TagName is a string used to uniquely identify the band drawn. Using your example, this will work fine.

    addBand(SlopeTrendLevel, PS_SOLID, 1, Color.blue,"+Slope");
    addBand(-SlopeTrendLevel, PS_SOLID, 1, Color.blue,"-Slope");
    Regards,
    Jay F.
    Product Manager
    _____________________________________
    Have a suggestion to improve our products?
    Click Support --> Request a Feature in eSignal 11

    Comment


    • #3
      Re: Reply to post 'Error on AddBand Function'

      Thank you.

      ----- Original Message -----
      From: <[email protected]>
      To: <[email protected]>
      Sent: Monday, June 16, 2003 8:45 AM
      Subject: Reply to post 'Error on AddBand Function'


      > Hello mbuta,
      >
      > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      >
      Mihai Buta

      Comment

      Working...
      X