Re: [Clip] Minor Critics (was: Why is my condition test not working?)
- Hi Patrick,
>And by the way can someone tell me whyIt is most likely because each side of "<>=" is not balanced.
>^!If "String1" <>= "String2"
>^!If "String1"<>= "String2"
^!If "String1" <>= "String2" (Normally used with text strings,
^!If "String1"<>="String2" (Normally used with text strings,
^!If String1 <>= String2 (Normally used with integers)
>andWhen setting a variable you cannot
>^!Set %curdocname% = ^$GetDocName$
have a space before the equal sign.
^!Set has some irregularities in it. They will be fixed in
version 5. I believe Eric should use a more strict syntax so
that we all use correct code and not to have him put bugs in
NoteTab to accept improper syntax, even if they are commonly made
>Wouldn't it be better that space management inside statementsAgreed. The ^!Set command should stay the same IMO for the
>would be more consistent?
variable before the equal sign. The irregularities mentioned
above deal with the contents of the variable being set.
I believe the only two formats for the ^!If type commands are
with and without the spaces, and when strings they must be used
with quotes (balanced) if the strings contain spaces. If the
strings do not contain spaces and are used w/o quotes, then they
are treated as integers if I remember correctly.
>Last critics, I was unable to find any line command topic fromSearch for "command" in the Index of NoteTab's regular Help file,
>the Help, while Sheri you drew my attention to the fact I should
>have searched the Help for "Parameters". Not that easy to guess!
not the Clip programming one.
>Let me add that above critics are just meant for helping improveThey are appreciated. ;) When you start getting into suggestions
>the documentation. I remain thankful for such a powerful product.
you may want to post to the NoteTab Next Release list. Please see
my signature line to subscribe to it. TIA
Subscribe, UnSubscribe, Options