Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modifing classes
Message
De
26/12/1997 17:51:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/12/1997 17:44:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00068012
Message ID:
00068031
Vues:
33
>>>>>Frequently after running a form, when I go to the pj to modify one
>>>>>of the classes used in the form (or the form class itself) I get the
>>>>>error "cannot modify class in use" (syntax may be wrong). I spent
>>>>>many hours trying to figure out where it was in use, but then
>>>>>discovered that I can modify a sub-class of the forbidden class, then
>>>>>then forbidden class can be modified.
>>>>>
>>>>>Example:
>>>>>
>>>>>run client.spx
>>>>>modify class frmBase --- error
>>>>>modify class frmData --- subclass of frmBase used by client.spx
>>>>>close frmData
>>>>>modify class frmBase --- works fine now
>>>>>
>>>>>What am I missing?
>>>>>
>>>>>TIA
>>>>
>>>>Correction
>>>>
>>>>Example:
>>>>
>>>> run client.spx
>>>> close client.spx
>>>> modify class frmBase --- error
>>>> modify class frmData --- subclass of frmBase used by client.spx
>>>> close frmData
>>>> modify class frmBase --- works fine now
>>>>
>>>> What am I missing?
>>>>
>>>> TIA
>>>
>>>Addition:
>>>
>>>I have tried disp memo, list objects, clear all, close all, everything possible.
>>>There is no object. If there were, I could not modify frmData. And I don't
>>>do ANYTHING AT ALL between modify class frmDATA and modify class frmBASE EXCEPT
>>>closing frmDATA.
>>As far as I can understand your frmData is based on frmBase and is open at that time, right ? If so frmData is already using frmBase class.
>
>Nope.
>after running and releasing the form, I try to modify frmBase, but I can't
>because it's in use (it isn't but VFP5.0a thinks it is). In order to get VFP
>to recognize that it's not in use I just modify a sub-class of frmBase (any one
>will do), close it then try to modify frmBase again, and it works fine.
It's so strange. I would like to learn the reason too. Didn't face at all.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform