Title: RE: Re: Witango-Talk: Dynamic Variable Naming

Thanks Scott and Jason,

That did the trick!

    ----------
    From:   Jason Pamental
    Reply To:       [EMAIL PROTECTED]
    Sent:   Monday, June 10, 2002 5:52 PM
    To:     Multiple recipients of list witango-talk
    Subject:         Re: Witango-Talk:  Dynamic Variable Naming

    Bryan,

    The GETPARAM tag is notoriously unpredictable. Try referencing the values
    this way:
    <@assign name="<@var method$userinfo[1,1]>" scope=instance value="<@var
    method$userinfo[1,2]>">

    Hope this helps - it should work...

    Jason


    On 6/10/02 5:20 PM, "Bryan Hughes" <[EMAIL PROTECTED]> wrote:

    > Is it possible to dynamically name a variable based on a passed in variable.
    >
    > I'm trying to pass in an array to a TCF method. This array is a two column one
    > row array contain a name/value pair I want set to an Instance variable.
    >
    > Method: AddUserInfo
    > Parameters:
    >       Name = userinfo
    >       Direction = IN
    >       Type = Array
    >       Example Value = <@ARRAY ROWS=1 VALUE="firstname,Bryan;">
    >
    > I think I'm getting an "Invalid value specified" error because my assign
    > action is:
    >       Scope = Instance
    >       Name = <@VAR <@GETPARAM userinfo[1,1]>>
    >       Value = <@VAR <@GETPARAM userinfo[1,2]>>
    >
    > Is this possible? If not some suggestions would be appreciated.
    >
    > Thanks,
    >
    > -B
    >


    --
    ____________________________________________________________________

    Jason Pamental, President                   [EMAIL PROTECTED]

    Bathysphere Digital Media Services, Inc.   http://bathyspheredms.com
    ____________________________________________________________________

    Tel: 401.490.6830      Fax: 401.490.6831
    ________________________________________

    ________________________________________________________________________
    TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                    with unsubscribe witango-talk in the message body


Reply via email to