string.getWordChar ()
» ' '
This example assumes the wordChar has not been changed from its default value of space.
ch = string.getWordChar (); // save the wordChar
string.setWordChar ('.'); // temporarily change it to a period
word = string.firstWord ("people.DW.notepad");
string.setWordChar (ch); // restore the wordChar
msg (word)
» true
Returns true because the last verb is msg, which executes successfully. Note that the message displayed is "people" because that's the value assigned to word by the execution of the string.firstWord verb.