#289 5.4RC1 - rangeset API: missing fundamental function

development
closed-fixed
Steve LoBasso
Program (402)
6
2003-11-27
2003-07-30
Anonymous
No

In the rangeset API, there is no way to retrieve an
existing rangeset.
I mean, when I use many rangesets for different
purposes through different macros, each macro creates
it's rangeset if it doesn't exist, and MUST also be
able to find it at the next call to modify it or delete
it. The variable $rangeset_list contains the list of
all rangeset but doesn't allow to choose which one is
the good one.
For now, the only way I found was to use the color
parameter as a unique information (that means,
obviously that each rangeset must have a different
color, with is not very disturbing for me now, but not
a long term solution either).

proposal:
1/ modify the creation function to pass a name (or an
array of names for multiple creations):
r = rangeset_create("my_rangeset")

2/ add the get function:
r = rangeset_get_from_name("my_rangeset")

Alex

Discussion

  • Logged In: NO

    I found today that global variables could be used in macro
    files (so that the opaque number returned by rangeset_create
    can be saved from a macro call to the other). Anyway, I
    still find the previous proposal relevant.

    Alex

     
  • Steve LoBasso
    Steve LoBasso
    2003-07-31

    Logged In: YES
    user_id=140805

    This is fixed and will be in 5.4RC2

     
  • Logged In: NO

    Cool. Thank's.

    Alex

     
  • Scott Tringali
    Scott Tringali
    2003-08-01

    • status: open --> open-fixed
     
  • Scott Tringali
    Scott Tringali
    2003-08-01

    • labels: --> Program
    • milestone: --> development
    • priority: 5 --> 6
    • assigned_to: nobody --> slobasso
     
  • Thorsten Haude
    Thorsten Haude
    2003-11-26

    Logged In: YES
    user_id=119143

    Can be closed?

     
  • Eddy De Greef
    Eddy De Greef
    2003-11-27

    • status: open-fixed --> closed-fixed