Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return .f. in Init Fox Equivalent
Message
From
11/01/2006 20:48:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01085894
Message ID:
01085919
Views:
19
>Could you please explain what you are trying to accomplish?
>I can't remember exactly what returning .F. from an init in VFP does.
>Are you trying to stop the object from being instantiated?
>Einar

return .F., in an Init() method in VFP, will avoid an object from being instantiated.

Examples, in VFP:
* Form.Init()
if gnUserLevel >= 3
  MessageBox("You are not authorized to view this form.")
  return .F. && The form doesn't show.
endif
* TextBox.Init()
if (some condition)
  return .F. && The TextBox never appears on the form.
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform