1.

How Will You Convert A Given Number To Long In Vbscript?

Answer»

Using CLng function, which CONVERTS a given NUMBER of any variant subtype to LONG.

Example:

x = 123
y = 123.882
document.write("x value after converting to Long -" & CLng(x) & "<br /&GT;")

Using CLng function, which converts a given number of any variant subtype to Long.

Example:

x = 123
y = 123.882
document.write("x value after converting to Long -" & CLng(x) & "<br />")



Discussion

No Comment Found