[fpc-pascal] FPC vs AIR

2011-03-04 Thread Vannus
was having a look at cross-platform stuff and found:- a guy who doesn't seem to know about freepascal.org http://blogs.adobe.com/cantrell/archives/2010/04/one_application_five_screens.html a handy list of mobile devices http://www.adobe.com/flashplatform/certified_devices/ I like that FPC code

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-19 Thread Vannus
On 19 October 2010 15:06, Rob Kennedy kennedyri+fpc-pas...@gmail.comkennedyri%2bfpc-pas...@gmail.com wrote: On Tue, Oct 19, 2010 at 12:23 AM, Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Reimar Grabowski schrieb: for (int i = 0;...) Can't see anything wrong. I use declaration of

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-18 Thread Vannus
On 18 October 2010 15:33, Sven Barth pascaldra...@googlemail.com wrote: Am 18.10.2010 16:20, schrieb Michael Van Canneyt: Object Pascal is a simple, beautiful and easy to read language. The FPC team tries to keep it that way. And that is why I like the FPC team so much. :D agreed. When

Re: [fpc-pascal] TreeView and Nonrecursion

2010-09-01 Thread Vannus
i probably shouldn't open my mouth, as i don't quite understand the question... however FRED from the game Freespace let you design missions using a treeview. It involved following a tree like |- when 'Enemy Cargo ship' is 'attacked' | \- then 'enemy support ships' do 'jump in' |- when 'Enemy

Re: [fpc-pascal] array record output/input

2010-06-02 Thread Vannus
On 2 June 2010 11:34, spir denis.s...@gmail.com wrote: Hello, Is there a (builtin, simple) way to output the content of an array or of a record. Something like arrayToStr / recordToStr, that would return a normal form similar to the literal notation used for intialisation? If no, is there

Re: Re[2]: [fpc-pascal] array record output/input

2010-06-02 Thread Vannus
On 2 June 2010 18:56, José Mejuto joshy...@gmail.com wrote: Hello FPC-Pascal, Wednesday, June 2, 2010, 2:56:29 PM, you wrote: V ooh. php has 'print_r' for printing arrays/objects - an equivalent V ArrayToStr would be handy to have in Pascal. while pascal is my favourite V language, I'm

Re: [fpc-pascal] CGI file upload

2010-05-24 Thread Vannus
There is an example project (CGI and Apache mod) in Lazarus under /components/fpweb/demo/fptemplate/fileupload/ you can use. AB Cheers, it turned out to be the HTML form needed 'enctype' which i've never seen before. form action=merge.cgi method=post enctype=multipart/form-data Upload

[fpc-pascal] CGI file upload

2010-05-23 Thread Vannus
How do you get cgi uploads to work?? Im using TModuledCGIApplication procedure TCGIDatamodule1.DataModuleCGIRequest(Sender: TObject); begin // upload handling writeln('divfilenamevar: '+application.requestvariables['file']+'/div'); // works when get but post is just blank

Re: [fpc-pascal] strtodate on linux

2010-05-23 Thread Vannus
cheers - worked a treat :) On 21 May 2010 04:50, ABorka fpc-de...@aborka.com wrote: I had a problem like this before. If memory serves right, I had to set all four of these for StrToDate to work under Linux after moving some code from Windows: LongTimeFormat := 'hh:mm:ss';

Re: [fpc-pascal] ftp server

2010-05-20 Thread Vannus
i think you have to compile the .lpk in a certain order or something. i have similar problem - but you can still use the components. something along the lines of... uses idhttp; private idhttp: tidhttpclient; form1.create() begin idhttp:=tidhttp.create(self); end; its not as easy as to

[fpc-pascal] strtodate on linux

2010-05-20 Thread Vannus
I've used strtodate to convert 01/02/2010 on windows ok, but it fails with 'Invalid date format' on linux. anyone got any ideas why this happens? - V ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] CGI application

2010-05-19 Thread Vannus
This may not be the right place to ask, but I'm really stumped and would much prefer FPC over PHP. Can someone point me to how I can make a CGI app that outputs the fields in the query? ie. my.cgi?q=hello and my.cgi then outputs whatever q is? I'm using Lazarus but the deprecated CGI doesn't

Re: [fpc-pascal] CGI application

2010-05-19 Thread Vannus
Geldenhuys graemeg.li...@gmail.com wrote: Vannus het geskryf: Can someone point me to how I can make a CGI app that outputs the fields in the query? Think of CGI apps as simple Console applications (that's pretty much what they are). Everything after the ? is simply passed in as a parameter