[fpc-pascal] cocoa usage

2009-07-24 Thread Henrik Genssen
HI, I am trying to get into cocoa... using lazarus from svn TRUNK I get some files in lcl/units/i386-darwin/cocoa a lazarus wiki page says get all stuff from lazarus-cc at sf: http://wiki.lazarus.freepascal.org/Cocoa_Interface http://wiki.lazarus.freepascal.org/PasCocoa#Subversion now I have du

[fpc-pascal] cross compilation for armv5 processor

2009-07-24 Thread Евгений
Hello, I need to compile my application for marvell processor 88F6281.(NAS QNAP TS-119) Cross compiler build succesfully by command: sudo make all install OS_TARGET=linux CPU_TARGET=arm BINUTILSPREFIX=/home/sem/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- NOGDB=1 OPT='-O- -gl'

Re: [fpc-pascal] "VAL" and i18n

2009-07-24 Thread Michael Van Canneyt
On Fri, 24 Jul 2009, Jonas Maebe wrote: On 24 Jul 2009, at 10:30, Torsten Bonde Christiansen wrote: It look like "Function TryStrToFloat(Const S : String; Out Value: Extended): Boolean" (extended version) is not documented. Is this because it's a 2.3.1 function or because it is not posibl

Re: [fpc-pascal] "VAL" and i18n

2009-07-24 Thread Jonas Maebe
On 24 Jul 2009, at 10:30, Torsten Bonde Christiansen wrote: It look like "Function TryStrToFloat(Const S : String; Out Value: Extended): Boolean" (extended version) is not documented. Is this because it's a 2.3.1 function or because it is not posible on all CPU's? Sorry, the latter. It'

Re: [fpc-pascal] "VAL" and i18n

2009-07-24 Thread Jonas Maebe
On 24 Jul 2009, at 10:30, Torsten Bonde Christiansen wrote: Oops, it's http://www.freepascal.org/docs-html/rtl/sysutils/strtofloat.html of course. Or http://www.freepascal.org/docs-html/rtl/sysutils/trystrtofloat.html if you don't want an exception if the conversion fails. It look like "Fu

Re: [fpc-pascal] "VAL" and i18n

2009-07-24 Thread Torsten Bonde Christiansen
Oops, it's http://www.freepascal.org/docs-html/rtl/sysutils/strtofloat.html of course. Or http://www.freepascal.org/docs-html/rtl/sysutils/trystrtofloat.html if you don't want an exception if the conversion fails. It look like "Function TryStrToFloat(Const S : String; Out Value: Extended): B

Re: [fpc-pascal] "VAL" and i18n

2009-07-24 Thread Jonas Maebe
On 24 Jul 2009, at 09:55, Jonas Maebe wrote: Trying to validate "1,2" (notice the comma - danish decimal separtor style) with val resulted in returning code = 2, i.e. that comma is the problem. Stepping through the code, it seem that in "fpc_Val_Real_ShortStr" the decimal separator is hard

Re: [fpc-pascal] "VAL" and i18n

2009-07-24 Thread Jonas Maebe
On 24 Jul 2009, at 09:29, Torsten Bonde Christiansen wrote: After fiddling around with some local text i came across something odd. Is it true that the "val" function does not care for person i18n settings? Yes. Trying to validate "1,2" (notice the comma - danish decimal separtor style)

[fpc-pascal] "VAL" and i18n

2009-07-24 Thread Torsten Bonde Christiansen
Hi List. After fiddling around with some local text i came across something odd. Is it true that the "val" function does not care for person i18n settings? Trying to validate "1,2" (notice the comma - danish decimal separtor style) with val resulted in returning code = 2, i.e. that comma is