马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
<h3 style="margin-left:64px">1.1.1.1<span style="font:9px 'Times New Roman'"> </span>1.1.1.2 LEFT</h3><p style="margin-top:13px;line-height:118%">该函数功能是获取源字符串中从左边开始的部分字符。输入变量 STR 为 STRING 类型,SIZE 为 INT 类型,返回值为 STRING 类型。</p><p style="margin-top:9px"><span style="font-family:'Arial','sans-serif'">LEFT (STR, SIZE) </span>意思是:获取从字符串 <span style="font-family:'Arial','sans-serif'">STR </span>左边开始,长度为 <span style="font-family:'Arial','sans-serif'">SIZE </span>的部分字符。</p><p style="margin-top:0"><span style="font-size: 8px;font-family:宋体"> </span></p><p><span style="font-family:'Arial','sans-serif'">FBD </span>中示例:</p><p style="margin-top:0"><span style="font-size: 10px;font-family:宋体"> </span></p><p style="margin-left:179px;line-height:79px"><img src="/upload/article/20230611/1686449788443493.png" title="1686449788443493.png" alt="image.png"/></p><p style="margin-top:1px"><span style="font-size: 10px;font-family:宋体"> </span></p><p><span style="font-family:'Arial','sans-serif'">ST </span>中示例:</p><p style="margin-top:0"><span style="font-size: 10px;font-family:宋体"> </span></p><p style="margin-top:0;margin-right:7px;margin-bottom:0;margin-left:0;margin-bottom:0;text-align:center"><span style="font-family:'Arial','sans-serif'">VarSTRING1 := LEFT ('SUSI',3);</span></p><p><br/></p> |