Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change variable to integer?

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
0
0
I've got a variable in an array that is an integer. I need to add that variable and the next variable in the array together, but when I try 'MyArray(3) + MyArray(4)' it only PUTS them together, not ADDS them. I already knew the + was wrong but of course I don't know what to do to fix it.

Thanks

Cyprus
 
cInt or cLng data types are probably not numeric

if it concatinates them then are you using javascript as your language to code you ASP pages?

_________________________________________________________
[sub]$str = "sleep is good for you. sleep gives you the energy you need to function";
$Nstr = ereg_replace("sleep","coffee",$str); echo $Nstr;[/sub]
onpnt2.gif
[sup] [/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top