Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error using CREATEOBJECT()
Message
 
À
30/12/1997 22:57:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00068534
Message ID:
00068550
Vues:
26
>Can anyone explain or give suggestions as to why the VFP compiler generates this error message when it comes across this piece of code?
>
>Error message: 'field' phrase is not found
>
>(code snippet)
>PUBLIC ofrmNew
>ofrmNew = CREATEOBJECT('frmNew') && <-- error at this line
>ofrmNew.Show
>
>Any help will be appreciated!
>Many thanks :)
>
>Mazlan Bin Mohammad
Mazlan,

That error is usually related to a list or combo that has a rwosourcetype of Fields and the rowsource is specified incorrectly. The most coommon error in the rowsource is using the alias on all the field names. For example if I want a list populated by Field1, Field2, and Field3 of the cursor MyTable, the rowsource would be;

MyTable.Field1, Field2, Field3

and not;

MyTable.Field1, MyTable.Field2, MyTable.Field3

the second one causes the field clause not found error.

So in conclusion go into your form class and checl out the lists and combos to be sure the rowsource is specified correctly.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform