Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mdot question
Message
De
05/04/2021 14:12:55
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
05/04/2021 13:06:53
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01679493
Message ID:
01679513
Vues:
56
>The array is not a memvar at all. It's more of a structure. The object is a memvar. It simply could not be a table field/column? Oh yes it can. I can make a column called A or a variable called A. We have the intelligence. Computers do not. Don't let them spend time figuring things out. Tell them.

Okay, internally it might be a structure - I do not care from my POV. It's something not a related to a cursor or related to an object in a method like THIS[FROM[SET]], I call it a variable, because I can alter with = or STORE.
CREATE CURSOR muh (lax I)
INSERT INTO muh values(1)
DIMENSION lax(1)
?lax(1)  && array cell
?lax[1]  && array cell
?lax	&&field
?lax	&&field
?m.lax  && array cell
Array access does not need mdot, so it's superflous
>Many people write this:
>
>select alias
>replace alias.fieldname with value.

>The alias in the replace line is rarely needed, but everyone seems to want to put it because, as they say it is safer. Why do that when it is not necessary, but ignore mdot when it certainly can be necessary?

Other people use waistband, belt and a pair of braces together - this only defines them as overcautious

select alias
replace alias.fieldname with value IN alias


Even if we assume that some crappy coded event alters workarea in the middle of the code, this is not good coding.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform