Newbe - A general question about returns.
I am reading the book Beginning Active Server Pages 3.0 - THIS IS A GREAT BOOK!
On page 133 there is an example that I typed in that helped me understand how to use the VBScript function TypeName to return a variant subtype. The example is a follows:
<%
Dim dblPi, varWhatIsPi, datToday, whatIsDate, strText, whatIsText
dblPi = 3.142
varWhatIsPi = Typename(dblPi)
datToday = Date
whatIsDate = TypeName(datToday)
strText = "Hello World"
whatIsText = TypeName(strText)
Dim emp
emptyVar = TypeName(emp)
%>
<p><B> dblPi returns <%= varWhatisPi %></p>
<p>datToday returns <%= whatIsDate %></p>
<p>strText returns <%= whatIsText %></p>
<p>emp returns <%= emptyVar %></B></p>
I understand what the program is doing. My question is why is there an equal sign in front of the variable when the variant subtype is returned? What is its function?
Example: emp returns <%= emptyVar %>
Thanks!
|