天软金融分析.NET函数大全 > TSL函数 > 基础函数 > 字符串 > 多语言支持函数

CharLength    

简述

指定位置的字符所包含的字节数。
定义
CharLength(const S: String; Index: Integer): Integer;
参数
名称类型说明
S String字符串,源串
Index Integer整数,字符位置
返回 Integer
整数,字节数
  • 范例


    //第2个字符‘软’的字节数
    S:= "天软Tinysoft Statistical analysis Language";
    return CharLength(s,2);
    //返回:2
相关