Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't be double jointed?
Message
De
08/07/1998 16:06:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
06/07/1998 15:01:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00114637
Message ID:
00115459
Vues:
16
>Views are not stable in intricate situations. Probably, this is one of them. The feasible (there other ones) workaround is following:
>1. Make view based on just one 'trips' table, or you can even use just this table itself (no view at all).
>2. If I remember right, you want to bring the data into grid. So, you make Grid.Recordsource="trips"
>3. You have two columns which should show data from two other tables, and you set custom controlsources for these columns:
>Grid.ColPickup="Thisform.SetCustomColumn(trips.pick_up)
>Grid.ColDropoff="Thisform.SetCustomColumn(trips.drop_off)
>4. Form.SetCustomColumn method
>LParameter nLocationid
>Select Location
>Set order to tag lockey && it's faster to use SEEK() function here
>Seek nLocationid
>Return Location.Loc

Even more classical solution would be to use the location table twice (aliases, say, Location and Location2), and have

Grid.ColPickup.controlsource="iif(seek(pick_up,'location'), location.loc, '')
Grid.ColDropoff.controlsource="iif(seek(drop_off,'location2'), location2.loc, '')

...without any additional function to write. The view remains, of course.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform