kermit2006 Posted July 13, 2008 Share Posted July 13, 2008 (edited) Hi, i'm a new user from autoit and find not my mistake in the code. i want to multiplicate 2 var and write the in a new var $a_1 = $a_2/(1+$a_3) nothing happend $a_1 = $a_2 please can somebody help me? thx kermit2006 Edited July 13, 2008 by kermit2006 Link to comment Share on other sites More sharing options...
Developers Jos Posted July 13, 2008 Developers Share Posted July 13, 2008 what is the value of the used variables? How did you determine that the result is not correct? in other words: It helps when you post a scriptlet that can be run and shows your problem. muttley SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
kermit2006 Posted July 13, 2008 Author Share Posted July 13, 2008 here is my code, the mistake is in line 30. thx kermit ; __GET PATHS $SPLIT_DATE = StringSplit($a_DATE_FENSTER, "/") $YEAR=$SPLIT_DATE[1] $MON=$SPLIT_DATE[2] $DAY=$SPLIT_DATE[3] $a_DATE_FENSTER=$SPLIT_DATE[1]&$SPLIT_DATE[2]&$SPLIT_DATE[3] ;MSgBox(4096, "mon", $MON, 10) ;Read Global Counter $a_Counter = IniRead($counterfile, "count", "Count", "NotFound") ;Dateinamen zusammensetzen ;MSgBox(4096, "Counter", $a_Counter, 10) $neuer_dateiname=$a_Dokumentenart & "-" & $Firmenkuerzel & "-" & $YEAR & "-" & $MON & "-" & StringLeft($a_Autor, 1) & "-" & $a_Autor & "-" & $a_Number & "-" & $a_DATE_FENSTER & "-" & $a_Counter & ".pdf" ;MSgBox(4096, "neuer dateiname", $neuer_dateiname, 10) ;gehört nur bei folgenden dokumentenarten If $a_Dokumentenart="ERG" Then $a_ST = dec(1+$a_Steuersatz, 2) $a_NETTOBETRAG = Dec($a_BRUTTOBETRAG/$a_ST, 2) FileCopy ( $DATENDIR, $DOKLW & "\" & $a_Dokumentenart & "\MONAT\" & $MON & "\" & $neuer_dateiname , 8) FileCopy ( $DATENDIR, $DOKLW & "\" & $a_Dokumentenart & "\A-Z\" & StringLeft($a_Autor, 1) & "\" & $neuer_dateiname , 8) FileCopy ( $DATENDIR, $DOKLW & "\Autor\" & $a_Autor & "\" & $neuer_dateiname , 8) Filecopy ( $DATENDIR, $Sicherungslw & "\" & $neuer_dateiname , 8) $Csvdatei=FileOpen($DOKLW & "\" & $CSV_ERG, 1) FileWriteLine ( $Csvdatei, $a_Dokumentenart & ";" & $YEAR & "." & $MON & "." & $DAY & ";" & $a_Number & ";" & $a_Autor & ";" & $a_Steuersatz & ";" & $a_BRUTTOBETRAG & ";" & $a_NETTOBETRAG & ";" & "\\DATA_BH" & "\"& $a_Dokumentenart & "\" & "MONAT\" & $MON & "\" & $neuer_dateiname & @CRLF) FileClose($CSVDATEI) MSgBox(4096, "Kopien", $neuer_dateiname & " erstellt!", 10) Link to comment Share on other sites More sharing options...
kermit2006 Posted July 13, 2008 Author Share Posted July 13, 2008 (edited) this little program set a new filename with some parameters and wrote details of the parameters in a csv.file to import in excel i want to calculate two parameters. kermitsub1.au3ScanCoop.au3 Edited July 13, 2008 by kermit2006 Link to comment Share on other sites More sharing options...
Developers Jos Posted July 13, 2008 Developers Share Posted July 13, 2008 This script doesn't have 30 lines and is not complete as it atleast is missing an EndIF. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
kermit2006 Posted July 13, 2008 Author Share Posted July 13, 2008 i send the complete scirpt on min before thx kermit Link to comment Share on other sites More sharing options...
kermit2006 Posted July 13, 2008 Author Share Posted July 13, 2008 sorry i forget the parameter file, i pack all in this rar thx kermitSC.rar Link to comment Share on other sites More sharing options...
Developers Jos Posted July 13, 2008 Developers Share Posted July 13, 2008 i send the complete scirpt on min beforethxkermitOK, both scripts generate a bunch of errors when doing a au3check and am missing include files.Line 30 in both scripts do not really look like the initial post so still have no idea what your issue could be.You really need to try and post something people can run and replicate your problem with within having to put in effort to make it run first.Jos muttley SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
kermit2006 Posted July 13, 2008 Author Share Posted July 13, 2008 in the sc.rar is the complete code with all parameters, you will see the structure for doing in the settings.ini and globalsettings.ini. this little program will change the name from pdf-files and copy in some different places. at last, iwrite som information in a csv-file. i post this file. thx kermit Link to comment Share on other sites More sharing options...
kermit2006 Posted July 13, 2008 Author Share Posted July 13, 2008 (edited) csv-file with infos from the copyaction.itcs_erg04.txt Edited July 13, 2008 by kermit2006 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