For loop syntax.

This forum is meant for questions about the Visual FoxPro Language support in X#.

User avatar
lumberjack
Posts: 729
Joined: Fri Sep 25, 2015 3:11 pm
Location: South Africa

For loop syntax.

Post by lumberjack »

Robert,
robert wrote:Alan,
Thanks for the video. I am looking into this
Just thought now about it. Did there not slip in an anomaly with preparing the Public release. None of us testing this with the FOX release gets the issue.
______________________
Johan Nel
Boshof, South Africa
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

For loop syntax.

Post by Karl-Heinz »

lumberjack wrote:Robert,
robert wrote:Alan,
Thanks for the video. I am looking into this
Just thought now about it. Did there not slip in an anomaly with preparing the Public release. None of us testing this with the FOX release gets the issue.
Hi Johann

good point. Maybe there´s a preproccessor problem with the public build ?

@Alan

what happens when you add the ENDFOR command directly to your source code ?

Code: Select all

Using System
Using System.Collections.Generic
Using System.Linq
Using System.Text
#xcommand ENDFOR  => NEXT    // <--------- add this line 

Function Start() As Void Strict
    
    ? "hello world! today is ",today()
	
    Local x As Int
	
    For x = 1 To 100
	? x
    EndFor
    
    Wait

Return	

regards
Karl-Heinz
User avatar
robert
Posts: 4558
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

For loop syntax.

Post by robert »

Guys,

Yes it is something like that. It works in the subscribers build and not in the public build. Very unfortunate.
I am working on this right now.
We will publish a new build (for both public and subscribers) in a few days.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
alanbourke

For loop syntax.

Post by alanbourke »

Adding the #xcommand fixes it.

BTW I am just doing some testing to help out - there is no urgency on my part to have this fixed.
User avatar
Chris
Posts: 4978
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

For loop syntax.

Post by Chris »

Robert,

This is very strange, because I am still in the public version (didn't switch back after I was testing it last week) and it works ok for me! Unless I have changed something later n which makes a difference. So what was causing the problem?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply