Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 version of PreVFP historic code
Message
De
14/07/2004 10:48:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00922398
Message ID:
00924228
Vues:
34
Hi Bhavbhuti

>> I assume that it starts by initialising some variables, opening tables, setting indexes, defining the environment, etc. The next step would normally be to DO a form followed by a READ EVENTS followed by a tidy up routine.

>DO the menu and READ EVENTS I guess, there is no default form, just the desktop.

OK. So we have a menu to click on. This should have an Exit option with a CLEAR READ to close the program. What do you click on after starting the program?

>> I can't find a reference to an error "table is not accessible". Is the error message you get "Cannot access the selected table"? This is documented in the help file as "attempting to reference a file variable in a table that is not open" where file variable means field name. If so it would suggest that the table you are using has been closed in an earlier step.

>Yup I tried to keep the cursor open. There are some quirks with other related things and it is working to an extent, but now the selection fails, is it because the form is not released?

No. The problem has nothing to do with the form for the selection object. At what point do you get the error message? Is it before or after the selection object is displayed or is it when a selection is made? It is fairly easy to set up breakpoints in the code and view values of variables and test if dbfs are in use and so test that the code is doing what you expect. The problem is that with a framework, the code will not be as clear to you as if you had written it yourself.

>> If you want to email me your code, tables and the sequence you go through to generate the problem, I will be glad to take a look at it.

>That will be the whole jing-bang.

No problem, I have a big disk. It would be easier for me if we were looking at the same code. As an alternative, you could replicate the problem in a separate project that doesn't hold lots of code not related to the problem, though if this means lots of work it isn't worth it.

>Do I have to do a locate to get the selection (see above) details?

No. You would only need to do a locate/seek if you wanted to set up a default value, to be returned with minimum effort by the user.

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

Click here to load this message in the networking platform