Hi Foxgang
I just noticed a weird thing. I wanted to comment a line of code that was in
the middle of a replace statement. I got an error because the comment was in
the middle. Ok so the checker can't cope with a comment in the middle of a
replace. So I moved the commented line to the end. Now this line had an ; at
the end, being in the middle of a replace. Now it tells me I have an if
endif problem. How weird is that. A commented line causing that. The if was
the next line after the commented out line with an ; at the end.
VFP9SP2 by the way.
Al
---
This email is free from viruses and malware because avast! Antivirus protection is active.
_______________________________________________
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/001101cfc80f$8200f840$8602e8c0$@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.
Not sure what you mean - can you post the code?
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
_______________________________________________
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/1409817186.1568275.163491333.094CC610@webmail.messagingengine.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.
It's on another machine but basically
<<code>>
Scan
If empty(slotdt)
Replace slotdt with gatedt
Endif
Replace slotdt with coord.slot1.localtoutc(slotdt),;
Gatedt with coord.slot1.localtoutc(gatedt),;
Flno with coord.slot1.formflt(Flno)
&& rundt with coord.slot1.localtoutc(fltdt),;
If empty(schdt)
Replace schdt with slotdt
Endif
If !lContinue
Exit
Endif
Endscan
<<endcode>>
Note the rem line was in the middle and as the close check did not like a
rem in the middle of a replace I moved it to the end. Where it caused an if
endif fail.
Al
-----Original Message-----
From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Alan
Bourke
Sent: 04 September 2014 09:53
To: profoxtech@leafe.com
Subject: Re: if endif issue
Not sure what you mean - can you post the code?
---
This email is free from viruses and malware because avast! Antivirus protection is active.
_______________________________________________
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/003e01cfc81e$8dc4c210$a94e4630$@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.
Allen wrote:
> It's on another machine but basically
>
> <<code>>
> Scan
> If empty(slotdt)
> Replace slotdt with gatedt
> Endif
> Replace slotdt with coord.slot1.localtoutc(slotdt),;
> Gatedt with coord.slot1.localtoutc(gatedt),;
> Flno with coord.slot1.formflt(Flno)
> && rundt with coord.slot1.localtoutc(fltdt),;
> If empty(schdt)
> Replace schdt with slotdt
> Endif
> If !lContinue
> Exit
> Endif
> Endscan
> <<endcode>>
>
> Note the rem line was in the middle and as the close check did not like a
> rem in the middle of a replace I moved it to the end. Where it caused an if
> endif fail.
>
>
Take the ; off the end of the comment line and I think it should work.
With the semi colon there it thinks the IF line is also a comment.
Peter
_______________________________________________
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/54082BB0.5000404@whisperingsmith.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.
Hi Peter
I deleted the line anyway. Really wanted to let others know of this bug, yes
bug, or feature whatever the current term for bug is.
Al
-----Original Message-----
>
Take the ; off the end of the comment line and I think it should work.
With the semi colon there it thinks the IF line is also a comment.
Peter
---
This email is free from viruses and malware because avast! Antivirus protection is active.
_______________________________________________
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/005901cfc822$07a32790$16e976b0$@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.
On Thu, 4 Sep 2014, at 10:24 AM, Allen wrote:
> Hi Peter
> I deleted the line anyway. Really wanted to let others know of this bug,
> yes
> bug, or feature whatever the current term for bug is.
> Al
It's not a bug, the semicolon has always been a comment continuation
character too.
Look under the help for '&&'
"To continue a comment on the following line, place a semicolon (;) at
the end of the comment line to be continued."
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
_______________________________________________
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/1409823948.1595430.163525213.12FD5F5B@webmail.messagingengine.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.
Hi Allen:
The ";" thing is *not a bug*, is the FoxPro line continuation, so using
this you are explicitly indicating that next line is continuation of the
actual line. In VB "_" symbol is used, and nobody complains about that.
it's explained under "Basic Programming Concepts" chapter:
http://msdn.microsoft.com/en-us/library/x2456k7z%28v=vs.80%29.aspx
You should read the docs of the language you program before saying
something is "a bug"
Regards.-
2014-09-04 11:24 GMT+02:00 Allen <profox@gatwicksoftware.com>:
> Hi Peter
> I deleted the line anyway. Really wanted to let others know of this bug,
> yes
> bug, or feature whatever the current term for bug is.
> Al
>
> -----Original Message-----
>
> >
> Take the ; off the end of the comment line and I think it should work.
> With the semi colon there it thinks the IF line is also a comment.
>
> Peter
>
>
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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/CAGQ_JumX32__rSoWHfiWCF62D_DZudYm_4enBAcJyLW541r8cA@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.
Really? Ok I am wrong. I think it's stupid but if that's the way it is so be
it. It a total nuisance if you want to rem a bit out to test.
Thanks for clearing that up
Al
-----Original Message-----
It's not a bug, the semicolon has always been a comment continuation
character too.
Look under the help for '&&'
"To continue a comment on the following line, place a semicolon (;) at
the end of the comment line to be continued."
---
This email is free from viruses and malware because avast! Antivirus protection is active.
_______________________________________________
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/008201cfc826$e22769e0$a6763da0$@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.
Yes you have a good point. But I still think it's not a good thing if all
you want is to rem out one line.
Al
-----Original Message-----
From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Fernando
D. Bozzo
Sent: 04 September 2014 11:52
To: profoxtech@leafe.com
Subject: Re: if endif issue
Hi Allen:
The ";" thing is *not a bug*, is the FoxPro line continuation, so using
this you are explicitly indicating that next line is continuation of the
actual line. In VB "_" symbol is used, and nobody complains about that.
it's explained under "Basic Programming Concepts" chapter:
http://msdn.microsoft.com/en-us/library/x2456k7z%28v=vs.80%29.aspx
You should read the docs of the language you program before saying
something is "a bug"
Regards.-
---
This email is free from viruses and malware because avast! Antivirus protection is active.
_______________________________________________
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/008301cfc827$12715250$3753f6f0$@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.
In this case, and knowing this, you have some alternatives:
*Option 1*: Adding && at the end
&& rundt with coord.slot1.localtoutc(fltdt),; &&
If empty(schdt)
*Option 2*: Adding * at next line
&& rundt with coord.slot1.localtoutc(fltdt),;
*
If empty(schdt)
*Option 3*: Taking off ";"
&& rundt with coord.slot1.localtoutc(fltdt),
If empty(schdt)
Regards.-
2014-09-04 12:00 GMT+02:00 Allen <profox@gatwicksoftware.com>:
> Yes you have a good point. But I still think it's not a good thing if all
> you want is to rem out one line.
> Al
>
>
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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/CAGQ_Jum1qXjnR3BPbP1F=jtZtoD-_POKTTJS5SzjGO97sGgXvg@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.