PROCEDURE SpellCheckText(text, misspelledwordpositions) * Ask the spellchecker TXSpell to check text TXSpell.Check(text) && at this point, all misspelled words' positions are available in an array property of TXSpell * And here, the array reference should be passed to TX TextControl through the misspelledwordpositions parameter misspelledwordpositions = TXSpell.MisspelledWordPositions * Obviously, the above assignment cannot work, since the reference to the .NET array created by TXSpell cannot be assigned just like that to a var in VFP.The problem is that the only way to signal misspellings to the TX TextControl is through the event method above.