WE thread processing

I have a thread in WE which creates a listbox with the letters A-Z

for i as integer = 96 to 96+26
listxxx.addrow chr(i)
next

when I run this outside a thread I get a listbox with a-z
when I run this IN a thread, i get all the letters but not in alphabetic order?

Anyone any ideas?

I’m guessing you don’t actually need to load a listbox with A-Z and are experimenting with theory.

Just because you can access the UI in WE doesn’t mean you should.
Keep your data and UI separate, and load the data into the UI when it’s ready.

[quote=297574:@dave duke]I have a thread in WE which creates a listbox with the letters A-Z

for i as integer = 96 to 96+26
listxxx.addrow chr(i)
next

when I run this outside a thread I get a listbox with a-z
when I run this IN a thread, i get all the letters but not in alphabetic order?

Anyone any ideas?[/quote]
Actually the problem is that while messages are sent sequentially from the server, they are not guaranteed to arrive at the browser in the same order. Use your thread to append to an array and then user a WebTimer to pull items off the bottom of the array and send them to the browser. it’ll work much better that way.

By who?

If you’re referring to this post: https://forum.xojo.com/36229-web-edition-accessing-sessions/p2#p297527 you’ve misunderstood it.

Edit: I see where you got the idea, however the poster who told you to do so was mistaken.

Deleted my post to ask my question in that same thread as Dave’s.