-
October 31st, 2002, 03:15 PM #1Member
- Join Date
- May 2002
- Location
- Merseyside UK
- Posts
- 114
swaping variable a for b and vice versa in VB
is there a 'swap' command in VB or somethng simialr to do what i want to in the subject ?
P.S its VB 5 i'm using i have access to VB 6 though
-
October 31st, 2002, 03:24 PM #2
Maybe this is too simplistic, but
set var c = a
set var a = b
set var b = c
or something like that should work if I understand what you want to do.
-
October 31st, 2002, 03:26 PM #3Not Really a Member
- Join Date
- Oct 2001
- Posts
- 27,879
umm don't know of a swap function but if you convert howste's code to vb you should be ok

Dim a
Dim b
Dim c
c=a
a=b
b=c
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
-
October 31st, 2002, 04:04 PM #4
Obviously I've forgotten some pretty basic VB code stuff.
Do what Vass said.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



LinkBack URL
About LinkBacks



Reply With Quote

Are you guys looking for the awesome full day entertainment here are some options for you take a look. Teen Wolf Season 3 Episode 3 Chopped Season 16 Episode 6 The Bachelorette Season 9 Episode...
The Bachelorette Season 9 Episode 4