Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thundering Train Programming
Message
De
19/01/2006 16:41:29
 
 
À
19/01/2006 16:28:02
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01088463
Message ID:
01088678
Vues:
28
>
lparameter tcEmpno
>
>May crash if there is a table open with a field named "tcEmpno". I mean if you're going to list the assumptions, might as well add the lack of mdot involves a big assumption.

Huh? I think you're wrong on this one. A crash won't happen on the lparameters line. Maybe later indeed, but not here. In the case of lparameters, the mdot is of no use.

>>>Interesting! It also assumes there is no field called tcEmpno at the lParameter line. ;) That's a tough one to debug too!
>>
>>Huh? Oh sorry. My first remark (It assumes a chartype parameter is indeed passed) is about the lparameter line, not about the 'do someroutine' line.
>>
>>>I've taken to doing a vartype on the parameters and issuing an error if the checks fail.
>>
>>Yes, but suppose the specs say that there will always be a character value passed...
>
>If I write code for other programmers to use, I can't be sure they will pass the parameters properly. If I
?SQRT("X")
VFP does give an error. What should my code do if you improperly pass parameters?
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform