Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List of commands that create or alter a variables values
Message
De
23/08/2001 23:24:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00548407
Message ID:
00548447
Vues:
11
Hi Nadya,

Thanks for your feedback. It looks like I'm in the ball park with my lists. BTW, you and I are on the same page with respect to 'declare, dimension, local' (they are actually buried in the current lists, sometimes separated by the '|' symbol where one or more commands are similar). Likewise for array functions (vs. commands) which I mentioned in my original (uncorrected) post.

I'm not sure I agree with your suggestions for CreateObject or NewObject. I would interpret these as 'functions' vs. commands, i.e. you have to assign the return value from these functions to a variable via an assignment statement vs. calling these functions as commands. Although, to quote Dennis Miller, I could be mistaken.

Regards,
Malcolm


>Two additions, which I've just thought:
>
>declare/dimension, local array, CreateObject, NewObject...
>
>BTW, I don't see in your list array functions. There are lots of them:
>afields, adbobjects, alines, etc.
>
>>This email updates my orignal email's list of commands by adding the following commands: Lparameters, Parameters, Function, and Procedure.
>>
>>Here is my short list of VFP commands/syntax that create, release or potentially update variables. Note that in the following list, VAR is used to describe simple, scalar variables, arrays, or objects. I recognize that my grouping of commands into contemporary and deprecated (commands that we should no longer use) is highly subjective.
>>
>>Contemporary commands:
>>- Assignment statements: VAR = expression
>>- Average|Calculate|Count|Sum expression [, expression ... ] to VAR [, VAR ... ]
>>- Copy to array VAR ...
>>- Do myfun with VAR [, VAR ... ] // forces variables to be passed by reference
>>- Explict passing of variables by reference: myfun( @VAR [, @VAR ... ] )
>>- Function myfun( VAR [, VAR ... ] )
>>- For [ VAR = ... | each VAR in ]
>>- Lparameters VAR [, VAR ... ]
>>- Paramaters VAR [, VAR ... ]
>>- Procedure myfun( VAR [, VAR ... ] )
>>- Public|Local|Dimension VAR [, VAR... ]
>>- Scatter [ memvar | to VAR| name VAR ]
>>- Select ... into array VAR
>>- Set textmerge to VAR memvar // new in VFP7!
>>- Store expression to VAR [, VAR ... ]
>>
>>Deprecated commands:
>>- @ ... get VAR
>>- Accept ... to VAR
>>- Clear memory
>>- Declare VAR [, VAR ... ] // Dimension is the 'prefered' syntax
>>- Private VAR [, VAR ... ] // does not create vars, but hides visibility
>>- Release [ like pattern | except pattern ]
>>- Restore from ... [additive]
>>- Set Udfparms to reference // Udfparms 'should' be set to value
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform