![]() |
在這個頁面顯示本主題全部的 3 個文章 |
奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- 請問語法 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=14333)
請問語法
請問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
也就是如何將豆號分隔的文字內容分別拆轉成數字
謝謝
回覆: 請問語法
引用:
最初由 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
也就是如何將豆號分隔的文字內容分別拆轉成數字
謝謝
原碼:
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))
%>
我試試看有不解處再請教
謝謝
全部時間均為台灣時間, 現在時間為00:12 | 在這個頁面顯示本主題全部的 3 個文章 |
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved.