VBScript Data TypeNull, Empty, Boolean, ByteInteger, Long, Single, DoubleCurrency, Date, String, Object, Array, Error
Draft for Information Only
Content
VBScript Variant Subtypes Integer Subtype Examples of Integer Subtype Long Subtype Examples of Long Subtype Single Subtype Examples of Single Subtype Double Subtype Examples of Double Subtype
VBScript Variant Subtypes
In general, data subtypes are always depend on implementing version, application, and platform. Provided information is based on Microsoft Windows 8.1 Pro x64, VBScript Version 5.8. Integer subtype denotes a 2-byte data of a signed 16-bit integer
Integer Subtype
The Integer subtype refers to a Variant variable that contained is evaluated as a signed 16-bit integer in 2-byte data with range in value from -32,768 through 32,767. In other words, a Variant variable of Integer subtype can be used to hold integer number that does not contain a decimal point in the range -32,768 through 32,767. Variant Integer subtype is the default subtype for integer value in the range -32767 through 32767 and has high priority over Variant Byte subtype. The CByte function can be used to convert valid numeric expressions to Byte values. However for integer -32768, Variant Long subtype is the default subtype for integer value -32768 and has high priority over Variant Integer subtype.
Examples of Integer SubtypeInteger value is a number with no decimal point in the range -32768 through 32767 on Microsoft Windows 8.1 Pro x64, VBScript Version 5.8.. ASP VbScript Command:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script runat="server" language="VBScript">
Function printdata
cmda=array("TypeName(a)","LenB(a)","MidB(a,1)","TypeName(CInt(a))","LenB(CInt(a))","MidB(CInt(a),1)"):ucnt=UBound(cmda):call heading
vars="Dim a":dsp_x
vars="a=-32769":dsp_x
vars="a=-32768":dsp_x
vars="a=-32767":dsp_x
vars="a=-0":dsp_x
vars="a=0":dsp_x
vars="a=32767":dsp_x
vars="a=32768":dsp_x
vars="a=&h7FFF":dsp_x
vars="a=&HFFFF":dsp_x
vars="a=&o77777":dsp_x
vars="a=&O177777":dsp_x
End Function
Dim abb,cnt,cmda,cmp,dai,dlt,dte,dad,e,fnd,flg,fir,f_dw,gbd,hor,i,ild,k,mth,min,num,pnn,pi,sec,str1,str2,str,strs,tme,tmp,ucnt,var,vars,varx,wkd,x,z:varx=0
Function heading:If var=1 Then:tmp="":Else:tmp="<b>vars</b>":End If:For i=0 to ucnt:tmp=tmp&"<b>"&rmv_ctrl(cmda(i))&", TypeName</b>":Next:Response.Write "Results on Microsoft Windows Server 2008 R2 Standard x64, Microsoft-IIS/7.5, VB Version 14.0<br />"&"<i>"&tmp&"</i>":End Function
Function dsp_x:Dim tmp_a,tmp_b,i:If varx=0 Then:Execute vars:End If:If var=1 Then:tmp_a="":Else:tmp_a=rmv_ctrl(vars):End If:For i=0 to ucnt:tmp_b=cmd_b(cmda(i)):if i/2=fix(i/2) Then:tmp_b="<b>"&tmp_b&"</b>":End If:tmp_a=tmp_a&tmp_b:Next:Response.Write "<i>"&tmp_a&"</i>":End Function
Function rmv_ctrl(blk_str):Select Case blk_str:Case chr(0):blk_str="NUL":Case chr(1):blk_str="SOH":Case chr(2):blk_str="STX":Case chr(3):blk_str="ETX":Case chr(4):blk_str="EOT":Case chr(5):blk_str="ENQ":Case chr(6):blk_str="ACK":Case chr(7):blk_str="BEL":Case chr(8):blk_str="BS":Case chr(9):blk_str="HT":Case chr(10):blk_str="LF":Case chr(11):blk_str="VT":Case chr(12):blk_str="FF":Case chr(13):blk_str="CR":Case chr(14):blk_str="SO":Case chr(15):blk_str="SI":Case chr(16):blk_str="DLE":Case chr(17):blk_str="DC1":Case chr(18):blk_str="DC2":Case chr(19):blk_str="DC3":Case chr(20):blk_str="DC4":Case chr(21):blk_str="NAK":Case chr(22):blk_str="SYN":Case chr(23):blk_str="ETB":Case chr(24):blk_str="CAN":Case chr(25):blk_str="EM":Case chr(26):blk_str="SUB":Case chr(27):blk_str="ESC":Case chr(28):blk_str="FS":Case chr(29):blk_str="GS":Case chr(30):blk_str="RS":Case chr(31):blk_str="US":Case chr(127):blk_str="DEL":End Select:rmv_ctrl=blk_str:If IsNull(blk_str) OR IsEmpty(Blk_str) OR blk_str="" OR IsNumeric(Blk_str) Then:Else:rmv_ctrl=Replace(Replace(Replace(Replace(Replace(blk_str,"&","&")," "," "),"""","""),"<","<"),">",">"): End If :End Function
Function cmd_b(blk_str):cmd_b="["&cmd_x(blk_str)&"], "&cmd_x("TypeName("&blk_str&")"):End Function
Function cmd_x(blk_str):On Error Resume Next:Dim xans, tmp:xans="":tmp="":execute "xans="&blk_str:If Err.Number <> 0 Then:xans=cmd_x("TypeName("&blk_str&")"):Select Case xans:Case 9::Case Else:xans="error":End Select:End If:If IsArray(xans)=False Then:cmd_x=rmv_ctrl(xans): Else:tmp=lst_arry(xans):cmd_x=trim(tmp):End If:End Function
Function lst_arry(blk_str):Dim tmp,i,q:q="""":tmp="":For i=0 to UBound(blk_str):if VarType(blk_str(i))>1 And VarType(blk_str(i))<6 Then:q="'":End If:tmp=tmp&" "&q&rmv_ctrl(blk_str(i))&q:Next:lst_arry=trim(tmp):End Function
</script>
<title>Sample Page</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style type="text/css">
i {display:table-row}
u,b {display:table-cell}
</style>
</head>
<body>
<%call printdata %>
</body>
</html>
HTML Web Page Embedded Output:
Long Subtype
The Long subtype refers to a Variant variable that contained is evaluated as a signed 32-bit integer in 4-byte data with range in value from -2,147,483,648 through 2,147,483,647. In other words, a Variant variable of Long subtype can be used to hold integer number that does not contain a decimal point in the range -2,147,483,648 through 2,147,483,647. Variant Integer subtype is the default subtype for integer value in the range -32767 through 32767 and has high priority over Variant Long subtype. The CLng function can be used to convert valid numeric expressions to Long values.
Examples of Long SubtypeLong value is a number with no decimal point in the range -2,147,483,648 through 2,147,483,647 on Microsoft Windows 8.1 Pro x64, VBScript Version 5.8.. ASP VbScript Command:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script runat="server" language="VBScript">
Function printdata
cmda=array("TypeName(a)","LenB(a)","MidB(a,1)","TypeName(CLng(a))","LenB(CLng(a))","MidB(CLng(a),1)"):ucnt=UBound(cmda):call heading
vars="a=-2147483649":dsp_x
vars="a=-2147483648":dsp_x
vars="a=-32769":dsp_x
vars="a=-32768":dsp_x
vars="a=-32767":dsp_x
vars="a=-0":dsp_x
vars="a=0":dsp_x
vars="a=32767":dsp_x
vars="a=32768":dsp_x
vars="a=2147483647":dsp_x
vars="a=2147483648":dsp_x
vars="a=&h7FFFFFFF":dsp_x
vars="a=&HFFFFFFFF":dsp_x
vars="a=&o17777777777":dsp_x
vars="a=&O37777777777":dsp_x
End Function
Dim abb,cnt,cmda,cmp,dai,dlt,dte,dad,e,fnd,flg,fir,f_dw,gbd,hor,i,ild,k,mth,min,num,pnn,pi,sec,str1,str2,str,strs,tme,tmp,ucnt,var,vars,varx,wkd,x,z:varx=0
Function heading:If var=1 Then:tmp="":Else:tmp="<b>vars</b>":End If:For i=0 to ucnt:tmp=tmp&"<b>"&rmv_ctrl(cmda(i))&", TypeName</b>":Next:Response.Write "Results on Microsoft Windows Server 2008 R2 Standard x64, Microsoft-IIS/7.5, VB Version 14.0<br />"&"<i>"&tmp&"</i>":End Function
Function dsp_x:Dim tmp_a,tmp_b,i:If varx=0 Then:Execute vars:End If:If var=1 Then:tmp_a="":Else:tmp_a=rmv_ctrl(vars):End If:For i=0 to ucnt:tmp_b=cmd_b(cmda(i)):if i/2=fix(i/2) Then:tmp_b="<b>"&tmp_b&"</b>":End If:tmp_a=tmp_a&tmp_b:Next:Response.Write "<i>"&tmp_a&"</i>":End Function
Function rmv_ctrl(blk_str):Select Case blk_str:Case chr(0):blk_str="NUL":Case chr(1):blk_str="SOH":Case chr(2):blk_str="STX":Case chr(3):blk_str="ETX":Case chr(4):blk_str="EOT":Case chr(5):blk_str="ENQ":Case chr(6):blk_str="ACK":Case chr(7):blk_str="BEL":Case chr(8):blk_str="BS":Case chr(9):blk_str="HT":Case chr(10):blk_str="LF":Case chr(11):blk_str="VT":Case chr(12):blk_str="FF":Case chr(13):blk_str="CR":Case chr(14):blk_str="SO":Case chr(15):blk_str="SI":Case chr(16):blk_str="DLE":Case chr(17):blk_str="DC1":Case chr(18):blk_str="DC2":Case chr(19):blk_str="DC3":Case chr(20):blk_str="DC4":Case chr(21):blk_str="NAK":Case chr(22):blk_str="SYN":Case chr(23):blk_str="ETB":Case chr(24):blk_str="CAN":Case chr(25):blk_str="EM":Case chr(26):blk_str="SUB":Case chr(27):blk_str="ESC":Case chr(28):blk_str="FS":Case chr(29):blk_str="GS":Case chr(30):blk_str="RS":Case chr(31):blk_str="US":Case chr(127):blk_str="DEL":End Select:rmv_ctrl=blk_str:If IsNull(blk_str) OR IsEmpty(Blk_str) OR blk_str="" OR IsNumeric(Blk_str) Then:Else:rmv_ctrl=Replace(Replace(Replace(Replace(Replace(blk_str,"&","&")," "," "),"""","""),"<","<"),">",">"): End If :End Function
Function cmd_b(blk_str):cmd_b="["&cmd_x(blk_str)&"], "&cmd_x("TypeName("&blk_str&")"):End Function
Function cmd_x(blk_str):On Error Resume Next:Dim xans, tmp:xans="":tmp="":execute "xans="&blk_str:If Err.Number <> 0 Then:xans=cmd_x("TypeName("&blk_str&")"):Select Case xans:Case 9::Case Else:xans="error":End Select:End If:If IsArray(xans)=False Then:cmd_x=rmv_ctrl(xans): Else:tmp=lst_arry(xans):cmd_x=trim(tmp):End If:End Function
Function lst_arry(blk_str):Dim tmp,i,q:q="""":tmp="":For i=0 to UBound(blk_str):if VarType(blk_str(i))>1 And VarType(blk_str(i))<6 Then:q="'":End If:tmp=tmp&" "&q&rmv_ctrl(blk_str(i))&q:Next:lst_arry=trim(tmp):End Function
</script>
<title>Sample Page</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style type="text/css">
i {display:table-row}
u,b {display:table-cell}
</style>
</head>
<body>
<%call printdata %>
</body>
</html>
HTML Web Page Embedded Output: Single Subtype
The Single subtype refers to a Variant variable that contained is evaluated as a 32-bit single-precision floating-point number in 4-byte data with range in value from -3.4028235E+38 through -1.401298E-45 for negative values and from 1.401298E-45 through 3.4028235E+38 for positive values. In other words, a Variant variable of Single subtype can be used to hold an approximated real number with scientific notation expression that contains a floating decimal point in the range -3.4028235E+38 through -1.401298E-45 for negative values and from 1.401298E-45 through 3.4028235E+38 for positive values with precision up to single-precision. Usually Variant Integer subtype, Variant Long subtype, or Variant Double subtype mays has high priority over Variant Single subtype. The CSng function can be used to convert valid numeric expressions to Single values.
Examples of Single SubtypeSingle value is an approximation to real number with a single-precision floating decimal point in the range -3.4028235E+38 through -1.401298E-45 for negative values and from 1.401298E-45 through 3.4028235E+38 for positive values on Microsoft Windows 8.1 Pro x64, VBScript Version 5.8.. ASP VbScript Command:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script runat="server" language="VBScript">
Function printdata
cmda=array("TypeName(a)","LenB(a)","MidB(a,1)","TypeName(CSng(a))","LenB(CSng(a))","MidB(CSng(a),1)"):ucnt=UBound(cmda):call heading
vars="a=-2147483649":dsp_x
vars="a=-0.0000001":dsp_x
vars="a=-0.00000001":dsp_x
vars="a=0.00000001":dsp_x
vars="a=0.0000001":dsp_x
vars="a=-3.4028236E+38":dsp_x
vars="a=-3.4028235E+38":dsp_x
vars="a=-1.401298E-45":dsp_x
vars="a=-0.7006492E-45":dsp_x
vars="a=-2147483648":dsp_x
vars="a=-32769":dsp_x
vars="a=-32768":dsp_x
vars="a=-32767":dsp_x
vars="a=-0":dsp_x
vars="a=0":dsp_x
vars="a=32767":dsp_x
vars="a=32768":dsp_x
vars="a=2147483647":dsp_x
vars="a=0.7006492E-45":dsp_x
vars="a=1.401298E-45":dsp_x
vars="a=3.4028235E+38":dsp_x
vars="a=3.4028236E+38":dsp_x
End Function
Dim abb,cnt,cmda,cmp,dai,dlt,dte,dad,e,fnd,flg,fir,f_dw,gbd,hor,i,ild,k,mth,min,num,pnn,pi,sec,str1,str2,str,strs,tme,tmp,ucnt,var,vars,varx,wkd,x,z:varx=0
Function heading:If var=1 Then:tmp="":Else:tmp="<b>vars</b>":End If:For i=0 to ucnt:tmp=tmp&"<b>"&rmv_ctrl(cmda(i))&", TypeName</b>":Next:Response.Write "Results on Microsoft Windows Server 2008 R2 Standard x64, Microsoft-IIS/7.5, VB Version 14.0<br />"&"<i>"&tmp&"</i>":End Function
Function dsp_x:Dim tmp_a,tmp_b,i:If varx=0 Then:Execute vars:End If:If var=1 Then:tmp_a="":Else:tmp_a=rmv_ctrl(vars):End If:For i=0 to ucnt:tmp_b=cmd_b(cmda(i)):if i/2=fix(i/2) Then:tmp_b="<b>"&tmp_b&"</b>":End If:tmp_a=tmp_a&tmp_b:Next:Response.Write "<i>"&tmp_a&"</i>":End Function
Function rmv_ctrl(blk_str):Select Case blk_str:Case chr(0):blk_str="NUL":Case chr(1):blk_str="SOH":Case chr(2):blk_str="STX":Case chr(3):blk_str="ETX":Case chr(4):blk_str="EOT":Case chr(5):blk_str="ENQ":Case chr(6):blk_str="ACK":Case chr(7):blk_str="BEL":Case chr(8):blk_str="BS":Case chr(9):blk_str="HT":Case chr(10):blk_str="LF":Case chr(11):blk_str="VT":Case chr(12):blk_str="FF":Case chr(13):blk_str="CR":Case chr(14):blk_str="SO":Case chr(15):blk_str="SI":Case chr(16):blk_str="DLE":Case chr(17):blk_str="DC1":Case chr(18):blk_str="DC2":Case chr(19):blk_str="DC3":Case chr(20):blk_str="DC4":Case chr(21):blk_str="NAK":Case chr(22):blk_str="SYN":Case chr(23):blk_str="ETB":Case chr(24):blk_str="CAN":Case chr(25):blk_str="EM":Case chr(26):blk_str="SUB":Case chr(27):blk_str="ESC":Case chr(28):blk_str="FS":Case chr(29):blk_str="GS":Case chr(30):blk_str="RS":Case chr(31):blk_str="US":Case chr(127):blk_str="DEL":End Select:rmv_ctrl=blk_str:If IsNull(blk_str) OR IsEmpty(Blk_str) OR blk_str="" OR IsNumeric(Blk_str) Then:Else:rmv_ctrl=Replace(Replace(Replace(Replace(Replace(blk_str,"&","&")," "," "),"""","""),"<","<"),">",">"): End If :End Function
Function cmd_b(blk_str):cmd_b="["&cmd_x(blk_str)&"], "&cmd_x("TypeName("&blk_str&")"):End Function
Function cmd_x(blk_str):On Error Resume Next:Dim xans, tmp:xans="":tmp="":execute "xans="&blk_str:If Err.Number <> 0 Then:xans=cmd_x("TypeName("&blk_str&")"):Select Case xans:Case 9::Case Else:xans="error":End Select:End If:If IsArray(xans)=False Then:cmd_x=rmv_ctrl(xans): Else:tmp=lst_arry(xans):cmd_x=trim(tmp):End If:End Function
Function lst_arry(blk_str):Dim tmp,i,q:q="""":tmp="":For i=0 to UBound(blk_str):if VarType(blk_str(i))>1 And VarType(blk_str(i))<6 Then:q="'":End If:tmp=tmp&" "&q&rmv_ctrl(blk_str(i))&q:Next:lst_arry=trim(tmp):End Function
</script>
<title>Sample Page</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style type="text/css">
i {display:table-row}
u,b {display:table-cell}
</style>
</head>
<body>
<%call printdata %>
</body>
</html>
HTML Web Page Embedded Output: Double Subtype
The Double subtype refers to a Variant variable that contained is evaluated as a 64-bit double-precision floating-point number in 8-byte data with range in value from -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values and from 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values. In other words, a Variant variable of Double subtype can be used to hold an approximated real number with scientific notation expression that contains a floating decimal point in the range -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values and from 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values with precision up to double-precision. Usually Variant Integer subtype, or Variant Long subtype mays has high priority over Variant Single subtype. The CDbl function can be used to convert valid numeric expressions to Double values.
Examples of Double SubtypeDouble value is an approximation to real number with a double-precision floating decimal point in the range -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values and from 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values on Microsoft Windows 8.1 Pro x64, VBScript Version 5.8.. ASP VbScript Command:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script runat="server" language="VBScript">
Function printdata
cmda=array("TypeName(a)","LenB(a)","MidB(a,1)","TypeName(CDbl(a))","LenB(CDbl(a))","MidB(CDbl(a),1)","MidB(CSng(a),1)"):ucnt=UBound(cmda):call heading
vars="a=-2147483649":dsp_x
vars="a=-0.0000001":dsp_x
vars="a=-0.000000000000001":dsp_x
vars="a=-0.0000000000000001":dsp_x
vars="a=0.0000000000000001":dsp_x
vars="a=0.000000000000001":dsp_x
vars="a=""-1.79769313486231581E+308""":dsp_x
vars="a=""-1.79769313486231580E+308""":dsp_x
vars="a=""-1.79769313486231570E+308""":dsp_x
vars="a=-3.4028236E+38":dsp_x
vars="a=-3.4028235E+38":dsp_x
vars="a=-1.401298E-45":dsp_x
vars="a=-0.7006492E-45":dsp_x
vars="a=-4.94065645841246544E-324":dsp_x
vars="a=-2.4703282292062329687E-324":dsp_x
vars="a=-2147483648":dsp_x
vars="a=-32769":dsp_x
vars="a=-32768":dsp_x
vars="a=-32767":dsp_x
vars="a=-0":dsp_x
vars="a=0":dsp_x
vars="a=32767":dsp_x
vars="a=32768":dsp_x
vars="a=2147483647":dsp_x
vars="a=2.4703282292062329687E-324":dsp_x
vars="a=4.94065645841246544E-324":dsp_x
vars="a=0.7006492E-45":dsp_x
vars="a=1.401298E-45":dsp_x
vars="a=3.4028235E+38":dsp_x
vars="a=3.4028236E+38":dsp_x
vars="a=""1.79769313486231570E+308""":dsp_x
vars="a=""1.79769313486231580E+308""":dsp_x
vars="a=""1.79769313486231581E+308""":dsp_x
End Function
Dim abb,cnt,cmda,cmp,dai,dlt,dte,dad,e,fnd,flg,fir,f_dw,gbd,hor,i,ild,k,mth,min,num,pnn,pi,sec,str1,str2,str,strs,tme,tmp,ucnt,var,vars,varx,wkd,x,z:varx=0
Function heading:If var=1 Then:tmp="":Else:tmp="<b>vars</b>":End If:For i=0 to ucnt:tmp=tmp&"<b>"&rmv_ctrl(cmda(i))&", TypeName</b>":Next:Response.Write "Results on Microsoft Windows Server 2008 R2 Standard x64, Microsoft-IIS/7.5, VB Version 14.0<br />"&"<i>"&tmp&"</i>":End Function
Function dsp_x:Dim tmp_a,tmp_b,i:If varx=0 Then:Execute vars:End If:If var=1 Then:tmp_a="":Else:tmp_a=rmv_ctrl(vars):End If:For i=0 to ucnt:tmp_b=cmd_b(cmda(i)):if i/2=fix(i/2) Then:tmp_b="<b>"&tmp_b&"</b>":End If:tmp_a=tmp_a&tmp_b:Next:Response.Write "<i>"&tmp_a&"</i>":End Function
Function rmv_ctrl(blk_str):Select Case blk_str:Case chr(0):blk_str="NUL":Case chr(1):blk_str="SOH":Case chr(2):blk_str="STX":Case chr(3):blk_str="ETX":Case chr(4):blk_str="EOT":Case chr(5):blk_str="ENQ":Case chr(6):blk_str="ACK":Case chr(7):blk_str="BEL":Case chr(8):blk_str="BS":Case chr(9):blk_str="HT":Case chr(10):blk_str="LF":Case chr(11):blk_str="VT":Case chr(12):blk_str="FF":Case chr(13):blk_str="CR":Case chr(14):blk_str="SO":Case chr(15):blk_str="SI":Case chr(16):blk_str="DLE":Case chr(17):blk_str="DC1":Case chr(18):blk_str="DC2":Case chr(19):blk_str="DC3":Case chr(20):blk_str="DC4":Case chr(21):blk_str="NAK":Case chr(22):blk_str="SYN":Case chr(23):blk_str="ETB":Case chr(24):blk_str="CAN":Case chr(25):blk_str="EM":Case chr(26):blk_str="SUB":Case chr(27):blk_str="ESC":Case chr(28):blk_str="FS":Case chr(29):blk_str="GS":Case chr(30):blk_str="RS":Case chr(31):blk_str="US":Case chr(127):blk_str="DEL":End Select:rmv_ctrl=blk_str:If IsNull(blk_str) OR IsEmpty(Blk_str) OR blk_str="" OR IsNumeric(Blk_str) Then:Else:rmv_ctrl=Replace(Replace(Replace(Replace(Replace(blk_str,"&","&")," "," "),"""","""),"<","<"),">",">"): End If :End Function
Function cmd_b(blk_str):cmd_b="["&cmd_x(blk_str)&"], "&cmd_x("TypeName("&blk_str&")"):End Function
Function cmd_x(blk_str):On Error Resume Next:Dim xans, tmp:xans="":tmp="":execute "xans="&blk_str:If Err.Number <> 0 Then:xans=cmd_x("TypeName("&blk_str&")"):Select Case xans:Case 9::Case Else:xans="error":End Select:End If:If IsArray(xans)=False Then:cmd_x=rmv_ctrl(xans): Else:tmp=lst_arry(xans):cmd_x=trim(tmp):End If:End Function
Function lst_arry(blk_str):Dim tmp,i,q:q="""":tmp="":For i=0 to UBound(blk_str):if VarType(blk_str(i))>1 And VarType(blk_str(i))<6 Then:q="'":End If:tmp=tmp&" "&q&rmv_ctrl(blk_str(i))&q:Next:lst_arry=trim(tmp):End Function
</script>
<title>Sample Page</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style type="text/css">
i {display:table-row}
u,b {display:table-cell}
</style>
</head>
<body>
<%call printdata %>
</body>
</html>
HTML Web Page Embedded Output:
©sideway
ID: 180400017 Last Updated: 4/17/2018 Revision: 0
|
|