Sign in to follow this  
Followers 0
kermit2006

simple calculating

10 posts in this topic

#1 ·  Posted (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 by kermit2006

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

#4 ·  Posted (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.

kermit

sub1.au3

ScanCoop.au3

Edited by kermit2006

Share this post


Link to post
Share on other sites

i send the complete scirpt on min before

thx

kermit

Share this post


Link to post
Share on other sites

sorry i forget the parameter file, i pack all in this rar

thx

kermit

SC.rar

Share this post


Link to post
Share on other sites

i send the complete scirpt on min before

thx

kermit

OK, 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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

csv-file with infos from the copyaction.

itcs_erg04.txt

Edited by kermit2006

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0