tomfmason Posted October 20, 2006 Share Posted October 20, 2006 The subject says it all. I have been searching for hours and can't find an equivalent for what I am trying to do.Here is the asp[code]CASE "Other Purchases" NB = 0 For i = 1 to iCount Quantity = Request("Quantity" & CStr(i)) If IsNumeric(Quantity) Then ARYshopping(cartItemQuantity,i) = abs(CLng(Quantity))[/code]The CStr function converts this variable to a subtype string.I am at a loss on this one.Any suggestion would be great.Thanks,Tom Quote Link to comment Share on other sites More sharing options...
Barand Posted October 20, 2006 Share Posted October 20, 2006 You don't need it. Type converion is automatic[code]<?php$x = 'Quantity';$y = 1;echo $x.$y; // --> Quantity1 // orecho "$x$y"; // --> Quantity1?>[/code] Quote Link to comment Share on other sites More sharing options...
tomfmason Posted October 21, 2006 Author Share Posted October 21, 2006 Thanks Barand. I really appreciate it.Thanks,Tom Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.