Results 1 to 3 of 3

Thread: CountItemBmpTol????

  1. #1
    Join Date
    Jan 2008
    Location
    Muskegon MI
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default CountItemBmpTol????

    im having some trouble with a script. for some reason the counting procedure is wrong. The whole line is....

    Adamant := CountItemBmpTol(AddyOre, 10);

    I'm not sure if this is out of date or what, but if anyone could help with a substitution or solution it would be of great help. Also, if anyone needs more of the line to help, i'd be more than happy to give it to you. (h)

  2. #2
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    If I'm right its replaced with CountItems..
    Verrekte Koekwous

  3. #3
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Adamant := CountItems(AddyOre, 'bmp', [10])

    and i suggest you do this:
    SCAR Code:
    try
      Adamant := CountItems(AddyOre, 'bmp', [10])
    except
      Adamant := 27;
    end;

    that way if you were going to have a runtime error from CountItems you'll just simply add 27 to the count.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •