modStrTools 函式庫 風禹科技驗證有限公司 網站 提供 .Net 原始碼

CVariant 函數

說明

將字串轉換為 ASPNET 內變數

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
strSource Object - 必須 (無) 欲轉換之字串變數

傳回值

物件變數

範例

Debug.Write(CVariant("Nothing")) ' 傳回 Nothing
Debug.Write(CVariant("Null")) ' 傳回 DBNull
Debug.Write(CVariant("1.12345")) ' 傳回 1.12345
Debug.Write(CVariant("2004/10/1")) ' 傳回 2004/10/1 00:00:00
Debug.Write(CVariant("False")) ' 傳回 False
Debug.Write(CVariant("Hi")) ' 傳回 "Hi"

基本條件

Visual Studio .Net 2002 以後相容版本 | StrTools.aspx

請參閱

modStrTools 函式庫