JavaScript Editor js editor     Web development 



Main Page

You can compare how IF statements differ between Visual FoxPro and other programming languages. The THEN clause is allowed only on the IF statement in Visual FoxPro.

Visual FoxPro BASIC

IF nCnt < nMax

nTot = nTot * nCnt

nCnt = nCnt + 1

ENDIF

If nCnt < nMax Then

nTot = nTot * nCnt

nCnt = nCnt + 1

End If

Pascal C/C++

if nCnt < nMax then

begin

nTot:=nTot * nCnt;

nCnt:=nCnt + 1;

end

if(nCnt < nMax) {

nTot *= nCnt;

nCnt++;

}

See Also



JavaScript Editor js editor     Web development