Re: [fpc-pascal] Ho to convert a special format of datetime?

2018-12-13 Thread luciano de souza
. Freepascal always present to us some pleasant surprisses. 2018-12-13 18:07 GMT-02:00, luciano de souza : > Hello all, > I'd like to convert this date "2017-01-11T17:47:22.2912317-02:00" to > TDatetime. > It seems probably it exists in Freepascal, but I don't know. > So, I

[fpc-pascal] Ho to convert a special format of datetime?

2018-12-13 Thread luciano de souza
how to do it easily. I thank you for any help. Best Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Running tests with FPC units only

2018-11-11 Thread luciano de souza
- fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Running tests with FPC units only

2018-11-11 Thread luciano de souza
; finally free; end; end; END. However, TTestRunner belongs to consoletestrunner, a non Freepascal unit. I imagine there is a way to run tests only with Freepascal units. But how to do this without consoletestrunner, a unit found in Lazarus? Best regards, -- Luciano de Souza

Re: [fpc-pascal] Pascal units to connect to an Exchange server

2018-07-20 Thread luciano de souza
are you wanting to accomplish by mixing in Exchange and > Outlook? > > > -- > Bo Berglund > Developer in Sweden > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listi

[fpc-pascal] Pascal units to connect to an Exchange server

2018-07-19 Thread luciano de souza
unit to handle with Exchange sending protocol? Best Regards, -- Luciano de Souza Hello all, From a Linux machine connected to a Windows machine by VPN, I’d like to send e-mails programmatically using a Microsoft Exchange account. Using Windows resources, I could call Outlook automation API to do

Re: [fpc-pascal] Replacing parts of a string with TRegexpr

2018-02-22 Thread luciano de souza
thing else is needed! Sorry for the unnecessary question! 2018-02-22 10:38 GMT-03:00, luciano de souza <luchya...@gmail.com>: > Hello all, > I'd like to replace some part of a string acording to a pattern. > I know how to search and print the matches of a ER: > > program test;

[fpc-pascal] Replacing parts of a string with TRegexpr

2018-02-22 Thread luciano de souza
understand how to do it. -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using the LCL without Lazarus

2016-12-01 Thread luciano de souza
are positioned over elements, perhaps the screen reader read incorrectly. What you have shown is very simple! Thank you! 2016-12-01 15:04 GMT-02:00, Mattias Gaertner <nc-gaert...@netcologne.de>: > On Thu, 1 Dec 2016 14:57:42 -0200 > luciano de souza <luchya...@gmail.com> wrote: &g

Re: [fpc-pascal] Using the LCL without Lazarus

2016-12-01 Thread luciano de souza
lcl\widgetset > C:\FPC\2.4.4\units\i386-win32\lcl\interfaces\win32 > Then click on the Include files tab. > Add this directory: > C:\FPC\2.4.4\units\i386-win32\lcl\include > Now, you should be able to use the LCL. > > > If the answers to my questions #1 & #2 are in the affirmative, and if the > paths described in my question #3 can be added to the Windows search path or > inserted into a *.ini file or somewhere else, perhaps I can give it a go. > > I apologize for such a lengthy message but, I didn't know how else to make > clear my dilemma. > > Thanks, > > Bob > > -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] The testcase example doesn't generate plain text report

2016-11-16 Thread luciano de souza
t alerts to the fact that no tests were done in this method of the Testcase. 2016-11-15 7:06 GMT-02:00, luciano de souza <luchya...@gmail.com>: > Hello all, > I am trying to run testcases. > For testing the idea, I compile the example contained in: > > ./fpc-3.0.0/packages/fcl-f

[fpc-pascal] The testcase example doesn't generate plain text report

2016-11-15 Thread luciano de souza
commandline: ./testrunner -a --format=plain However, the output produced was in XML. What am I doing wrong. See the output: 62 0 0 -- Luciano de Souza

[fpc-pascal] Writing DLLs to by used in Excel VBA code

2015-12-11 Thread luciano de souza
And I got: #value I really don't know what to do. Seemlngly, VBA code is correct. I don't know so much about DLLs, would be possible to have a mistake in my Pascal code? Does someone have any idea? Best regards, -- Luciano de Souza library CE; {$mode objfpc} uses Sysutils; function l

Re: [fpc-pascal] Searching recursively for units in a path

2015-12-05 Thread luciano de souza
when compiling brokers.pas, ./Globals/Components/Brook/brookfclhttpappbroker.pas was not found. Perhaps, it's better to have the work of declaring everything individually. 2015-12-05 9:52 GMT-02:00, Michael Van Canneyt <mich...@freepascal.org>: > > > On Sat, 5 Dec 2015, luciano

[fpc-pascal] Searching recursively for units in a path

2015-12-05 Thread luciano de souza
subfolders recursively with -Fu? -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cryptography with Blowfish

2015-12-01 Thread luciano de souza
. 2015-12-01 17:57 GMT-02:00, luciano de souza <luchya...@gmail.com>: > Hello all, > > What's wrong with this code? > > I try to cryptograph a file. The compiler doesn't raise errors, but > after running the program, no results happen. > > program test; > {$mode objfpc}{

[fpc-pascal] Cryptography with Blowfish

2015-12-01 Thread luciano de souza
:= TMemoryStream.create; VMemory.LoadFromFile('origin.txt'); VCypher := TBlowfishEncryptStream.create('lazarus-br', VMemory); try VMemory.position := 0; VCypher.write(VMemory.memory, VMemory.size); VMemory.SaveToFile('output.bfe'); finally VCypher.free; VMemory.free; end; END. -- Luciano de Souza

[fpc-pascal] Implementing Factory Method with Pascal

2015-11-27 Thread luciano de souza
alFactory.create(AType: TAnimalType):TAnimal; begin case AType of atDog: result := TDog.create; atCat: result := TCat.create; end; end; end. Well, I am studying design patterns, but I really does not understand how to solve this problem. I thank you for any tip.

Re: [fpc-pascal] Implementing Factory Method with Pascal

2015-11-27 Thread luciano de souza
strong impression. Thank you! 2015-11-27 21:48 GMT-02:00, Marcos Douglas <m...@delfire.net>: > On Fri, Nov 27, 2015 at 7:44 PM, luciano de souza <luchya...@gmail.com> > wrote: >> If I need to do "TAnimalFactory.create(atDog) as Tdog", perhaps, it >> would be b

[fpc-pascal] Persistent list to store objects

2015-08-17 Thread luciano de souza
Hello all, There are several classes which manages lists. TCollection, TObjectlist, TFPGObjectlist... Does someone know if one of then can be saved as a file and reloaded again to an object? Regards, -- Luciano de Souza ___ fpc-pascal maillist

Re: [fpc-pascal] Writing a DLL to be use in a VBA code

2015-06-06 Thread luciano de souza
Thank you for the always rapid and gentile reply. Well, if there's no way to avoid pchar, let's go to pchar! 2015-06-06 4:27 GMT-03:00, Michael Van Canneyt mich...@freepascal.org: On Sat, 6 Jun 2015, luciano de souza wrote: Hello all, At work, I need to create a Excel sheet containing

[fpc-pascal] Writing a DLL to be use in a VBA code

2015-06-06 Thread luciano de souza
): string; cdecl; begin result := 'Freepascal ' + name; end; -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to instantiate a public type in a generic class

2015-05-25 Thread luciano de souza
, luciano de souza luchya...@gmail.com: Hello listers, Using Freepascal 2.6.4, I have a problem about generics. In short, I can't specialize a class with a subtype of a type declared with public type. Let me try to explain. In dopf.pas, I have: type generic TdGOpfT1, T2, T3 = class(TdComponent

[fpc-pascal] How to instantiate a public type in a generic class

2015-05-17 Thread luciano de souza
(specialize TBrookGAction t1); Well, I think the problem is illustrated. The doubt is how can create an instance of a public type, in my case, t2.Tentities inside my specialized class? Best regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc

[fpc-pascal] Size limits to name child specialized classes

2014-10-10 Thread luciano de souza
solved? When the parent class has a long name, names chosen to child class must be excessively short! Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Size limits to name child specialized classes

2014-10-10 Thread luciano de souza
Thank you. Generics is one of the best features the compiler has lately implemented. I am happy to use it freely! 2014-10-10 9:34 GMT-03:00, Sven Barth pascaldra...@googlemail.com: Am 10.10.2014 12:52 schrieb luciano de souza luchya...@gmail.com: Hello all, Nowadays, using FPC 2.6.4

Re: [fpc-pascal] Freepascal templating engines with logical structures

2014-09-22 Thread luciano de souza
a dataset to be shown and paginated. And by means of a text property, I can fill the template with one of the presented engines. 2014-09-17 1:51 GMT-03:00, luciano de souza luchya...@gmail.com: Hello all, I Know two templating engines for Freepascal: FPTemplate e JTemplate. Both can

[fpc-pascal] Commandline to compile projects with generics

2014-09-22 Thread luciano de souza
with: fpc progname.pp -B -Scghi -O1 -gw2 -godwarfsets -gl -vewnhi Yes, it works, but why is it not possible to compile programs with generics with the conventional method? Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] Persistent lists to save records

2014-09-22 Thread luciano de souza
are the easiest way to save records without this limitation? Is there something like a persistent list? -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Persistent lists to save records

2014-09-22 Thread luciano de souza
/fpc-pascal -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Commandline to compile projects with generics

2014-09-22 Thread luciano de souza
. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin

[fpc-pascal] Freepascal templating engines with logical structures

2014-09-16 Thread luciano de souza
? Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Using a custom fpc.cfg

2014-07-07 Thread luciano de souza
of the same directory of the executable. What I want to know is: is there a commandline parameter to specify a new name or, at least, a new directory to fpc.cfg file? For example, in stead of placing fpc.cfg in ./, I want to place it in ./Settings. I use fpc 2.6.4. -- Luciano de Souza

[fpc-pascal] Understanding the usage of resources in Linux

2014-05-24 Thread luciano de souza
Gedit, is it possible to add files as resources in my executable? -- Regards, Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A Regular Expression failing on the borders of words

2014-04-10 Thread luciano de souza
Regular Expressions is small, so I really need to study more. 2014-04-10 4:16 GMT-03:00, Mattias Gaertner nc-gaert...@netcologne.de: On Thu, 10 Apr 2014 02:43:41 -0300 luciano de souza luchya...@gmail.com wrote: [...] r.expression := '^(x\s+)*(\([A-E]\))*(\s*.*\.)+(\s+\+.*\b)*(\s+@.*\b

[fpc-pascal] A Regular Expression failing on the borders of words

2014-04-09 Thread luciano de souza
any idea what is wrong? Best regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A linking error in a SDL example

2014-03-04 Thread luciano de souza
library. On debian it's provided by the libsmpeg0 package. https://packages.debian.org/wheezy/libsmpeg0 -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] A linking error in a SDL example

2014-03-03 Thread luciano de souza
? Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Formating JSON outputs

2014-01-28 Thread luciano de souza
:= TStringlist.create; r := TJSONObject.create; a := TJSONarray.create; j := TJsonObject.create; j.strings['name'] := 'Luciano de Souza'; j.integers['age'] := 38; j.strings['city'] := 'Niterói'; j.strings['country'] := 'Brazil'; a.add(j.clone); j.clear; j.strings['name'] := 'Mariella Molinari'; j.integers['age

[fpc-pascal] Adding files to a tar file

2014-01-21 Thread luciano de souza
doubt is: I am running this program in Ubuntu 13.10. If I run it in Windows, will a external library be necessary or all the code is included in lib tar unit? Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] FPCUnit tests without Lazarus

2013-10-18 Thread luciano de souza
be your strategy to automatize tests if Lazarus didn't exist? Regards, -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPCUnit tests without Lazarus

2013-10-18 Thread luciano de souza
Yes, you are right. Now, I observe that we have two foldders: fpcunit and fcl-fpcunit. The missing units were in the last one. I don't know why I made this confusion. Sorry! 2013/10/18, Michael Van Canneyt mich...@freepascal.org: On Fri, 18 Oct 2013, luciano de souza wrote: Hello all

Re: [fpc-pascal] Executable with invisible window and IO enabled

2013-07-21 Thread Luciano de Souza
I thank you for the tip. That's true I haven't tested it up to now. The Windows was damaged by 194 infections. this large amount of virus has blocked the browsers and, as a result, the web development was suspensed for some time. It's really confortable to know Linux is safier. the important

Re: [fpc-pascal] Executable with invisible window and IO enabled

2013-07-21 Thread Luciano de Souza
I thank you for the tip. That's true I haven't tested it up to now. The Windows was damaged by 194 infections. this large amount of virus has blocked the browsers and, as a result, the web development was suspensed for some time. It's really confortable to know Linux is safier. the important

[fpc-pascal] Executable with invisible window and IO enabled

2013-07-15 Thread luciano de souza
hello all, I want to compile a program with no visible screen, but at the same time, with input and output enabled. If I use $apptype gui, the screen is invisible, but there are not input and output. If I use the standard $apptype console, the input and output is enabled, but the screen is

[fpc-pascal] ID3v2 - Reading and writing MP3 metadata

2013-05-09 Thread luciano de souza
', 0); title := 'O meu título'; artist := 'O meu artista'; album := 'O meu álbum'; year := '2013'; comment := 'O meu comentário'; genre := 'clássico'; composer := 'O meu compositor'; SavetoFile('01.mp3'); end; finallyt tagger.free; end; END. -- Luciano de Souza

Re: [fpc-pascal] Re: ID3v2 - Reading and writing MP3 metadata

2013-05-09 Thread luciano de souza
de Souza unit ID3v2; {$mode objfpc}{$H+} interface uses Classes, SysUtils; const TAG_VERSION_2_2 = 2; TAG_VERSION_2_3 = 3; TAG_VERSION_2_4 = 4; type TID3v2 = class(TObject) private FExists: Boolean; FVersionID: Byte; FSize: Integer; FTitle: string

Re: [fpc-pascal] Re: ID3v2 - Reading and writing MP3 metadata

2013-05-09 Thread luciano de souza
. __ Hello. Im busy to implement ID3v2 tag in uos. Im nearly ready... https://github.com/fredvs/uos -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Documentation

2012-12-17 Thread luciano de souza
de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Brook 1.0 - A new framework for web was born

2012-12-15 Thread luciano de souza
, who gave me valuable advices to decoupling the code. Thanks for Luciano de Souza, responsible for the documentation and the name of methods and properties. Thanks also for Marcos Douglas, the author of Greyhound, project wich started as an inspiration and finished as a valuable partner

Re: [fpc-pascal] Brook 1.0 - A new framework for web was born

2012-12-15 Thread luciano de souza
15 December 2012 09:59:48 schrieb luciano de souza: No, Brook works with any web server. Apache is only the an example and the preference of the author. 2012/12/15, silvioprog silviop...@gmail.com: Hello all, More than 15,000 lines of source code, more than 90 test cases, more than one

Re: [fpc-pascal] Brook 1.0 - A new framework for web was born

2012-12-15 Thread luciano de souza
-- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-24 Thread Luciano de Souza
Unfortunately, I don't have enough knowledlge even to start a task like that. But observing the firm journey of Freepascal, I am sure we will have it soon. Em 24-11-2012 06:52, Michael Van Canneyt escreveu: On Fri, 23 Nov 2012, luciano de souza wrote: Among its hundreds of units

Re: [fpc-pascal] Fwd: [OFF-TOPIC] EazyRSS - A simple writer and reader for the RSS protocol

2012-11-24 Thread luciano de souza
likes, I will exclude this project from Github since, in this case, it wouldn't make sense to stay there. But whatever is the will, here I offer my work and I hope the friends like it. Thank you, -- Silvio Clécio My public projects - github.com/silvioprog -- Luciano de Souza

[fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread luciano de souza
Hello listers, Using Synapse, the developer has very good features to deal with the HTTP protocol. But imagine you want only to do a get in a URL and take a string back. I imagine it can be done with the standard units of Freepascal. Is it true? How could I do it with FPC 2.7.1? Best regards,

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Luciano de Souza
, luciano de souza wrote: Hello listers, Using Synapse, the developer has very good features to deal with the HTTP protocol. But imagine you want only to do a get in a URL and take a string back. I imagine it can be done with the standard units of Freepascal. Is it true? How could I do it with FPC

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread luciano de souza
to accomplish this. I implemented the class methods for all forms of Get/Post/Formpost, so now you can do: s := TFPCustomHTTPClient.SimpleGet('http://a_site/a_page'); You can't get more simple than that. Michael. -- Luciano de Souza ___ fpc-pascal maillist

Re: [fpc-pascal] Using flag field in Getopts

2012-10-31 Thread luciano de souza
If I correctly understood, the flag field is to find arguments. If it remains nil, the argument was not found, otherwise, it's a pointer to the short option. 2012/10/30, Henry Vermaak henry.verm...@gmail.com: On 30/10/12 10:05, luciano de souza wrote: Hello listers, Getopts offers very good

Re: [fpc-pascal] Re: Generating templates with FPTemplate

2012-07-27 Thread Luciano de Souza
On 27/7/2012 08:51, leledumbo wrote: try this: type TMyTemplate = class(TFPTemplate) private procedure ReplaceMyTags(Sender : TObject; Const TagString : String; TagParams:TStringList; Out ReplaceText : String); public constructor Create; end; procedure

Re: [fpc-pascal] Generating templates with FPTemplate

2012-07-27 Thread Luciano de Souza
Michael, Your example is very clear. I am not very good to understand source codes. But this style seems to be very good and logical. It's really wonderful: FPC owns units for everything! Thank you. On 27/7/2012 08:43, michael.vancann...@wisa.be wrote: On Fri, 27 Jul 2012, luciano de souza

[fpc-pascal] Small and not instalable web server for a local Pascal CGI application

2012-07-12 Thread luciano de souza
Hello all, I am running some CGIs in localhost. When talking about web servers, the name of Apache comes as natural. However, I would like to share some zip files to show the results. For this purpose, Apache is not the best because I need something not instalable. I tried a small server

[fpc-pascal] Codepage: UTF-8 code greater than 65535 found

2012-06-24 Thread luciano de souza
Hello all, In order to enable UTF-8 characters, I tried to use it: program dvcodepage; {$codepage UTF8} uses Sysutils; var x: integer; BEGIN writeln('Digite um número'); readln(x); writeln('O número digitado foi ', x); END. I really didn't expect errors, but I got the following output: Free

[fpc-pascal] Re: Playing sounds with standard components

2012-06-11 Thread luciano de souza
the complexity, probably is's possible to do much more than simply play a sound. In spite of that, it would be intersting to have something easier. The examples work with complex and for me, abstract structures. Which kind of content, do I need to study to understand Openal or SDL? 2012/6/9, luciano de

[fpc-pascal] Playing sounds with standard components

2012-06-09 Thread luciano de souza
Hello all, Bass is a very good library for sound playing and recording. However, it's not included as an standard feature of Freepascal. For whom wich wants to work with standard components, are there other options: (1) to play sounds and (2) to record sounds? Regards, Luciano

[fpc-pascal] Getting an output string from a TProcess

2012-06-01 Thread luciano de souza
Hello all, I want to execute FPC, but filtering the output in order to show only the necessary information. The reason is I am blind, I use screen reader and, in the console environment, it's not possible to read the rows below without firstly read the rows above. My intention is to use TProcess,

[fpc-pascal] Handling with sources and exebutables with different names

2012-05-17 Thread luciano de souza
hello all, I am compiling CGI modules with Freepascal in commandline mode. if I do: fpc test.pas the result is test.exe. But the source name needs to be different from the executable name. For this reason: fpc test.pas -oindex.cgi This command should result in index.cgi, placed on the current

[fpc-pascal] Re: Handling with sources and exebutables with different names

2012-05-17 Thread luciano de souza
, placeable in code, allowing me to define a name for the executable? I am asking to myself: Did I become crazy? Have I done the test wrongly? Yes, it can be. However, I did it several times with the same result. I don't know what, but something misleading is wrong. 2012/5/17, luciano de souza luchya

[fpc-pascal] Re: Parsing parameters inside an interpreter

2012-05-14 Thread luciano de souza
Fortunately, my case is the simplest one. There will not quotes inside quotes. Therefore, I believe TStringlists will sove the whole problem. It's really amasing what we can do with a TStringlist. Thank you for the precious tips! 2012/5/13, luciano de souza luchya...@gmail.com: Hello all, I

[fpc-pascal] Data persistance in CGI projects

2012-02-26 Thread Luciano de Souza
Hello all, For desktop environments, there are mature projects on data persistance. Press Objects, TiOPF... desktop developers can be proud of the tools they have. What about CGI environments? Is there something already developed? Yes, we can use SQLDB. It's really a very good component.

Re: [fpc-pascal] Data persistance in CGI projects

2012-02-26 Thread Luciano de Souza
, but of course, I may be wrong. Em 26-02-2012 13:29, Michael Van Canneyt escreveu: On Sun, 26 Feb 2012, Luciano de Souza wrote: Hello all, For desktop environments, there are mature projects on data persistance. Press Objects, TiOPF... desktop developers can be proud of the tools they have. What

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-02-01 Thread Luciano de Souza
Em 01/02/2012 04:54, waldo kitty escreveu: On 1/31/2012 22:23, Luciano de Souza wrote: Hello listers, A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did one test else: writeln

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-02-01 Thread Luciano de Souza
! But fortunately, I have a good friend who corrects me! One bilion of corrections else and I will be perfect! Thank you very much! Em 01-02-2012 04:54, waldo kitty escreveu: On 1/31/2012 22:23, Luciano de Souza wrote: Hello listers, A strange error came up when formating a date. See this code

[fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-01-31 Thread Luciano de Souza
Hello listers, A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did one test else: writeln(formatdatetime('dd$mm$', now)); The answer was: 31$01$2012 Yes, the problem

Re: [fpc-pascal] Re: FPCUnit without Lazarus

2012-01-08 Thread Luciano de Souza
Now, I understand. FPCUnit and FPCRegistry do not have LCL dependences. What depends on LCL is the runner called Console Runner. This name make me confused! I ahve alredy read the documentation, but I could not understand. Perhaps, perhaps my weak english... Well, the fact is that everything

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Luciano de Souza
that I need FileUtils and Clipboard. But When it comes, I will think about. Until there, FPC is complete for me. Em 08-01-2012 10:06, Rainer Stratmann escreveu: Am Sunday 08 January 2012 02:17:29 schrieb Luciano de Souza: I have downloaded a Lazarus deb package compatible with FPC 2.4.4. I try

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Luciano de Souza
will not need Lazarus. Michael. On Sat, 7 Jan 2012, Luciano de Souza wrote: Hello listers, I have really appreciated the organized tests that FPCUnit allows. It's really a very good feature, but for me, it hasn't been to use it. For some while, I have writen an e-mail saying I could

Re: [fpc-pascal] Adding code indentation without Lazarus

2012-01-02 Thread Luciano de Souza
I have tested ptop with very good results. It does really what I want. As it is possible to get the default cfg with '-g, we can change it and call the changed cfg with '-c'. It's really a powerful and easy tool. Em 02-01-2012 14:29, Marco van de Voort escreveu: In our previous episode,

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-17 Thread Luciano de Souza
+} uses test; begin end. Em 16/12/2011 11:44, Michael Van Canneyt escreveu: On Fri, 16 Dec 2011, Vincent Snijders wrote: 2011/12/16 luciano de souza luchya...@gmail.com: Hello listers, Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tTestCase class, we can

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-17 Thread Luciano de Souza
the console test application on the command-line, specify options '--format=plain' and '--all' The graphical application will show test results in a tree. Michael. On Sat, 17 Dec 2011, Luciano de Souza wrote: The article is very good, but it does not focuse on all aspects. I have tried to create my

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-17 Thread Luciano de Souza
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

[fpc-pascal] Testing applications with FPCUnit

2011-12-16 Thread luciano de souza
Hello listers, Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tTestCase class, we can generate a report with the success or the failure of our tests. However, only observing the source code, it's not easy to comprehend how it works. I found a single parcial

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-16 Thread Luciano de Souza
wrote: 2011/12/16 luciano de souza luchya...@gmail.com: Hello listers, Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tTestCase class, we can generate a report with the success or the failure of our tests. Is there documentation on the usage of fpcunit? What

[fpc-pascal] Sorting an open unidimensional array

2011-12-11 Thread Luciano de Souza
in advance! Luciano -- Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Sorting an open unidimensional array

2011-12-11 Thread Luciano de Souza
Yes, the unit seems to be very complete. I will study it and I am sure good results will come up! Thank you! Em 11/12/2011 18:18, Martin Schreiber escreveu: On 12/11/2011 09:10 PM, Luciano de Souza wrote: Hello listers, I want to sort an open unidimensional array of integers from

[fpc-pascal] The best approaching for templating

2011-11-07 Thread luciano de souza
Hello listers, I would like to create some templates. Suppose the following example: html head title%s/title /head body %s p %s p %s p /body /html I can certainly use format to link %s to the respective variables. However, if the number of %s is big, probabily, the reading would be less

[fpc-pascal] Using areq.getnextpathinfo in a CGI module

2011-11-01 Thread Luciano de Souza
Hello listers, I am trying to understand how to create some code using Custcgi. However, the following peace is not clear for me concerning to getnextpathinfo. Let's see: program cgiproject1; {$mode objfpc}{$H+} uses HTTPDefs, custweb, custcgi, main; type { TMyCGIHandler }

[fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Luciano de Souza
Hi listers, I have installed FPC 2.4.4 using the following package: http://mirrors.iwi.me/lazarus/snapshots/fpc-2.4.4-1.i386.deb.tar Having unpacked it in a folder, I did: sudo dpkg -i *.deb The instalation was seemingly successful since I could compile some sources. However, compiling the

[fpc-pascal] CGI under Freepascal

2011-10-18 Thread Luciano de Souza
Hello listers, I am trying to use CGI with Pascal. I don't have background in web development, but principles of CGI seems to be simple. The first way could be FPWeb. However, I prefer another solution even if it is the best bet. It requires complex compilations and configurations since

[fpc-pascal] Error when translating a C header

2011-10-03 Thread Luciano de Souza
Hi listers, I tried to translate a C header with: h2pas -e -d -p iupkey.h I got the following error: at line 21 error : syntax error at line 41 error : syntax error Illegal character in line 45 #define K_at '@' /* 64 */ Illegal character in line 73 #define K_backslash '\\' /* 92