Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progressive llRetVal check and code execution
Message
 
To
28/11/2005 11:55:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01072377
Message ID:
01072683
Views:
22
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
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform