Re: [fpc-pascal] FPC scripting suport
On Wed, 28 May 2008, MihaiR wrote: > Hello all, > > Is there any component for FPS/Lazarus I can succesfully > use for scripting? I'd like to build an application that > can be enhanced by some simple functions stored into an > external script file so that functions can be edited. There > are simple functions with few parameters and which return > the result to the main application. > It is something like VAT calculation: main (compiled > application send price to the script function and script > function returns the VAT value). Of course this is a > simplified example, on my situation there are many > functions and I want one function to have configurable > formula content. Remobjects PascalScript works with FPC. (it used to be innerfuse pascal) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC scripting suport
Le May 28, 2008 à 12:00 PM, MihaiR a écrit : Hello all, Is there any component for FPS/Lazarus I can succesfully use for scripting? LUA is very powerfull. I used it in my app for months and it works very well. I'd like to build an application that can be enhanced by some simple functions stored into an external script file so that functions can be edited. There are simple functions with few parameters and which return the result to the main application. It is something like VAT calculation: main (compiled application send price to the script function and script function returns the VAT value). Of course this is a simplified example, on my situation there are many functions and I want one function to have configurable formula content. Thank you very much. Best regards, Mihai -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC scripting suport
Le May 28, 2008 à 12:30 PM, Henry Vermaak a écrit : 2008/5/28 Damien Gerard <[EMAIL PROTECTED]>: Le May 28, 2008 à 12:08 PM, Michael Van Canneyt a écrit : Remobjects PascalScript works with FPC. (it used to be innerfuse pascal) Just for my information does it work under Linux *and* OS X ? i386 linux and win32. powerpc-darwin also works. Is i386-darwin planned ? -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC scripting suport
2008/5/28 Damien Gerard <[EMAIL PROTECTED]>: >> >> i386 linux and win32. powerpc-darwin also works. >> > > Is i386-darwin planned ? > not that i know of (not by me, anyway). won't be too hard for someone with reasonable x86 assembler knowledge. henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC scripting suport
Le May 28, 2008 à 12:08 PM, Michael Van Canneyt a écrit : On Wed, 28 May 2008, MihaiR wrote: Hello all, Is there any component for FPS/Lazarus I can succesfully use for scripting? I'd like to build an application that can be enhanced by some simple functions stored into an external script file so that functions can be edited. There are simple functions with few parameters and which return the result to the main application. It is something like VAT calculation: main (compiled application send price to the script function and script function returns the VAT value). Of course this is a simplified example, on my situation there are many functions and I want one function to have configurable formula content. Remobjects PascalScript works with FPC. (it used to be innerfuse pascal) Just for my information does it work under Linux *and* OS X ? -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] FPC scripting suport
Hello all, Is there any component for FPS/Lazarus I can succesfully use for scripting? I'd like to build an application that can be enhanced by some simple functions stored into an external script file so that functions can be edited. There are simple functions with few parameters and which return the result to the main application. It is something like VAT calculation: main (compiled application send price to the script function and script function returns the VAT value). Of course this is a simplified example, on my situation there are many functions and I want one function to have configurable formula content. Thank you very much. Best regards, Mihai ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC scripting suport
2008/5/28 Damien Gerard <[EMAIL PROTECTED]>: > > Le May 28, 2008 à 12:08 PM, Michael Van Canneyt a écrit : > >> >> Remobjects PascalScript works with FPC. >> (it used to be innerfuse pascal) > > > Just for my information does it work under Linux *and* OS X ? > i386 linux and win32. powerpc-darwin also works. henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC scripting suport
On Wed, 28 May 2008 12:08:33 +0200 Damien Gerard <[EMAIL PROTECTED]> wrote: > > LUA is very powerfull. > I used it in my app for months and it works very well. I think this is the right answer for me, simple yet realy powerful. Thank you very much. Mihai ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC scripting suport
On Wed, 28 May 2008, wrote: > I use JVInterpreter from JEDI with very good results in Delphi. It allows you > to write from simple > functions to complete programs using procedural and object oriented > programming, also one can > share objects between the application and the script. > > Does anyone ported it to FPC? It looks very abandoned to me ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC scripting suport
I use JVInterpreter from JEDI with very good results in Delphi. It allows you to write from simple functions to complete programs using procedural and object oriented programming, also one can share objects between the application and the script. Does anyone ported it to FPC? Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC scripting suport
I'm using Pascal Script 3.0 in FPC... Fabio 2008/5/28 Michael Van Canneyt <[EMAIL PROTECTED]>: > > > On Wed, 28 May 2008, wrote: > >> I use JVInterpreter from JEDI with very good results in Delphi. It allows >> you to write from simple >> functions to complete programs using procedural and object oriented >> programming, also one can >> share objects between the application and the script. >> >> Does anyone ported it to FPC? > > It looks very abandoned to me ? > > Michael. > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] pqconnection patch
Hello, The following patch fixes the reading of a bytea field from a PgSQL database. Btw is there someone working on pg's blob storage? Joao Morais Index: packages/fcl-db/src/sqldb/postgres/pqconnection.pp === --- packages/fcl-db/src/sqldb/postgres/pqconnection.pp (revision 11085) +++ packages/fcl-db/src/sqldb/postgres/pqconnection.pp (working copy) @@ -103,6 +103,7 @@ SErrPrepareFailed = 'Preparation of query failed.'; const Oid_Bool = 16; + Oid_Bytea= 17; Oid_Text = 25; Oid_Oid = 26; Oid_Name = 19; @@ -395,6 +396,7 @@ end; //Oid_text : Result := ftstring; Oid_text : Result := ftBlob; +Oid_Bytea : Result := ftBlob; Oid_oid: Result := ftInteger; Oid_int8 : Result := ftLargeInt; Oid_int4 : Result := ftInteger; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] another pqconnection patch
Hello, the following patch fixes the storage of floating point numbers where the decimal point isn't a dot. Joao Morais Index: packages/fcl-db/src/sqldb/postgres/pqconnection.pp === --- packages/fcl-db/src/sqldb/postgres/pqconnection.pp (revision 11085) +++ packages/fcl-db/src/sqldb/postgres/pqconnection.pp (working copy) @@ -568,6 +568,8 @@ case AParams[i].DataType of ftdatetime : s := formatdatetime('-MM-DD',AParams[i].AsDateTime); ftdate : s := formatdatetime('-MM-DD',AParams[i].AsDateTime); +ftFloat, +ftCurrency : str(AParams[i].AsFloat, s); else s := AParams[i].asstring; end; {case} ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal