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

24312RE: Unexpected results for IfSame

Expand Messages
  • ebbtidalflats
    Jan 19, 2014
    • 0 Attachment

      Did your code not generate a function syntax error?

      You're testing the first character of value, before
      testing if the line is empty.

      ^!Set %Value%=^$Getline(^%I%)$
      ^!IfSame "^$StrCopyLeft("^%Value%";1)$" "X" END
      ^!If ^$StrSize("^$StrTrim("^%Value%")$")$=0 LoopTop

      This should generate a syntax error, when value is empty.
      Perhaps this is a bug in NoteTab.


    • Show all 5 messages in this topic