AnsweredAssumed Answered

Filemaker is handling the following string in a peculiar fashion.

Question asked by LewisRobinson on May 28, 2013
Latest reply on May 28, 2013 by philmodjunk

Title

Filemaker is handling the following string in a peculiar fashion.

Post

     When using a HyperCard Script to get information from one of my stacks the following string is generated

     End card "X3723290"   HyperCard says this string has 3 words in it.

     So far so good. 

     Now my HyperCard program also puts a return after this string

     Now this (along with a lot of other information) is put into a file and moved over to the machine running Filemaker

     I have a way to get any particular line in the file I want.  When i put this (value/line) into a variable $XrefLineToInspect and then evaluate

     WordCount($XrefLineToInspect) I get 4

     When I ask for the value of the variable $XrefLineToInspect in the debugger I get

     End card "X3723290" 

     Evaluating

     RightWords($XrefLineToInspect;1) gives X3723290

     RightWords($XrefLineToInspect;2) gives "X3723290

     RightWords($XrefLineToInspect;3) gives card "X3723290

     The trailing quote is missing in all 3.  They must be counting the " as a word

     What in the world is going on?

     This is of particular importance as I'm using a test of the equality of the last two words in

     End card "X3723290" and Begin card "X3723290"  as a way to leave a loop which tells me how many lines to put in a new record.

     Any help will be greatly appreciated

      

Outcomes