RightC Function | |
Returns the specified number of rightmost characters from a character string.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax FUNCTION RightC(
cExpression AS STRING,
nCharacters AS DWORD
) AS STRING
public static string RightC(
string cExpression,
uint nCharacters
)
Request Example
View SourceParameters
- cExpression
- Type: String
Specifies the character expression whose rightmost characters are returned.
- nCharacters
- Type: DWord
Specifies the number of characters returned from the character expression. RightC( ) returns the entire character expression if nCharacters is greater than the length of cExpression. RightC( ) returns an empty string if nCharacters is negative or 0.
Return Value
Type:
String
Character
Remarks
RightC( ) is designed for expressions containing double-byte characters. If the expression contains only single-byte characters, RightC( ) is equivalent to RIGHT( ).
Characters are returned beginning with the last character on the right and continuing for nCharacters.
This function is useful for manipulating double-byte character sets for languages such as Hiragana and Katakana.
See Also