Graphics

 View Only
  • 1.  Visual Logic "String Position" always returns 0

    Posted 05-24-2016 22:25

    Are there any known issues with the "String Position" function inside visual logic? No matter what I do it the output is always 0. Here is a very simple example to demonstrate: say I want to find the position of the Substring dog inside of the full String the dog is brown. I expect the function to return the position 5, but the function returns 0. Am I doing something wrong? I have even tried searching for individual letters but still no luck.



  • 2.  RE: Visual Logic "String Position" always returns 0

    Posted 05-24-2016 23:26
    Make sure in the viewport you have the blue diamond clicked to enable the viewport.. Without it turned on the visual logic does not actually execute..
    I just tried it in 6.2 and the string position block is working for me
    #XPression


  • 3.  RE: Visual Logic "String Position" always returns 0

    Posted 05-25-2016 15:30
    Thank Bford, clicking the Blue Diamond fixed the issue. It is strange that the Viewpoint prevents visual logic from executing internal functions like my example which is not using any information from the graphic.
    #XPression