Anyone aware of the intended or special use of the | chracter in LotusScript?
TIA
Anyone aware of the intended or special use of the | chracter in LotusScript?
TIA
Subject: It’s an alternative quote character
Subject: other uses
Oh yes, I have seen it used in that way.I may not have been |CRISPY|
I ran into it used as follows as the first two lines of a function:
Const If = |
|
… rest of code
Any ideas?
Subject: lf = LF = Line Feed
It’s defining a constant that is a carriage-return/line-feed
Subject: | as line feed
I’m puzzled.
I thought If would be a reserved word. Anyway - Why set ‘If’ equal to a quote or a line feed as a constant?
Subject: It’s not IF it’s LF
Though depending on your font, it may be hard to tell them apart. I usually use NL or NEWLINE when I define a constant like this.
Subject: Or for us old-timers, CRLF
Subject: I saw that afterward
Andre, yes I saw that this was purely a font issue afterward. I could have avoided this thread. Sorry 'bout that.
Subject: Here is a tip we did at our site a LONG time ago…
Subject: Thanks for the link - I can use that.
Const lf = ||
If Source.IsNewDoc Then Exit Function
Thanks to Andre and Graham as well.
When I copied and pasted the code, indeed it was as Graham instructed - it was “LF” not (as I incorrectly interpreted as “IF”. Good reason for using universal fonts …