Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse Fields with ClassLibs & disappearing Class Column
Message
De
20/02/2007 17:49:22
Hans-Otto Lochmann
Dr. Lochmann Consulting Gmbh
Frankfurt, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01197216
Message ID:
01197456
Vues:
13
>>well, I also have VFP9SP1 (I checked VERSION(4) = 09.00.0000.3504), which I re-installed before Xmas. Maybe I did something wrong, because the first example worked with the previous installation quite well. I tried your proposal, which again produced 4 columns instead of 5, but this time the objname column was missing.
>>
>>Therefore I put an X behind each name, in effect changing each name. Now this
>>
>>...
>>Browse Nowait Fields ;
>>  objnameX   = (objname)   :20,;
>>  classX     = (class)     :20,;
>>  classlocX  = (classloc)  :15,;
>>  baseclassX = (BaseClass) :20,;
>>  parentX    = (Parent)    :20 ;
>>  Name oBr
>>...
>>
>>did it as requested: It showed 5 columns. As I have now a working solution we should leave the following question unanswered:
>>Why does the original version work on your machine (and on Naomi's, see my answer to her) and on my old installation, and why does it not work on my newly installed VFP9SP1?
>>By the way: everything else seems to work well.
>>
>>Again, many thanks for your efforts.
>
>I've tested in VFP8 Sp1.
>
>Try
>
>CLEAR ALL
>=MESSAGEBOX(class) && Does it give an error?

just as a reminder: I have opened a ClassLib as a table like
use myClassLib.vcx
As far as CLEAR ALL is concerned, the Visual FoxPro Help says:
"... Releases from memory all variables and arrays and the definitions of all user-defined menu bars, menus, and windows. CLEAR ALL also closes any tables, including all associated index, format and memo files, and selects work area 1..."

So after CLEAR ALL neither the table aka ClassLib nor any of its fields are available anymore. Naturally MESSAGEBOX(class) will yield an error AFTER the CLEAR ALL command. It does not after the USE and before the CLEAR ALL.

Sorry,

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

Click here to load this message in the networking platform