PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: PB PowerCollection  (Read 1599 times)

Josť Roca

  • Moderator
  • Master FireFly Member
  • *****
  • Posts: 2732
    • Josť Roca Software
Re: PB PowerCollection
« Reply #15 on: January 22, 2017, 09:27:11 PM »

I don't know how the Dictionary object works internally. The proper way to get an item is to use pDic.Item(key).

Richard Kelly

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 318
Re: PB PowerCollection
« Reply #16 on: January 23, 2017, 03:41:20 AM »

I don't know how the Dictionary object works internally. The proper way to get an item is to use pDic.Item(key).

The wrapper I'm working on not only wraps your class, but includes, as best as I can design, the PB PowerCollection methods, and, one of the PB methods is Sort. I can retrieve all the keys, sort them either ascending or descending, retrieve the items, RemoveAll and Add them all back in. I'll use the crt.bi include and qsort.

Rick
Logged
Pages: 1 [2]