Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This is not recommended, but can I get away with it?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00672392
Message ID:
00672490
Vues:
8
This message has been marked as the solution to the initial question of the thread.
Steve,

Is your FORM named Agency? If that's the case just rename your form. You should be able to look in the debugger to see what kind of object Agency is.


>I have a DBF named Agency
>In the Agency DBF...
>I have a field named Agency
>I have an index named Agency
>
>After I SCATTER MEMVAR MEMO and THISFORM.Refresh
>I get the error Data Type Mismatch.
>
>The Locals Window shows Agency as OBJECT
>The Locals Window does not show Agency as CHARACTER FIELD.
>That causes the error Data Type Mismatch. I proved this when
>I renamed the Agency field to Agency _ID and the error disappeared.
>
>Is there any way I can use the same name for a DBF and a field and an index? I know it's not good practice or it may be illegal, but so many applications use the Agency DBF that changing the field name would cause an avalanche of changes in other projects and forms.
>
>Any way to get this to work without changing the field name? Thanks for your ideas?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform