&& Command

Indicates the beginning of a nonexecuting inline comment in a program file.

&& [Comments]

Parameters

  • Comments
    Indicates that inline comments follow. For example:

    STORE (20*12) TO gnPayments  && 20 years of monthly payments
    

    Inserting inline comments to denote the end of the IF ... ENDIF, DO, and FOR ... ENDFOR structured programming commands greatly improves the readability of programs.

Remarks

Place a semicolon (;) at the end of each comment line that continues to a following line.

Note   In earlier versions of Visual FoxPro, you cannot place && and a comment after the semicolon that is used to continue a command line to an additional line.

Example

NOTE  Initialize the page number;
   variable.
STORE 1 to gnPageNum
* Set up the loop
DO WHILE gnPageNum <= 25  && loop 25 times
   gnPageNum = gnPageNum + 1
ENDDO  && DO WHILE gnPageNum <= 25

See Also

* Command | MODIFY COMMAND Command | MODIFY FILE Command | NOTE Command | & Command