BBjTemplatedString::getFieldAsString
Description
In BBj 7.0 and higher, this method returns the string value stored in a specified field of a BBjTemplatedString.
Syntax
Return Value |
Method |
---|---|
byte[] |
getFieldAsString(string fieldname) |
byte[] |
getFieldAsString(string fieldname, int index) |
Parameters
Variable |
Description |
---|---|
fieldname |
The name of the field that is to be retrieved as defined in the template used when constructing the BBjTemplatedString. |
index |
The index of a repeating field. |
Return Value
Returns the string value that is stored in the BBjTemplatedString.
Remarks
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
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.