Information générale
Catégorie:
Codage, syntaxe et commandes
>Why do I get this error?
>
>My Form Init code:
>USE table1
>SELECT table1
>SCATTER NAME table1 MEMO
>
>On the form itself I have numerous textboxes with ControlSource set to
>m.table1.fieldname with "m.table1." preceding each fieldname in each textbox as a reference back to the table1 table.
>
>I thought SCATTER table1 MEMO would automatically create an object with the same name as my table?
>
>Help please. I must be close. I get the error "Object table1 is not found." several times when I run the app and it starts to display the form.
>
>Thanks so much.
Creating an object with the same name as your table is legal, but I think it would make it more confusing to a maintenance programmer picking up your code later on.
You might try creating a Form Property to hold the object so that it will retain visibility.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement