Skip to main content

[RESOLVED] scanning between two local variables

Author: lalitpct@gmail.com (lalitpct)

I used below syntax and in both the case I don’t get result When I hardcode lv_tmp then I get correct result. message/info “filename : %%filename” message/info “lv_tmp : %%lv_tmp” scan filename,“%%lv_tmp”                       ;$result > 0 even though variable matches scan filename,lv_tmp                                ;$result > 0 even though variable matches scan filename,”/server/test/uat/report”  <– works fine   Can some one suggest which is the correct syntax

&#091;RESOLVED&#093; scanning between two local variables

Author: lalitpct@gmail.com (lalitpct)

I used below syntax and in both the case I don’t get result When I hardcode lv_tmp then I get correct result. message/info “filename : %%filename” message/info “lv_tmp : %%lv_tmp” scan filename,“%%lv_tmp”                       ;$result > 0 even though variable matches scan filename,lv_tmp                                ;$result > 0 even though variable matches scan filename,”/server/test/uat/report”  <– works fine   Can some one suggest which is the correct syntax

What is the value of filename? And which exact Uniface version and patch level are you using? Thanks, Daniel Iseli Uniface Technical Support


Author: diseli (daniel.iseli@uniface.com)

&#091;RESOLVED&#093; scanning between two local variables

Author: lalitpct@gmail.com (lalitpct)

I used below syntax and in both the case I don’t get result When I hardcode lv_tmp then I get correct result. message/info “filename : %%filename” message/info “lv_tmp : %%lv_tmp” scan filename,“%%lv_tmp”                       ;$result > 0 even though variable matches scan filename,lv_tmp                                ;$result > 0 even though variable matches scan filename,”/server/test/uat/report”  <– works fine   Can some one suggest which is the correct syntax

Hi Syntax was coorect actuall there was new line character which was causing this issue. So I used rtrim to remove new line feed in the variable and then compared. Now its working fine.


Author: lalitpct (lalitpct@gmail.com)

&#091;RESOLVED&#093; scanning between two local variables

Author: lalitpct@gmail.com (lalitpct)

I used below syntax and in both the case I don’t get result When I hardcode lv_tmp then I get correct result. message/info “filename : %%filename” message/info “lv_tmp : %%lv_tmp” scan filename,“%%lv_tmp”                       ;$result > 0 even though variable matches scan filename,lv_tmp                                ;$result > 0 even though variable matches scan filename,”/server/test/uat/report”  <– works fine   Can some one suggest which is the correct syntax

Thanks for the info. It's good to hear that you've found the problem.


Author: diseli (daniel.iseli@uniface.com)