Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Procedural Code
Message
De
30/10/1998 13:45:00
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
 
 
À
30/10/1998 13:31:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00152898
Message ID:
00152947
Vues:
27
Done, BINGO!

Thanks!

>I think if you take out the "DO", it will work...
>
>HTH
>
>>REALLY CLOSE! I think this will work but I am missing something
>>
>>I created a new method in the form called CHECKFORDELETE.
>>
>>I then added DO THIS.PARENT.CHECKFORDELETE to a button and VFP told me FILE: THIS.PARENT.CHECKFORDELETE DOES NOT EXIST
>>
>>What did I do wrong??
>>
>>>I'm not David, by ant means but where you now have do (procedure) delete it and replace with this.parent.newmethod that will exec the code in that method.
>>>
>>>HTH
>>>Jeff
>>>
>>>
>>>
>>>>If I do that how can I call the procedure from other controls (buttons)
>>>>
>>>> IF deleted()=.t.
>>>> Contact_Mgr.txtdeleted.visible=.t.
>>>> Contact_Mgr.detailsframe.enabled=.f.
>>>> Contact_Mgr.txtfirst_name.enabled=.f.
>>>> Contact_Mgr.txtlast_name.enabled=.f.
>>>> Contact_Mgr.txttitle.enabled=.f.
>>>> Contact_Mgr.txtcompany.enabled=.f.
>>>> ELSE
>>>> Contact_Mgr.txtdeleted.visible=.f.
>>>> Contact_Mgr.detailsframe.enabled=.t.
>>>> Contact_Mgr.txtfirst_name.enabled=.t.
>>>> Contact_Mgr.txtlast_name.enabled=.t.
>>>> Contact_Mgr.txttitle.enabled=.t.
>>>> Contact_Mgr.txtcompany.enabled=.t.
>>>> ENDIF
>>>> RETURN
>>>>
>>>>>Ian,
>>>>>
>>>>>Take out the PROC and ENDPROC that you pasted in there.
>>>>>
>>>>>>if I put the following code into a new METHOD of the form, VFP informs me METHODS CAN NOT CONTAIN NESTED PROCEDURES...
>>>>>>
>>>>>>*
>>>>>>* Deactivate deleted records edit fields on the Contacts from
>>>>>>*
>>>>>>PROCEDURE contactsdeletecheck
>>>>>>ENDPROC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform