Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New Order of instantiation.
Message
De
12/12/1998 13:01:48
George Lee
Microcomputer Engineering Services, Llc
Huntington Beach, Californie, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00166830
Message ID:
00166897
Vues:
18
Here are the steps we used to produce the error.


1. Create a test directory
3. Change into the test directory
4. At the command window, type CREATE TEST1
5. Add fields:
6. cFirst C(10)
7. cLast C(10)
8. When it asks to add records, say "Yes"
9. Add two records - Any names
10. Create a new form
11. Add a grid to it
12. Set the columncount of the grid to 2
13. Save the entire form as test_class in a classlibrary called test_class
14. Change your settings to create a new form based upon the class test_class in the library test_class
15. In the Load event of the form, put the following line:
16. "USE Test1 ALIAS Test_newAlias"
17. Set the recordsource of the grid to "Test_newAlias"
18. Set the controlsource of Column1 to "Test_newAlias.cfirst"
19. Set the controlsource of Column2 to "Test_newAlias.clast"
20. Run the form ---- If you are in VFP 5.0 it will work ---- If you are in VFP 6.0 you will get the following error:
<\text>
Error loading file - record number 3. Test_class1 < or one of its members>.ControlSource : Alias 'TEST1_NEWALIAS' is not found.

One side note is that the alias 'TEST1_NEWALIAS' can not exist an open DBC or be a free table in the path. VFP seems to be able to find the table and resolve the problem. It also seems to be only a problem with the grid. We could not reproduce the problem with text boxes.

Is it possible this is fixed in the most recent service pack. We ran the service pack update but our version is still 06.00.8167.00 for Windows[Jun 16 1998 08:27:50]. Maybe we're looking at the wrong thing to determine if the update took.


>Do you have a custom property named RecordSource on the classes involved? There are some issues where if VFP6 added a property to the BaseClass it messes things up. The Grid doesn't exist yet at either Load or DE methods. The error might also be a real red herring and not indicative of the real root cause. Are you sure it can find all the classlibs?

>snip<

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

Click here to load this message in the networking platform