This query returns a C string containing the last misspelled word found by last PSpell commandStory editor only. The PGetSpellResult query works only in story editor. Example. The following example creates a new story, switches to story editor, begins search for misspelled words, queries for the first misspelled word, continues spell-checking, and queries for next misspelled word.
PNewStory(twips("6i"), twips("4i"));
// create new story
PTextEnter("Hte tango beat captured Zelda's heart.");
// switch to story editor
PEditStory();
PSpell();
// begin spell check using default settings
PGetSpellResult result1();
// query for misspelled word
// expected reply: "Hte"
PSpell();
// continue spell check
PGetSpellResult result2();
// query for next misspelled word
// expected result: "Zelda"
The PAddWord, PRemoveWord,
and PSpellWindow commands
Comments or suggestions? Contact Adobe Developer Support