Xbasic

A5_SPELLCHECK Function

Syntax

V a5_spellcheck(P layout_ptr [,C spell_check_mode ])

Arguments

layout_ptr

A pointer to the form.

spell_check_mode

Optional. Default = Currently selected field from the current record to the end of the current query. Specifies which fields and records you wish to spell check. Possible optional values are:

Value
Description
"record"

All fields on the current record.

"field"

The currently selected field on the current record.

"all"

All fields from the current record to the end of the current query.

"field_list:field1, field2,field3,fieldN"

A comma delimited list of field names prefixed by "field_list:". Specified fields from the current record to the end of the current query.

Description

Launches the spell checker for the specified layout pointer. Mode is 'all', 'field', 'record', or 'field_list:field1,field2,field3,fieldn'

Discussion

The A5_SPELLCHECK() function checks the spelling of fields that have text content, including Memo and RTF fields, that do not have spell checking disabled on the Setup tab of their Properties dialog box. If the form is not visible, it will be displayed. The function displays the Spell Check dialog box.

Example

dim ptr as P
ptr = form.view("Customer Information")
a5_spellcheck(ptr, "all")
a5_spellcheck(ptr, "field_list:field1,field2,field3,fieldn")

Limitations

Desktop applications only.

See Also