Shop OBEX P1 Docs P2 Docs Learn Events
Is there a way to step thru the __PARAMs without naming each? — Parallax Forums

Is there a way to step thru the __PARAMs without naming each?

edgellmhedgellmh Posts: 85
edited 2008-05-13 16:21 in General Discussion
Is there a way to step thru the __PARAMs without naming each?

Post Edited By Moderator (Bean (Hitt Consulting)) : 5/13/2008 3:31:36 PM GMT

Comments

  • BeanBean Posts: 8,129
    edited 2008-05-13 15:25
    You mean to assign them to other variables ?

    I don't know what you mean by "step through" ?

    Show us an example...

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?

    www.iElectronicDesigns.com

    ·
  • SteelSteel Posts: 313
    edited 2008-05-13 16:05
    Bean-· when·the SX enters a sub-routine with a parameter,·is that parameter the actual data, or just a pointer to where to find the actual data?· I think that would be the answer to his question.· If the parameter·only contains a pointer of where to find the data, then No, he can't.

    I believe what he is trying to say is that he has a sub-routine with x-amount of parameters.

    When you have a sub-routine that has parameters, ·In that sub-routine, you need to assign the parameters to variables in order to work with them.

    I think that he is asking if·you can work directly with the parameter name instead of assigning it to another variable.

    I don't know exactly how this is of benefit (Unless he is really crunched for codespace)...But I think that may be the question.
  • BeanBean Posts: 8,129
    edited 2008-05-13 16:21
    The __PARAM variables hold the actual values (not pointers).
    The best way is to just assign each one.
    At first I though about using "GET" or "PUT", but they use the __PARAM variables hence corupting the values.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?

    www.iElectronicDesigns.com

    ·
Sign In or Register to comment.