Board index » cppbuilder » Assignment not working correctly
Russell Allen
![]() CBuilder Developer |
Assignment not working correctly2006-02-26 05:37:38 AM cppbuilder18 Hi there, Not sure if this is the correct newsgroup for this one. I've got an application in Borland C++Builder 5, and when I run a component I've written, it doesn't seem to be correctly assigning a variable! The code looks something like: bool TControl::Method(AnsiString var1) { var2 = var1; return true; } When I trace through the above with the de{*word*81}, I can see the right info coming into the "var1" variable in the function parameter, but when I assign that var1 to var2, var2 is remaining unchanged. I've spent about four hours trying to pull this code apart, but it's driving me round the bend! Any idea why this might not be working, or what I could try to find the bug? Many thanks in advance, Russ |