Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Create Sub Methods or Process in Form Methods
Message
De
22/03/2018 16:50:06
 
 
À
21/03/2018 15:42:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01658879
Message ID:
01658941
Vues:
44
>>Hi,
>>I have a Form Named "Form1" in which there is a command Button 'Process'.
>>Inside the CLICK of Command Button I am executing various methods for my process one by one like
>>
>>Thisform.pspagecount()
>>Thisform.Compress()
>>Thisform.ps2PDF()
>>Thisform.unmark()
>>
>>It is fine unless my codes inside these all methods are small and little
>>
>>However, I need to call several other routines and methods from my Compress(). I mean to say that there are many components of Compress() which I need to call. If I include all routines and Methods in Thisform.Compress(), it is becoming Messy and not properly understandable.
>>
>>What is the proper solution to the above.
>>
>>I have several Methods routines etc which I need to call from Inside Compess() and Finally return Back to the original Track
>>
>>Thanks as Always
>>Harsh
>
>For methods that can only be called from one method (say 'compress'), we use '_' + step index + '_' + step; eg.:
>
>compress_1_prepare
>compress_2_compute
>compress_3_compare
>...
>
That is fine, but I am having an apprehension that calling various methods may take more processing time as compared to putting the stuff in one method.
Is it so or I am thinking wrong ?
Harsh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform