Ifintops, Iffloat, Ifstring – BrightSign Object Reference Manual (FW 5.1) User Manual
Page 32: Ifstringops

24
roInt also contains the ifIntOps interface, which provides the following:
•
ToStr() As String
roFloat contains the ifFloat interface, which provides the following:
•
GetFloat() As Float
•
SetFloat(value As Float) As Void
roString contains the ifString interface, which provides the following:
•
GetString() As String
•
SetString(value As String) As Void
roString also contains the ifStringOps interface, which provides the following:
Note: The function indexes of ifStringOps methods start at zero, while the function indexes of global methods start at
one.
•
SetString(str As String, str_len As Integer): Sets the string using the specified string and string-
length values.
•
AppendString(str As String, str_len As Integer): Appends the string using the specified string and
string-length values. This method modifies itself—this can cause unexpected results when you pass an intrinsic
string type, rather than a string object.
Example:
x="string"
x.ifstringops.appendstring("ddd",3)
print x 'will print 'string'
y=box("string")
y.ifstringops.appendstring("ddd",3)
print y 'will print 'stringddd'