Loading ...
Sorry, an error occurred while loading the content.
 

Re: [Clip] Bug in StrSize?

Expand Messages
  • Eric G.V. Fookes
    Hello Paul, ... Because of the special purpose of the ^& token, you should not use it in situations when the ^$GetSelection$ function can be used. Regards,
    Message 1 of 4 , Feb 15, 2001
      Hello Paul,

      >In creating a little clip for someone else, I found what may be a bug:
      >
      > H=MakeLink
      > ^!if ^$StrSize(^&)$ < 1 END
      > ^!InsertText "[^&]"
      >
      >This clip checks to see if the contents of the selection is empty, and adds
      >square brackets if not. The problem is, if the selection is empty
      >^StrSize(^&)$ evaluates to 2, not zero. Similarly ^$isBlank()$ returns
      >false.

      Because of the special purpose of the ^& token, you should not use it in
      situations when the ^$GetSelection$ function can be used.


      Regards,
      Eric G.V. Fookes
      Author of NoteTab, Mailbag Assistant, and Album Express
      http://www.fookes.com/ and http://www.notetab.com/







      ...
    Your message has been successfully submitted and would be delivered to recipients shortly.