buddylist

  1. last week

    im having trouble deleting a user from a buddylist i got it to add the users but finding a socket in an array is troublesome here is what i have:

    if NthField(s,EndOfLine,1)="bud_off" then
    dim i as integer

    for i=0 to ssox.Ubound
    if ssox(i).handle=val(NthField(s,endofline,2))+4 then
    ssox.remove i
    dim s2 as string
    dim x as integer
    s2="budz"+endofline
    for x=0 to ssox.Ubound-1
    s2=s2+ssox(x).username+endofline
    next
    for x=0 to ssox.Ubound-1
    ssox(x).write s2
    next

    end if
    next
    end if

  2. Jean-Yves P

    Nov 10 Pre-Release Testers, Xojo Pro Europe (France, Besancon)

    you must go through the array in reverse order

    ...
    for i= ssox.Ubound downto 0
    ...
  3. Greg O

    Nov 11 Xojo Inc Somewhere near Raleigh, NC

    Or just decrement i after the Remove statement with

    i = i - 1
  4. 6 days ago

    i used this and it worked

    if NthField(s,EndOfLine,1)="bud_off" then
    dim i as integer
    window1.listbox1.DeleteAllRows
    for i=0 to ssox.Ubound
    if ssox(i).tag=val(NthField(s,EndOfLine,2)) then
    ssox.remove i
    dim s2 as string
    dim x as integer
    s2="budz"+endofline
    for x=0 to ssox.Ubound-1
    s2=s2+ssox(x).username+endofline
    next
    for x=0 to ssox.Ubound-1
    ssox(x).write s2
    next
    end if
    next
    end if

    if NthField(s,

  5. i also needed help with this, im trying to put new text into a textarea

    if NthField(s,EndOfLine,1)="msg" then
    textarea1.Text=textarea1.text+ NthField(s,endofline,2)+": "+NthField(s,EndOfLine,3)+endofline
    end if

  6. nevermind i got that figured out too

  7. Dave S

    Nov 13 San Diego, California USA

    use AppendText

  8. 5 days ago

    anyone know how to stream a microphone and video?

  9. 4 days ago

    shao s

    is not verified Nov 15 Sudbury, Ontario, Canada

    You might want to start a new thread for your new question.. Make sure to do a search of the forums first, to see if the question has already been asked and answered.. :)

  10. Tim P

    Nov 15 Pre-Release Testers, Xojo Pro ⭐️

    https://forum.xojo.com/44246-streaming-mic-and-video

  11. sorry im new to this forum stuff.

  12. shao s

    is not verified Nov 15 Sudbury, Ontario, Canada

    All good.. Due to the way I browse the forums, I didn't see your new thread until after I posted the suggestion.. The reason we use new threads for new questions, is the first question someone may not know about so they skip over the thread, but they may be the person that can answer the second question (I'm not that person though, sorry ;) )

or Sign Up to reply!