Index
2017-04-21 14:43Gene Wirchenko : Gotcha: Odd Error
2017-04-21 14:49Ted Roche : Re: Gotcha: Odd Error
Back to top
Gotcha: Odd Error

Author: Gene Wirchenko

Posted: 2017-04-21 14:43:29   Link

Hello:

A line of code was throwing an error at run-time:

if !doseek(str(&alraw..trnnbr),6))

Note the extra right parenthesis before the comma. Because of the &,

the error was not reported during compilation. After all, alraw

could contain a left parenthesis.

Sincerely,

Gene Wirchenko

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/090f7fec5ee893c4604ec231bcee09bb@mtlp000086

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2017 Gene Wirchenko
Back to top
Re: Gotcha: Odd Error

Author: Ted Roche

Posted: 2017-04-21 14:49:56   Link

Any line containing an & for macro expansion is not parsed at

compilation time, since the & could contain any expression.

On Fri, Apr 21, 2017 at 3:43 PM, Gene Wirchenko <genew@telus.net> wrote:

> Hello:

>

> A line of code was throwing an error at run-time:

> if !doseek(str(&alraw..trnnbr),6))

> Note the extra right parenthesis before the comma. Because of the &, the

> error was not reported during compilation. After all, alraw could contain a

> left parenthesis.

>

> Sincerely,

>

> Gene Wirchenko

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CACW6n4vS+QmLV19b3nf2Xinx8oQZ_rx5Bp7--H4O6hd5HgA2iA@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2017 Ted Roche