QueryPrompt Properties

In this section, we discuss the QueryPrompt properties. The properties are discussed in alphabetical order.

Description

This property returns or sets the edit type for the field. This property takes a number value. The values are:

Value

Description

0

No table edit

16384

Prompt table

512

Translate table

8192

Yes/No

This property is read-write.

Description

This property returns or sets the decimal value for the field.

This property is only valid with number fields.

This property is read-write.

Description

This property returns the field format for a field. This property takes a number value. Values are:

Value

Description

0

None

1

Name

2

Phone

3

Zip Code

4

Social Security Number

5

Upper

6

Mixed Case

7

Century

8

Number Only

9

Social Insurance Number

10

International Phone Number

11

International Postal Code

12

Seconds

13

Microseconds

14

Century/Seconds

15

Century/Microseconds

This property is read-only.

Description

This property returns or sets the field length.

This property is read-write.

Description

This property returns or sets the field name used with the prompt.

This property is read-write.

Description

This property returns or sets the field type of the field used with the prompt.

This property returns the type of the field. You can specify either a constant or a numeric value. The values are:

Numeric Value

Constant Value

Description

0

%FieldType_Char

Character

1

%FieldType_LongChar

Long Character

2

%FieldType_Number

Number

3

%FieldType_SignedNumber

Signed number

4

%FieldType_Date

Date

5

%FieldType_Time

Time

6

%FieldType_DateTime

DateTime

7

%FieldType_Image

Image

This property is read-write.

Description

This property returns or sets the heading text for the prompt field.

This property is read-write.

Description

This property returns or sets the heading type for the query field. This property takes either a constant or numeric value. The values are:

Numeric Value

Constant Value

Description

1

%Query_HdgNone

Query field has no heading.

2

%Query_HdgText

Query field has a text heading.

3

%Query_HdgRftShort

Query field uses the short RFT heading.

4

%Query_HdgRftLong

Query fields uses the long RFT heading.

This property is read-write.

Description

This property returns the total count of the language records for the current prompt.

This property is read-only.

Description

This property returns a string containing the Prompt name. When an existing query is read, this name is the same as the Field Name. When a new prompt is added using AddPrompt, this is the Name parameter used with that method.

This property is read-only.

Description

When you have more than one field with the same name in the prompt collection, the system generates a unique prompt field name for each repeated field. The generated names are of the form Bind1, Bind2, and so on. This property returns the unique name for the prompt record field.

This property is read-only.

Description

This property returns or sets the prompt table name for the prompt field.

This property is read-write.

Description

This property returns or sets the unique prompt name for the prompt field.

This property is read-write.

Description

This property returns the total count of the usage of the current prompt.

This property is read-only.

The following are examples of the usual actions that you perform using the query classes.