Jump to content

simple calculating


Recommended Posts

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
Link to comment
Share on other sites

  • Developers

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

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

  • Developers

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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...