Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progressive llRetVal check and code execution
Message
 
À
28/11/2005 11:55:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01072377
Message ID:
01072683
Vues:
23
Hi Cetin

>I don't think you need llRetVal variable.
>
>return ;
> dodefault() and ;
> THISFORM.pgf.Page1.txtIno.CheckForBadNextNo() and ;
> ...
>
Sorry I had not mentioned it but there are if conditions with code afterwards so I guess this method is out. But in short cases, yes.

>If you like if series and do not obey 'one return point' rule (I don't):
>
>

>if !dodefault()
> return .f.
>endif
>if !...
> return .f.
>endif

I was always told that multiple returns were bad (I was a heavy user of multiple returns reminiscent of old GWBasic days :)) Any practical pitfalls, or is it just theory that mutiple returns are bad?
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform