BBjTemplatedString::getReconciledString

Description

In BBj 16.0 and higher, this method returns the string value of the BBjTemplatedString after reconciling it to the template.

Syntax

Return Value

Method

byte[]

getReconciledString()

Parameters

None.

Return Value

Returns the string value of the BBjTemplatedString after reconciling it to the template.

Remarks

This is equivalent to using the FIELD(REC$) with a traditional templated string.

Methods that return byte[] can usually be treated as if they returned string, because BBj automatically handles the conversion. However, when that byte[] value is directly assigned to an object variable or passed to a Java method, BBj skips the conversion and the raw internal byte[] format is used. You can always use the STR() function to explicitly convert the byte[] value to a string.

Example

rem ' BBjTemplatedString::getReconciledString

t! = bbjapi().makeTemplatedString("state:c(2),name:c(25* = 0)")
t!.setString(pad("NMNew Mexico",30,$00$))
rec$ = t!.getString()
print rec$,len(rec$)
rec$ = t!.getReconciledString()
print rec$,len(rec$)

See Also

String Templates

FIELD(REC$)

BBjAPI

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