fbpx
Welcome, Guest
Username: Password: Remember me
This public forum is meant for questions and discussions about Visual FoxPro
  • Page:
  • 1
  • 2

TOPIC: For loop syntax.

For loop syntax. 01 Oct 2019 11:47 #10999

  • lumberjack's Avatar

  • lumberjack


  • Posts: 680
  • 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
    George, South Africa

    Please Log in or Create an account to join the conversation.

    For loop syntax. 01 Oct 2019 12:20 #11000

  • Karl-Heinz's Avatar

  • Karl-Heinz


  • Posts: 550
  • 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 ?

    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

    Please Log in or Create an account to join the conversation.

    For loop syntax. 01 Oct 2019 12:53 #11001

  • robert's Avatar

  • robert


  • Posts: 1678
  • 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

    Please Log in or Create an account to join the conversation.

    For loop syntax. 01 Oct 2019 13:00 #11002

  • alanbourke's Avatar

  • alanbourke

  • Topic Author


  • Posts: 20
  • 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.

    Please Log in or Create an account to join the conversation.

    For loop syntax. 01 Oct 2019 16:32 #11005

  • Chris's Avatar

  • Chris


  • Posts: 1878
  • 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?
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1
    • 2