W
Wendell Buckner
I call an activex object and it's returning values from a status variable
zero padded but I don't want it zero padded. for example:
<%
dim temp
temp = myObject.Status
response.write ("Here's the value " & temp)
%>
which displays:
Here's the value 00001
I want it to display
Here's the value 00001
I tried to use this to fix it but it doesn't work:
<%
dim temp
temp = str(val(myObject.Status))
response.write ("Here's the value " & temp)
%>
Why can't I use "str" or "val"? I thought I could use the vb style commands
in ASP code...
so I did this...
<%
dim temp
temp = myObject.Status
temp = temp + 0
response.write ("Here's the value " & temp)
%>
But there must be better way to format the output than this
zero padded but I don't want it zero padded. for example:
<%
dim temp
temp = myObject.Status
response.write ("Here's the value " & temp)
%>
which displays:
Here's the value 00001
I want it to display
Here's the value 00001
I tried to use this to fix it but it doesn't work:
<%
dim temp
temp = str(val(myObject.Status))
response.write ("Here's the value " & temp)
%>
Why can't I use "str" or "val"? I thought I could use the vb style commands
in ASP code...
so I did this...
<%
dim temp
temp = myObject.Status
temp = temp + 0
response.write ("Here's the value " & temp)
%>
But there must be better way to format the output than this