Skip to main content

Bugs, Issues and Errors: [RESOLVED] scanning between two local variables

  • November 19, 2018
  • 3 replies
  • 0 views

Jan Cees Boogaard

[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

3 replies

Jan Cees Boogaard

&#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)

Jan Cees Boogaard

&#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)

Jan Cees Boogaard

&#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)