Code: Select all
for x = 1 to 10
? x
next
Code: Select all
for var x = 1 to 10
? x
next
Post by Anonymous »
Code: Select all
for x = 1 to 10
? x
next
Code: Select all
for var x = 1 to 10
? x
next
Post by lumberjack »
Or you can just use a typical XBase style declaration:alanbourke wrote:It looks like all variables have to be declared, for example:... is fine in VFP as there's no static typing. In X# VFP the closest you can get would be this, right?Code: Select all
for x = 1 to 10 ? x next
Code: Select all
for var x = 1 to 10 ? x next
Code: Select all
local x
For x = 1 to 10
? x
endfor
// Alternatively
For Local x = 1 AS Int to 10