Jump to content

Listboxdaki Itemleri Alfabe Sırasına Göre Sıralama


turkoglu98
 Share

Recommended Posts

[code]db, err = SQLite3Connection:execute:("SELECT * FROM tablo_ismi WHERE id='3' ORDER BY ASC")[/code]

derseniz alfabetic sıraya yani A-Z şeklinde alır veriyi.

[code]db, err = SQLite3Connection:execute:("SELECT * FROM tablo_ismi WHERE id='3' ORDER BY DESC")[/code]

şeklinde alırsanız, Z-A sıralamasında alır.

Link to comment
Share on other sites

yanlız benim kodlar şöyle:

SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM user");
satir, err = SQLite3Cursor:fetch({}, "a");
while satir do
cKullanici = Crypto.BlowfishDecryptString(satir.user, anahtar)
result = ListBox.AddItem("ListBox1", cKullanici,"");

satir, err = SQLite3Cursor:fetch({}, "a");
end

ben kodu şöylemi değiştiricem

SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM user ORDER BY ASC");

Link to comment
Share on other sites

[quote]SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM user");[/quote]

bu satiri

[quote]SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM user ORDER BY ASC");[/quote]

şeklinde düzenlesen yeterli.

Edit: evet aynı şeyden bahsediyormuşuz :D

Link to comment
Share on other sites

hata verir çünkü eksik yazmışım, galetis uyardı sağolsun.

[code]SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM user ORDER BY sutun_ismi ASC");[/code]

olmasi gerekiyor. Sutün ismine göre veriyi çekmek lazım bu durumda

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...