table.Suggest Function

Syntax

C Suggest( expr as c, value as c , limit as n = 1 , moreText as c = "", filter as c = "")

Arguments

expr

The expression to evaluate to get the suggested values

value

Returns suggestions that start with value.

limit

Number of suggestions to return. -1 (default value), indicates that all suggestions should be returned.

moreText

If limit is not -1, then if there are more suggestions than limit, last suggestion contains the more_text text.

filter

Filters the suggestion list.

Description

Suggest a list of possible values given a sample value (to drive auto-complete).

Example

dim t as p
t = table.open("customer")
?t.suggest("lastname","s",5)
= Smallwood
 Smith
 Smith
 Smithson