点击或拖拽改变大小

Functions.PosAlpha 方法

X#
Retrieves the 1 based position of the first letter in a string.

命名空间:  XSharp.XPP
程序集:  XSharp.XPP (在 XSharp.XPP.dll 中) 版本:2.22 GA
语法
 FUNCTION PosAlpha(
	cString,
	lNoLetter,
	nIgnoreCharsFromLeft
) AS LONG CLIPPER
查看代码

参数

cString (Optional)
类型:__Usual
String to check
lNoLetter (Optional)
类型:__Usual
When TRUE is passed then the first character is returned which is not a not a letter. Defaults to FALSE.
nIgnoreCharsFromLeft (Optional)
类型:__Usual
Number of characters that must be ignored. Defaults to 0.

返回值

类型:Int32
Returns the position of the first letter in a string as a numeric value, or ZERO when there is no uppercase letter in the string.
备注
In X# A letter is defined as a character for which the Char.IsLetter() method returns TRUE. If lNoLetter is set to TRUE the function returns the position of the first character which is not a letter.
参见