Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Repository problem
Message
De
12/10/2000 13:02:19
 
 
À
12/10/2000 11:21:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Stonefield
Divers
Thread ID:
00428522
Message ID:
00428613
Vues:
26
Hi Steve.

>I am encountering an error when I try to add a field from the repository to a table (using version 5.1h). During the updating process the following message appears
>
>Error#: 13
>Message: Alias is not found
>Line#: 86
>Code: lcField=field(lnl,lcALias)
>Method: Validate
>Object: BASEMGR

I'm guessing here, but it's possible the version of DBCXMGR.VCX being used is out-of-date. Try copying DBCXMGR.VCX/VCT/H from \STONEFIELD\SDT\SOURCE to \VFE\VFEFRAME\LIBS and seeing if this still happens.

>One other thing. I'm not sure how renaming a field in the respository is suppose to work, but here is how it is working when I do it.
>- The field in the repository is renamed
>- the linked fields in tables are not renamed
>- the replinkfld in the sdtvmeta table reflects the new name
>- if I restore the original name, the replinkfld is changed, but
>- the prevname is not.

That's the way it's supposed to work. Although initially a field copied from the Field Repository to a table will have the same name as the Field Repository version, you can easily change the name in the table (eg. you might have an ID field in the Field Repository, but call it CUST_ID or ORDER_ID in tables it's copied to). So, renaming it in the Field Repository maintains the link (hence REPLINKFLD being updated) but doesn't rename the field.

That said, I'll make a note to myself for a future release to add a preference option that you can set to have it rename fields in tables linked to the Field Repository if they haven't been renamed in the table (that is, if ID exists in CUSTOMER and you haven't renamed it to CUST_ID, renaming the Field Repository field will rename CUSTOMER.ID if this option is turned on).

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform