Re: [fpc-pascal] any free pascal standard function to compare a string against an array of string?

2018-10-10 Thread David Copeland
IsOneOf(TheSubString : String; const > TheStrings : array of String) : Boolean > ? > if yes, what is its name and unit? > > Dennis > ___ > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cg

Re: [fpc-pascal] ShortDateFormat

2015-05-07 Thread David Copeland
Thanks Bart. On 05/07/2015 12:48 PM, Bart wrote: > On 5/7/15, David Copeland wrote: > >> Sorry, I think I just answered my own question :-! . Woult using the >> TFormatsetting variant of StrToDateTime be the "better way"? > Yes. > > Bart > ___

Re: [fpc-pascal] ShortDateFormat

2015-05-07 Thread David Copeland
Sorry, I think I just answered my own question :-! . Woult using the TFormatsetting variant of StrToDateTime be the "better way"? Dave. On 05/07/2015 12:25 PM, David Copeland wrote: > Hi all, > > I am using the following bit of code to convert a date from an external &g

[fpc-pascal] ShortDateFormat

2015-05-07 Thread David Copeland
Hi all, I am using the following bit of code to convert a date from an external source. var timestamp: TDateTime; event_date, event_time: string; begin ShortDateFormat := 'm/d/y'; try timestamp := StrToDateTime(event_da

Re: [fpc-pascal] IsATTY

2015-04-17 Thread David Copeland
On 04/17/2015 10:49 AM, Henry Vermaak wrote: > On Fri, Apr 17, 2015 at 09:55:26AM -0400, David Copeland wrote: >> This function is a part the unit oldlinux. Is there a replacement for it >> somewhere? I have looked in the Linux, Unix, etc units but didn't see it. > It

[fpc-pascal] IsATTY

2015-04-17 Thread David Copeland
This function is a part the unit oldlinux. Is there a replacement for it somewhere? I have looked in the Linux, Unix, etc units but didn't see it. Thanks, Dave Copeland. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.

Re: [fpc-pascal] Setting execute bit for a Unix file

2014-07-31 Thread David Copeland
I agree, you learn something new every day! Dave. On 07/31/2014 04:26 PM, Karoly Balogh (Charlie/SGR) wrote: > Hi, > > Naaah, better use FpChmod() in BaseUnix unit: > > http://www.freepascal.org/docs-html/rtl/baseunix/fpchmod.html > > Charlie > > On Thu, 31 Jul

Re: [fpc-pascal] Setting execute bit for a Unix file

2014-07-31 Thread David Copeland
You could try FpSystem('chmod +x yourfilename'); // assuming the cwd is set Dave. On 07/31/2014 04:18 PM, Juha Manninen wrote: > Hello > > How can I set a file flag (execute) using Pascal code in a Linux system? > > Juha > ___ > fpc-pascal maillist -

Re: [fpc-pascal] Tdbf Memo Field Issue, 2.6.2 vs 2.6.4

2014-06-17 Thread David Copeland
On 06/17/2014 07:07 AM, Reinier Olislagers wrote: > Got some questions/remarks/workaround for you in the bug report... > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal Answ

Re: [fpc-pascal] Tdbf Memo Field Issue, 2.6.2 vs 2.6.4

2014-06-17 Thread David Copeland
On 06/17/2014 07:07 AM, Reinier Olislagers wrote: > Got some questions/remarks/workaround for you in the bug report... > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal Hi

Re: [fpc-pascal] Tdbf Memo Field Issue, 2.6.2 vs 2.6.4

2014-06-13 Thread David Copeland
p + trim(dbase.FieldByName(fieldname).AsString); end; sep := ','; end; writeln(outfile,buf); dbase.Next; end; writeln(inttostr(rec_count) + ' records read.'); dbase.Close; dbase.Destroy; Close(outfile); end. Dave.

[fpc-pascal] Tdbf Memo Field Issue, 2.6.2 vs 2.6.4

2014-06-12 Thread David Copeland
Hi, I think this is a bug I wrote a simple program using Tdbf to export a dBase IV/w. Memo file to a csv file. Accessing the memo field with FieldByName("MEMOFIELD").AsString works fine on one machine but not a second. The first machine runs Suse 12.3 64-bit, with FPC 2.6.2 [2013/03/17] for x86_

Re: [fpc-pascal] Generics Compile Error, 2.4.2 vs 2.6.0

2012-02-13 Thread David Copeland
Thanks very much. It now compiles! Dave. -Original Message- From: J.-c. Chu Reply-to: FPC-Pascal users discussions To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Generics Compile Error, 2.4.2 vs 2.6.0 Date: Tue, 14 Feb 2012 00:59:03 +0800 If you are compiling the unit

Re: [fpc-pascal] Postscriptcanvas

2012-01-17 Thread David Copeland
the postscript myself. Thanks, Dave. -Original Message- From: Felipe Monteiro de Carvalho Reply-to: FPC-Pascal users discussions To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Postscriptcanvas Date: Tue, 17 Jan 2012 13:59:19 +0100 On Tue, Jan 17, 2012 at 1:40 PM, David Copel

Re: [fpc-pascal] Postscriptcanvas

2012-01-17 Thread David Copeland
, just make an application without any forms. -- David Copeland JSI Data Systems Limited 613-727-9353. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Postscriptcanvas

2012-01-16 Thread David Copeland
This would be for printing. -Original Message- From: Felipe Monteiro de Carvalho Reply-to: FPC-Pascal users discussions To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Postscriptcanvas Date: Sun, 15 Jan 2012 13:11:13 -0200 On Fri, Jan 13, 2012 at 3:31 PM, David Copeland

Re: [fpc-pascal] Postscriptcanvas

2012-01-14 Thread david . copeland
> > > On Sat, 14 Jan 2012, david.copel...@jsidata.ca wrote: > >> Micheal, >> >> Thank you. I was referring to LCL Postscriptcanvas unit which I use in >> GUI >> programs. When I tried to use it in a non-GUI program, it could not be >> found. Are these two really the same thing, or at least similar

Re: [fpc-pascal] Postscriptcanvas

2012-01-14 Thread david . copeland
? I did find the source so I will try to puzzle it out from that. Dave. > > > On Fri, 13 Jan 2012, David Copeland wrote: > >> Hi, >> >> Is it possible to use the PostScriptCanvas unit in a non-gui program? > > If you are talking about the pscanvas unit o

[fpc-pascal] Postscriptcanvas

2012-01-13 Thread David Copeland
Hi, Is it possible to use the PostScriptCanvas unit in a non-gui program? Thanks, Dave. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal