如何把参数中的数据保存到变量里面呢?
char numor;char numde;
memset(numor,0,5);
memset(numde,0,5);
numor = "{Num}"??????????????//如何吧参数化的值保存到变量呢?
StringChange(numde,,numor,strlen(numor));//转换参数化的值
lrs_save_param( numor,lr_eval_string("{Num}"));//变量的值保存到参数中(脚本中需要的值) numor = lr_eval_string({Num})试试 原帖由 rocky_chen0423 于 2009-1-10 02:57 发表 http://bbs.51testing.com/images/common/back.gif
numor = lr_eval_string({Num})试试
结果提示 :
Action.c (24): operands of = have illegal types `array 5 of char' and `pointer to char'
Action.c (24): lvalue required 用 strcpy函数 strcpy(numor,lr_eval_string("{Num}"));
OK了,谢谢两位! lr_save_string
lr_save_int
页:
[1]