SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Oct 2001
    Location
    NY, New York, USA
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Replace the Array position value with the value in Parameter List

    I am using the web_reg_save_param()to catch all the dynamic values by using the "Ord=All" in it.

    It is like this:
    web_reg_save_param("ChatRequestID",
    "LB/IC=<ID>",
    "RB=<",
    "Ord=All",
    LAST);

    lr_log_message("Good ID, %d", atoi(lr_eval_string("{ChatRequestID_2)}")));

    I can catch the value I want by specifying the position in the array; in this case it is "2." And it is working fine. However, when I tried to use the "Paramter List" to replace the number, it always shows me 0.

    It is like this:
    lr_log_message("Good ID, %d", atoi(lr_eval_string("{ChatRequestID_({NewParam1})} ")));

    The {NewParam1} is fine because it shows in "Pink" color and the value is also 2.

    Anything wrong with this method?
    Thanks.

  2. #2
    Senior Member
    Join Date
    May 2002
    Location
    Scranton, PA
    Posts
    405
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Replace the Array position value with the value in Parameter List

    Try it doing in following manner

    char strGoodId[30];

    sprintf(strGoodId,"{ChatRequestID_%d}",atoi(lr_eva l_string("{NewParam1}")));

    lr_log_message("Good ID, %d",lr_eval_string(strGoodId));

    ------------------
    Euc

    while traveling parallel to a tangent , it's difficult to be normal, isn't it?
    Pankaj Bhatte
    Cognizant Technology Solutions.
    Scranton, PA
    pankajbhatte@yahoo.com

    while traveling parallel to a tangent , it's difficult to be normal, isn't it?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 09:20 AM.

Copyright BetaSoft Inc.