realbasic-nug.it
[Top] [All Lists]

Re: Listbox

To: REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware dot com>
Subject: Re: Listbox
From: Lucio Liberi <lucioing at tin dot it>
Date: Thu, 18 Jan 2007 00:39:46 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot it at lists dot realsoftware dot com
References: <3C32ACD8-27F8-496B-937A-3D8AB7C6BAF8 at tin dot it> <8B1F4257-80DE-4852-B2DB-05B4E61E59E8 at tin dot it> <8BF04970-710A-4257-B919-A2B70DA88E2C at yahoo dot it> <C6CF8C0A-BD3A-492B-8279-4188D1E35250 at tin dot it> <AD155253-3871-43C0-BD2A-4EA81646D95D at yahoo dot it> <40B1630B-82DE-4962-89F3-883512E6330C at tin dot it> <ED3BB116-2CE0-4F43-966D-FD28206B2CB7 at yahoo dot it> <3AE6D839-82B0-4107-A8CA-94E55FCC4867 at tin dot it> <F92048DA-4D71-494E-9D65-7551711CDABA at yahoo dot it> <76B662AB-4F07-417E-AFC7-863F1D6235E4 at tin dot it> <9FD793E9-45E9-4D29-BBE3-9C59274B21DE at yahoo dot it> <EB1D2A9A-F15E-4485-886C-185B3F7875FF at tin dot it> <ECB69533-8CAA-4442-8972-1953783E1AF8 at yahoo dot it> <152788E1-5779-48BD-9D91-96E8863A50A9 at tin dot it> <1AB3A392-B2F7-448D-BDC5-731C244257E0 at yahoo dot it>
Ma no, Massimo...
Quando voglio ordinare per Importo, scrivo:


  Dim rs as RecordSet
  Dim SelectCard As String

  if PopupMenu2.Text="Tutte le carte" then
rs = myCCdatabase.SQLSelect("SELECT * FROM CreditCardOperations ORDER BY Importo")
  else
    SelectCard=PopupMenu2.Text
rs = myCCdatabase.SQLSelect("SELECT * FROM CreditCardOperations WHERE CreditCard='"+SelectCard+"'"+"ORDER BY Importo")
  end if

  App.FillListBox(OPListBox, rs)


questo il codice dentro un push button...

Il giorno 17/gen/07, alle ore 22:09, Massimo Valle ha scritto:


On 17/gen/07, at 21:54, Lucio Liberi wrote:

Mi serve per ordinare le date.

Infatti lo sospettavo, per quello che te l'ho chiesto.
Ma allora scusa, o io non ho capito bene il problema oppure a te sfugge qualcosa. Qualche email fa, dicesti che il problema non è ordinare gli IMPORTI nella listbox ma proprio ottenere un recordSet di IMPORTI ordinati. Questo nonostante tu facessi la query con il SORT sul campo importo. E qui io dissi che allora era un bug o quantomeno un comportamento non corretto.
Adesso però mi stai dicendo che il SORT lo fai per data....

Massimo


Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com



<Prev in Thread] Current Thread [Next in Thread>