Page 1 of 1

command SWAP bug

Posted: Tue Aug 09, 2011 9:16 am
by mrjay
I think so, there is a bug with SWAP. Look at:
[code]
`swap_test by PaPi
dim word1 as string,word2 as string
dim i1 as integer,i2 as integer
word1="first"
word2="second"
i1=1
i2=2
showmessage word1+chr$(9)+word2+chr$(9)+str$(i1)+chr$(9)+str$(i2)
swap word1 word2
swap i1 i2
showmessage word1+chr$(9)+word2+chr$(9)+str$(i1)+chr$(9)+str$(i2)
[/code]

Why????




______________________________________________

[img] http://www.hlgaming.com/images/interviews/yahn1.jpg [/img]
[url=http://www.egamebiz.com/wii-guitar-hero-wireless-controller-for-nintendo-wii.html] Wii Guitar Hero [/url]thise is my love[url=http://www.egamebiz.com/xbox-360-chatpad-xbox-360-text-messaging-kit.html]Xbox 360  keyboard[/url]this is my life[url=http://www.egamebiz.com/wii-zapper-light-gun.html] Wii Zapper Light Gun [/url]can you feeling?

command SWAP bug

Posted: Tue Aug 09, 2011 9:17 am
by mrjay
thanks````if U know , please tell me. :`(

command SWAP bug

Posted: Tue Aug 09, 2011 9:59 am
by vdobiasch
`swap_test by PaPi
dim word1 as string,word2 as string
dim i1 as integer,i2 as integer
word1="first"
word2="second"
i1=1
i2=2
showmessage word1+chr$(9)+word2+chr$(9)+str$(i1)+chr$(9)+str$(i2)
swap word1, word2
swap i1, i2
showmessage word1+chr$(9)+word2+chr$(9)+str$(i1)+chr$(9)+str$(i2)

`This works for me fine