 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18197 |
回覆: 請問語法
引用: 最初由 hwyhon 發表
請問vbs抓到的A.txt文字內容為
1111.11,2222.22,3333.33,4444.44,5555.55
我如何用奇狐內建函數去拆轉為數字
a:數字;//==>1111.11
b:數字;//==>2222.22
cc:數字;//==>3333.33
d:數字;//==>4444.44
e:數字;//==>5555.55
也就是如何將豆號分隔的文字內容分別拆轉成數字
謝謝
在 vbs 中先處理好就可以了, 範例如下:
原碼:
N1:0;
N2:0;
N3:0;
N4:0;
N5:0;
<%
NN=FFL.VarData("NN")
TxtStr="1111.11,2222.22,3333.33,4444.44,5555.55"
TxtAry = Split(TxtStr, ",", -1, 1)
FFL.VarData("N1")=csng(TxtAry(0))
FFL.VarData("N2")=csng(TxtAry(1))
FFL.VarData("N3")=csng(TxtAry(2))
FFL.VarData("N4")=csng(TxtAry(3))
FFL.VarData("N5")=csng(TxtAry(4))
%>
|
|
向版主報告此篇 |  |
|
2010-09-23 09:06 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|