3. System Classes : ButtonField Class : StringObject Class
 
Share this page                  
StringObject Class
StringObject Attributes
Attribute
Data Type
Description
Inherited
From
ClassName
varchar(32)
Gives the name of an object's actual type (as opposed to its declared type) (R)
Object
ClientData
Object
Provides a way to associate data with an object (RW)
Object
DBHandle
varchar(76)
Specifies a database handle to load into StringObject (RW)
Defined
ErrorStatus
integer
Contains the error status from the last setting of FileHandle or DBHandle (R)
Defined
FileHandle
varchar(256)
Specifies a file to be loaded into StringObject (RW)
Defined
InstanceIdentifier
integer
Contains a value that uniquely identifies an instance of an allocated object (R)
Object
InstanceReferences
integer
Contains the current number of references to the object (R)
Object
Length
integer
Specifies the text string length (0 indicates an empty string) (R)
Defined
Value
varchar(2000)
Is a varchar representation of the string object (RW)
Defined
 
StringObject Methods
Method
Return
Value
Description
Inherited From
AppendToFile
([filename =
varchar(256)])
integer
Appends the string object to the end of a file
Defined
ConcatString
(string =
StringObject)
StringObject
Concatenates a string to the end of the string object
Defined
ConcatVarchar
(text =
varchar(256))
StringObject
Concatenates text to the end of the string object
Defined
ConvertFromBinary
(binary
= LongByteObject,
format = integer)
integer
Loads the object from the binary contents of a LongByteObject
Defined
DeleteFromDB()
integer
Deletes the string object specified in the DBHandle attribute from the database
Defined
Duplicate()
StringObject
Makes a duplicate of the object, placing a reference to the new object in a reference variable
Object
ExpandParm(scope = Scope)
StringObject
Returns a string object obtained from the target string object by expanding parameters
Defined
ExtractString
(
[startposition = integer]
[,length = integer])
StringObject
Returns a section of named string, starting with startposition and extending length bytes, creating a new StringObject as output
Defined
GetAttribute
(
attributename = byref(variable)
{,attributename = byref(variable)})
integer
Gets the values of any number of attributes for the object
Object
InsertIntoDB
(
[tablename = varchar(256)])
integer
Writes a string object into the specified database, using tablename as the base for storage and handle
Defined
IsA
(class =
classname)
integer
Returns TRUE if the object is of the same class as, or one of the subclasses of, the class specified by classname
Object
Join
(strings =
array of StringObject
[, delimiter = varchar(256)])
StringObject
Concatenates an array of StringObjects to the cleared host StringObject and returns that StringObject
Defined
LeftTruncate
(endposition =
integer)
none
Truncates the left part of the string, up to and including endposition
Defined
LoadLong(object = Object)
integer
Loads the object with the data contained within a LongVcharObject or LongByteObject
Defined
LocateString
(match =
varchar(256),
startposition = integer [,ignorecase = integer] [,backwards = integer])
integer
Finds the first occurrence of match, starting from startposition
Defined
RightTruncate
(
[startposition = integer])
none
Sets text to null on the right, starting at the character position startposition
Defined
SetAttribute
(
attributename = value
{,attributename = value})
integer
Sets any number of attributes for the object
Object
Split
(delimiter =
varchar(256)
[, ignorecase = integer]
[, backwards = integer]
[, exactrows = integer]
[, minrows = integer]
[, includedelimiter = integer]
[, preserveleadingwhitespace = integer])
array of StringObject
Splits the StringObject contents into an array of StringObjects and returns them
Defined
SubString
(
[startposition = integer]
[,length = integer])
varchar
Returns a section of the StringObject, starting at startposition and extending length bytes into a varchar variable
Defined
UpdateInDB()
integer
Replaces a string object in the database
Defined
WriteToFile
(
[filename = varchar(256)])
integer
Writes a string object to file
Defined