Windows 7 64-Bit
Man kann keine Prozeduraufrufe in FormatNumber() mit PB 32-Bit verwenden.
Mit der 64-Bit Version funktioniert es ohne Fehler.
Peter
EDIT - Englisches Forum Link:
https://www.purebasic.fr/english/viewto ... =4&t=71378
Code: Alles auswählen
EnableExplicit
Procedure.s Thousend()
ProcedureReturn ","
EndProcedure
Procedure.s Decimal()
ProcedureReturn "."
EndProcedure
Define c.i
For c = 998 To 1002
Debug FormatNumber(c, 0, Decimal(), Thousend())
Next
;PureBasic v5.62/70 Beta 1 - 32-Bit
; Executable type: Windows - x86 (32bit, Unicode, Thread, Purifier)
; Executable started.
; [Debug] 998,000000000000000000000000000000...
; [Debug] 999,000000000000000000000000000000...
; [ERROR] Line: 13
; [ERROR] Invalid memory access. (Read error at address 0)
;PureBasic v5.62/70 Beta 1 - 64-Bit
; Executable type: Windows - x64 (64bit, Unicode, Thread, Purifier)
; Executable started.
; [Debug] 998
; [Debug] 999
; [Debug] 1.000
; [Debug] 1.001
; [Debug] 1.002
; The Program execution has finished.