Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dream of buffers
Message
De
04/11/2010 09:27:43
 
 
À
04/11/2010 08:51:28
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01488144
Message ID:
01488206
Vues:
31
>It has all it's ups and downs. The multi .TABLES operation need a lot of manual coding to run properly, The main problem is to figure out if something fails. The Tableupdate logic is not very nice here. I do the one cursor one target logic on an other problem (simply to many fields for one cursor (-.-) ) - I'm unhappy with it either.
>
If you are faced with non-1:1 multitables again, think about a
Select x.x1, a.x2,  a.fk, Space(LenFieldy1) as Y1, Space(LenFieldy2) as y2 from a
and afterwards in a specific method
Update (this.Alias) set Y1 = Y.Field1, Y2 = Y.Field2 from (this.Alias) Join Y on fk = Y.pk
setting Y to a second cursor if it can be modified in the form, otherwise use the base table as Y.
Works for a lot of scenarios I encounter, especially for role-based models (many persons in different roles in one datarecord)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform