Strip out quotes

J

JoeBo

Is it possible to strip the quotes from a string value and declare the return
as an integer. ie.

make the string "1" = 1

I have tried replace but can't figure out the syntax to deal with the quotes.
 
W

Wayne Morgan

See if the Eval() function will do what you want.

Eval("1")

Also, you may find the data conversion functions helpful.

CInt()
CLng()
CDbl()
CSgl()
 
Top