
CONTENT |
|
|
|
|
|
|
|
MARKETPLACE |
|
|
|
COMMUNITY |
|
|
|
CAREERS |
|
|
CONTACT US |
|
|
|
|
| | 

Tip: Why Bother with Temporary Variables? Chris Anderson Here's a quick tip. I think the following code provides a good alternative that's both faster and uses less memory than the usual method of declaring a temporary variable and using that to swap the variables. Public Sub SwapLong(ByRef lngFirst As Long, __ ByRef lngSecond As Long) lngFirst = lngFirst Xor lngSecond lngSecond= lngFirst Xor lngSecond lngFirst = lngFirst Xor lngSecond End Sub | 
| 
|
 
  |