
Hi
I have been storing my variables in a csv file and saving them at program exit and re-loading them again at program start.
Somewhere along the line of updates the following line of code seems to have stopped working for me ...
$txt = FileReadLine($filename)
I keep getting "Invalid expression construction: "location, tablet".
Now the "location, tablet" comes from my CSV but the Invalid expression must have something to do with my syntax... It had worked until my latest update...
Here's my code... it reads a text file listed below...Code:
$filename = "C:\EZB_Config.csv"
FileReadReset($Filename)
IF (FileExists($filename) = false)
Say("System Configuration file NOT found. Unable to establish location.")
Say("Manual location configuration required.")
cc( "Script Manager", ScriptStartwait, "Identify_Location" )
ENDIF
FileReadReset($filename)
$txt = FileReadLine($filename)
$Current_Location = Split($txt, ",", 1)
Print ("Establishing location as $Current_Location")
FileReadClose($Filename)
$Config_Filename = $Config_Pathway"\Config - Project.csv"
My CSV file simply has the followingCode:
Location, Tablet
Config Pathway, C:\Users\Wayne\Dropbox\My Robotics\Lawrence
Have I missed a syntax change.... or is it something else.
Any suggestions?
I've been so busy with a bunch of things - that I haven't been able to repair this ARC bug. Even with the new hires, we are still under staffed
Thanks DJ for your tireless efforts to keep us all happy ....
@Tameion