Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compound Index
Message
 
À
17/08/1997 01:57:39
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00044576
Message ID:
00045214
Vues:
51
>> i've seen some bad vfp, but most of it has been by bad clipper programmers
>> i've had to work with...
>
>Fairly true, the most of the bad fox comes from ex-clippers. The really
>worst one (i have it on my 5.25 floppies somewhere in cenosoic) was
>doing it like this.
>do while .t.
> if some_condition=1
> @ 1,1 say "some prompt"
> @ 1, 15 get some_var
> Read
> do case
> case readkey()...
> endcase
> if some_condition=2
> @ 3,1 say "another prompt"
> @ 3, 15 get another_var
> Read
> do case
> ....
> endif
>endd
>
>Sounds a bit ex-cobol, eh?

Dragan, that sounds like 1985-era code when there was no VALID method in either Clipper or Fox. If you wanted to validate a field at data entry that was the only way to do it.

Of course it might be 1997 code with a 1985 PROGRAMMER ;-) We've ALL rewritten that kind of project.

Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform