Action Scripts
Action Scripts
The possible solutions: Either of them should work. But the option 2 is preferred.
thank you Srinivan,
I did place the file in that directory (C:\Program Files (x86)\wonderware\InTouch), without the file extension (txt) it still cannot find it, with the extension (Text.txt) I get no errors however the combo box is still empty. I can read the file and load the list using VB.Net in Visual studio from same directory, using Combobox1.Items.AddRange(File.ReadAllLines(C:\Program Files (x86)\wonderware\InTouch\Test"))
I have also tried to include the whole path in Combobox1.Loadlist("C:\Program Files (x86)/Wonderware\InTouch/Text.txt"), I get no error but the combox is empty.
Maybe there is format the file is supposed to have for the function Loadlist to be able to read the file.
Use double \\ in path like Combobox1.Loadlist("C:\\Program Files (x86)\\Wonderware\\InTouch\\Text.txt").
Use double \\ in path like Combobox1.Loadlist("C:\\Program Files (x86)\\Wonderware\\InTouch\\Text.txt").
I tried the double \\, it throws the same warning: Unable to load list from file C:\\Program Files (x86)\\Wonderware\\InTouch\\Test, Could not find file 'C:\Program Files (x86)\Wonderware\InTouch\Test'.
Jimmy Ndubani , You may share the screenshot of your script and folder showing the filename. That will help better understand the issue.
Specify the extension while passing the file path.. like Test.txt. Check my post above. You don’t see the extent of the files in your windows explorer as you didn’t set the settings to show them.
Hi, I did that and it did not work, I have escalated the issue to AVEVA. I will update as soon as possible