BBjTemplatedString::clear

Description

In BBj 16.0 and higher, this method clears this BBjTemplatedString, resetting all fields to their initial default values.

Syntax

Return Value

Method

void

clear()

Parameters

None.

Return Value

None.

Remarks

This is equivalent to using the REDIM verb with a traditional templated string.

Example

rem ' BBjTemplatedString::clear
fin! = bbjapi().makeTemplatedString(tmpl(0,ind=0))
fin!.setString(fin(0,ind=0))
print fin!.getFieldAsNumber("maxcols"),
print fin!.getFieldAsNumber("maxrows")
fin!.clear()
print fin!.getFieldAsNumber("maxcols"),
print fin!.getFieldAsNumber("maxrows")

See Also

String Templates

REDIM Verb

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.