Pieter Posted August 25, 2006 Share Posted August 25, 2006 expandcollapse popup(...) ; Show input dialog $destfldr = FileSelectFolder("Choose the source directory.", "", 1) ; Add slashes if needed $destcuttingtest = StringRight($destfldr, 1) If Not ($destcuttingtest = "\") Then $destfldr = $destfldr & "\" EndIf ; Update GUI if needed If Not ($destfldr = "\") Then GUICtrlSetData($drivecfg_destinput, $destfldr) EndIf Case $msg = $drivecfg_cancelbutton ; Kill the GUI GUIDelete("USBsyncer v " & $version & " - Drive configuration") ExitLoop Case $msg = $drivecfg_writeconfig GUICtrlSetState($drivecfg_wait, $GUI_SHOW) ; Add slashes if needed $srccuttingtest = StringRight($srcfldr, 1) If Not ($srccuttingtest = "\") Then $srcfldr = $srcfldr & "\" EndIf $destcuttingtest = StringRight($destfldr, 1) If Not ($destcuttingtest = "\") Then $destfldr = $destfldr & "\" EndIf ; Determine the destination drive by cutting the destination folder string $destdrive = StringLeft($destfldr, 3) ; Destroy unneeded strings from older version in the settings file ;~ If Not (IniRead($destdrive & "USBsyncer.ini", "USBsyncer", "sync", "error") = "error") Then ;~ IniDelete($destdrive & "USBsyncer.ini", "USBsyncer") ;~ EndIf ; Write the settings $targetini = $destdrive & "USBsyncer.ini" IniWrite($targetini, "IMPORTANT", "PleaseRead", "Please don't delete/change this file. It's being used by USBsyncer, a folder synchronization utility. Unless you're sure that you don't need this file anymore, stay away. :)") IniWrite($targetini, "general", "UID", $uid) IniWrite($targetini, "general", "version", $version) ;This is line 433 IniWrite($targetini, "sync", "src", $srcfldr) IniWrite($targetini, "sync", "dest", $destfldr) (...)Why do I get this error message? I checked it, all "Func" statements have matching "EndFunc" 's. iPod + Online calendars = iPodCALsync Link to comment Share on other sites More sharing options...
ZoneX Posted August 25, 2006 Share Posted August 25, 2006 see in your targetini Link to comment Share on other sites More sharing options...
MHz Posted August 25, 2006 Share Posted August 25, 2006 The 1st fault up to line 433, and not necessarily including line 433. Look from line 433 and backwards as error triggirs another. Link to comment Share on other sites More sharing options...
ivan Posted August 26, 2006 Share Posted August 26, 2006 A fast way to see your problem visually is to toggle all folds in Scite (under the view menu). all funcs will toggle until you get to the one where the problem stars... open it and toglle the most inner folds if...endif, while...wend and so on, to the most outer folds. You'll eventually get to the one breaking the sequence. Long scripts can be a real brain toddler if you see what i mean. IVAN Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Link to comment Share on other sites More sharing options...
Pieter Posted August 26, 2006 Author Share Posted August 26, 2006 I still don't get it, but the error went away after doing some code editing. iPod + Online calendars = iPodCALsync Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now