Lr_save_int is same as
lr_save_string it converts an integer to string and saves in a parameter.
Example 1:
In this example I have declared value=10 and save in the URL using lr_save_int.
Action()
{
int value=10;
lr_save_int(value, "URL");
lr_output_message("%s", lr_eval_string("{URL}"));
return 0;
}
Output:
Starting action Action.
Action.c(7): Notify: Saving Parameter "URL = 10".
Action.c(10): Notify: Parameter Substitution: parameter "URL" = "10"
Action.c(10): 10
Ending action Action.
Example 2:
In this example i have saved integer value directly to URL using lr_save_int.
Action()
{
lr_save_int(10, "URL");
lr_output_message("%s", lr_eval_string("{URL}"));
return 0;
}
Starting action Action.
Action.c(5): Notify: Saving Parameter "URL = 10".
Action.c(7): Notify: Parameter Substitution: parameter "URL" = "10"
Action.c(7): 10
Ending action Action.
Example 1:
In this example I have declared value=10 and save in the URL using lr_save_int.
Action()
{
int value=10;
lr_save_int(value, "URL");
lr_output_message("%s", lr_eval_string("{URL}"));
return 0;
}
Output:
Starting action Action.
Action.c(7): Notify: Saving Parameter "URL = 10".
Action.c(10): Notify: Parameter Substitution: parameter "URL" = "10"
Action.c(10): 10
Ending action Action.
Example 2:
In this example i have saved integer value directly to URL using lr_save_int.
Action()
{
lr_save_int(10, "URL");
lr_output_message("%s", lr_eval_string("{URL}"));
return 0;
}
Starting action Action.
Action.c(5): Notify: Saving Parameter "URL = 10".
Action.c(7): Notify: Parameter Substitution: parameter "URL" = "10"
Action.c(7): 10
Ending action Action.
No comments:
Post a Comment