Assignment Statements

You can compare how assignment statements differ between Visual FoxPro and other programming languages.

NoteNote

In Visual FoxPro, you can also assign values to fields in a table with the REPLACE command.

Visual FoxPro BASIC

nVal = 7

-OR-

STORE 7 to nVal

 CopyCode imageCopy Code
nVal = 7
Pascal C/C++
 CopyCode imageCopy Code
nVal := 7
 CopyCode imageCopy Code
nVal = 7

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic