ToReal() | ||
BuildMessageNLS |
Searches for the first occurrence of a sub string in a String type parameter. Returns the index (o or 1) of the start of the substring. Returns -1 is the substring specified is not found.
string.Search(StringToBeSearchedFor): Integer
where StringToBeSearchedFor is the name of the SubString parameter.
|
Returns the sub string starting at a given position with a specified length.
string.Extract(StartIndex: Integer, Length:
Integer) : String
where StartIndex is the index (0 or 1) of the substring first character
and Length the sub string length.
Message (Responsible.Extract(2,2))
Applies to a string type parameter. Returns the string length.
string.Length(Integer
Converts an integer into a string.
ToString(Real) : String
Converts a string into a real.
String.ToReal(Real): Real
Replaces a sub string with another substring within a character string.
ReplaceSubText(InputString: String, SubStringToBeReplaced: String, ReplacingSubString: String): String
Arguments 2 and 3 can be specified either with their parameters names or with the string itself between quotes.
Changes all lower-case letters of a string to upper-case.
ToUpper(StringTobeConverted: String): String
where StringTobeConverted is name of the string type parameter.
Changes all upper-case letters of a string to lower-case.
ToLower(StringTobeConverted: String): String
where StringTobeConverted is name of the string type parameter.
Enables you to send messages or ask questions through the Message and Question functions in the language of your choice. The BuildMessageNLS function can build a NLS message (a message in a given language) by finding it in a CATXXX.CATNls file.
Note that this function is useful when used together with the Message and Question functions. For more information about these 2 functions, see the Knowledge Advisor User's Guide.
BuildMessageNLS(MessageCatalog:String, MessageKey: String, argument: Literal, ...):String
where:
The
KwrCATCatalog.CATNls file contains the following text.
Zero = "Zero";
|
Zero, One and Two are the messages. The first message has no arguments, the second has 1 argument, the third, 2 arguments.
To display those messages in a Knowledge Advisor rule for example, enter the
following rule body:
Message (BuildMessageNLS("KwrCATCatalog","Zero")) |
OR
Message (BuildMessageNLS("KwrCATCatalog","One",x)) Where x is a parameter. |
OR
Message (BuildMessageNLS("KwrCATCatalog","Two",y,z)) Where y, and z are parameters. |
|
KwrCATCatalog.CATPart (See Rule.2)