Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Great Bug in the Form?!
Message
 
 
À
24/04/2001 06:56:20
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00498911
Message ID:
00498968
Vues:
25
The SCT file that stores all the memo field data [including your methods and properties] is probably corrupted.

First, make a COPY of both the SCX and SCT files of your formset. Next issue the command:

COMPILE FORM FORMSETNAME [or COMPILE CLASS FORMSETNAME.SCX]

Modify your formset to see if your code is back in place. If that does not work, restore those 2 files from the copy you just made. Then try the following:
use myformset.scx
set alternate to scxcode.prg
set alternate on
list off methods, objname for not empty(methods)
set alternate off
set alternate to
use
modi comm scxcode
This will at least provide you with the method code that is recoverable so you can start piecing it all back together. This will not be an easy or quick process, but it can save some of the code.

Next, I [as well as many others] do not use formsets. We only use forms. The immediate benefit I see to this in your case is that you would have only lost the work of 1 form instead of 3. The second advantage is performance. You only run the form you need when you need it.

>Today, I find a strange problem/bug in my vfp formset.
>My FormSet got 3 little forms,One main forms.
>In the Main Forms, It got many method.
>e.g FieldValidation(), Print(), DeleteValidation()..etc.
>
>The Strange problem is:-
>The content (the coding) in the method of "Print()" is exchanged with
>The content (the coding) of the method DeleteValidation().
>
>More, content of A() exchange with the content of C()...
>the content of D() exchange with the content of W()....etc.
>
>What happended ???
>I am really worried that , all of My coding is lost.
>
>Please Help.
>Thanks.
>From Agnes
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform