Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set filter alternative
Message
De
14/05/2007 06:55:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01225061
Message ID:
01225166
Vues:
26
>I heard advices on this forum thats is not wise using set filter
>
>How could I replace the line below with set relation command ?
>I am using it in a form with cursors in its dataenvironment
>
>Regards
>
>Moses
>
>SET FILTER TO ALLTRIM(UPPER(FATHER_TABLE.type)) = ALLTRIM(UPPER(child_TABLE.type))

Is "child" a grid and have an index on upper(type)? If so then:

*Grid
ChildOrder: tagname here which has key upper(type)
LinkMaster: father_table
RelationalExpr: upper(type)

Relation approach:
set realtion to upper(type) into childTable in fatherTable

Set key to approach:
set key to upper(fatherTable.Type)

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