SPONSORS:






User Tag List

Results 1 to 5 of 5

Thread: Using @

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using @

    The only way to use something as a pointer is to use the @ operator.

    But here is the problem:
    I have a class A
    and an attribute _listAtt which is a list of record my_rec
    my_rec contains a list of my_rec (named list).
    I have the following variables:
    sPath = _listAtt[1]
    and tElm a new element to add.

    I want to do this:
    in class A

    ListAppend(@("this.{sPath}.list", tElm)

    But it said:
    Variable this._listAtt[1].list is not defined

    but
    print(this._listAtt[1].list) is working...

    can you help me thanks



    ------------------

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Ithaca, NY, USA
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using @

    As far as I can see you've forgotten a closing bracket. I think the line should be:

    ListAppend(@("this.{sPath}.list"), tElm)



    [This message has been edited by KlausK (edited 10-31-2001).]
    Convenience is the first step to enslave yourself. Freedom is inconvenient.

  3. #3
    Junior Member
    Join Date
    Oct 2001
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using @

    yes but in my silk file the closing bracket is written.

    I wouldn t write for such a stupid error...

    ------------------

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Ithaca, NY, USA
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using @

    Sorry... didn't meant to tell you you are stupid. I've just seen SilkTest compile over syntax errors already. That's why I pointed this out.

    ------------------
    Disclaimer: Nothing of what I mentioned above is to be taken as a racist or sexist remark nor as a personal attack.

    Klaus Kiesenhofer
    Convenience is the first step to enslave yourself. Freedom is inconvenient.

  5. #5
    Member
    Join Date
    Sep 2001
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using @

    I think you need to break it up like this:

    ListAppendl(@("this").@({sPath}).@("list"), tElm)

    This should work.



    ------------------

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:26 PM.

Copyright BetaSoft Inc.