Jump to content

Moving items from listbox?


Recommended Posts

Hello every1!! :)

OK, this is what I have: (I'm using CyberSlug's Listbox Wrappers)

If _GuiLB_GetCurSel($beeps) <> -1 Then
    If Not _GuiLB_GetCurSel($beeps) < 0 Then _GuiLB_SwapString($beeps, _GuiLB_GetCurSel($beeps), _GuiLB_GetCurSel($beeps) - 1)
EndIf

It doesn't work!! and when I try this: (the same but without the If's...)

_GuiLB_SwapString($beeps, _GuiLB_GetCurSel($beeps), _GuiLB_GetCurSel($beeps) - 1)

and if it goes off the limits, it displays some weird number with a weird "Y" with some dashes in the middle!! :lmao:

How do I do this?? Thanx!! o:)

El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx

Link to comment
Share on other sites

If Not _GuiLB_GetCurSel($beeps) < 0 Then  ...

I'm pretty sure that statement is always false. Because of the Not, the left side of the If-statement witll either be 0 or 1 (neither is less than zero).

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...