Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optional parameters
Message
De
21/04/1997 14:32:57
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
 
À
21/04/1997 13:38:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00029127
Message ID:
00029148
Vues:
25
> > I have a form that I would like to open either with or without parameters. > Some forms call this form with a specific record in mind, from other forms, > the form should open and go to a default record. The problem is, if I have > issued a lparameters statement, and there were no parameters passed the > seek attempts to seek on an .F. and crashes. My question is, is there a way > to set a default value for a variable? When I try "If myvar = .F. then > myvar = 1 endif" it fails because myvar has already been assigned a boolean > datatype by default. How can I work around this? Try the PARAMETERS() function in your init to determine how many, if any, paramters were passed -- Matt McDonnell Conventional Wisdom - "If it ain't broke, don't fix it." Gates Wisdom - "If it doesn't work, sell it, and fix it later."
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform