PGetSpellResult

Gets the misspelled word found by the last PSpell command.


Query results

This query returns a C string containing the last misspelled word found by last PSpell command
Story 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.");
PEditStory();
// switch to story editor
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"


See also

The PGetPMInfo and PGetSpellWindow queries

The PAddWord, PRemoveWord, and PSpellWindow commands


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support