Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return .f. in Init Fox Equivalent
Message
De
11/01/2006 20:48:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01085894
Message ID:
01085919
Vues:
18
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform