Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selected Records in List Box
Message
De
18/07/2001 05:11:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/07/2001 02:44:51
Ashish Patel
Hindustan Petroleum
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00531873
Message ID:
00531885
Vues:
11
>We are having a form in which we are using list box to show the customer No and Name (we call this list box if the user doesn't know customer no as a help and will be shown only if user clicks the help button next to customer No. text box)
>
>Now there are around 15000 records is customer master. Customer Master is having 56 fields. Now we want to filter out certain customer who are marked by a field call TV_OUT or CTA_OUT. So if any of these fields are not empty then this customer should not be displayed in the help listbox. We have used listbox wizard to have custno and name from customer master into listbox.
>
>We are using free tables in our project. If we filter the customer table then listbox display will be very late after we click help button.
>
>How can we make it fast ? Pl. Help
>
>Thankx in Advance.
>
>Reagrds
>
>Ashish Patel

Ashish,
Use SQL as rowsourcetype.
*Listbox.init && All props are at their default
with this
 .RowsourceType=3
 .Rowsource = 'select CustName, CustNo '+;
  ' from Master '+;
  ' where !(TV_OUT == "" and CTA_OUT == "") '+;
  ' into cursor crsListMaster'
 .ColumnCount = 2 
 .BoundColumn = 2
 .ColumnWidths = '100,50'
 .Controlsource = 'mytable.custno' 
endwith
PS: empty() is not optimizable.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform