. 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
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
- 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
;
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
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
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
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;
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
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
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
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
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
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
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
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
.
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}{
:= 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
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.
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
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
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
): 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
, 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
(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
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
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
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
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
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
/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 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
?
Regards,
--
Luciano de Souza
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
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
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
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
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
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
?
Regards,
--
Luciano de Souza
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
:= 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
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
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
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
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
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
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
', 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
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
.
__
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
de Souza
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
, 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
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
--
Luciano de Souza
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
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
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
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,
, 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
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
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
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
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
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
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
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
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
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,
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
, 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
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
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.
, 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
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
! 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
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
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
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
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
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,
+}
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
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
___
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
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
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
in advance!
Luciano
--
Luciano de Souza
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
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
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
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 }
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
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
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
89 matches
Mail list logo