Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion routine at the record-level in a data diction
Message
De
14/07/2007 14:34:45
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
13/07/2007 20:50:59
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01240412
Message ID:
01240464
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>When creating a data dictionary, would you include code at the record level to transform/convert the field value from the 1st table to the format needed for the 2nd table? It sounds logical to me, but I haven't seen anything quite like it before and wondered if it made sense. So, if a date came in as "20070101" the dictionary would have an algorithm in a field on that record to convert it to [2007^01/01] before populating the 2nd table. Just curious before I begin coding for it... Thanks!

I did that once, for a conversion routine - I made a mapping dictionary, with all the code in it. At runtime, I'd pick snippets from there (not all fields were there each time, so I had to pick), put them together in a .prg, pass the engine as a parameter (the engine was an isntance of a class which had all the needed routines as methods), and each snippet accepted that parameter (it was one huge with oThis... endwith block).

Accidentally, it was also medical administrative software - not HL7, though, it was ERAS.

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