Re: [fpc-pascal] Moving to gitlab.

2021-07-22 Thread John Lee via fpc-pascal
I use viewvc to look at repository - is there an equivalent when everyting is on gitlaB? tia john On Thu, 22 Jul 2021 at 13:32, Michael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > Hello, > > Some of you may have seen this on the lazarus list: >

Re: [fpc-pascal] Raspberry PI download

2020-08-14 Thread John Lee via fpc-pascal
Bo, don't think suggesting people should do it themselves (not very easy) is v helpful.- Carsten clearly wanted a precompiled version so just tell him where there is one! j. On Thu, 13 Aug 2020 at 21:27, Bo Berglund via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > On Thu, 13 Aug 2020 1

Re: [fpc-pascal] Default record const values

2018-11-13 Thread John Doe
On Mon, Nov 12, 2018 at 1:51 AM Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > The compiler now correctly rejects such declarations with a "Type is > not completely defined error". > Making this not work is a ridiculous removal of a feature for no logical reason that serves

[fpc-pascal] No breakpoint capability

2018-08-25 Thread john youngquist
I updated to FPC 3.0.4 and can't get breakpoints to work. I get a "can't set breakpoint message" on all lines. I am in debug mode and have "generate debug information" enabled. This all worked fine in the previous version. I have searched all the documentation I can find and can't even find

Re: [fpc-pascal] Operator overload bug

2018-07-28 Thread John Doe
On Mon, Jul 23, 2018 at 1:49 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Ryan Joseph schrieb am Mo., 23. Juli 2018, > 17:35: > >> >> > On Jul 23, 2018, at 12:00 AM, Sven Barth via fpc-pascal < >> fpc-pascal@lists.freepascal.org> wrote: >> > >> > Yes, it's a bug, so p

[fpc-pascal] Free Pascal Setup

2017-05-05 Thread John van der Linden
nothing about installing this thing, where is Setup. This whole project is very diss appointing so far, can you help me. As the idea sounds very interesting. Kind regards, John van der Linden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Mouse, scroll wheel support?

2016-06-28 Thread John Youngquist
Is there a non Lazarus means of accessing the mouse, and scroll wheel? I have an app that uses some old driver which doesn't address the wheel. I'm trying to make the wheel work. I have tried SDL and the demo code works but it seems to work only in an externally created window. I can't find any do

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-04 Thread John Lee
luddite_clique 1 progressives 0 On 4 February 2016 at 19:25, Sven Barth wrote: > Hello together! > > The IfThen() intrinsic has been removed again. There will be *no* > replacement in the foreseeable future. This is not up for discussion. > > Regards, > Sven > ___

Re: [fpc-pascal] if-then-else expression

2016-02-02 Thread John Lee
So (Sven) to clarify, assume that your original ifthen [patch is now in latest svn compiler although more work will needed to do x:=if a then b else c;? j On 2 February 2016 at 18:33, Sven Barth wrote: > On 02.02.2016 10:25, Michael Schnell wrote: > > On 02/01/2016 09:35 PM, Maciej Izak wrote: >

Re: [fpc-pascal] if-then-else expression

2016-02-02 Thread John Lee
Based on Florian's recent emails the if then else is ok, so guess we should be close to getting it all running. Great, thanks for your efforts. j On 2 February 2016 at 20:55, Sven Barth wrote: > On 02.02.2016 20:22, John Lee wrote: > > So (Sven) to clarify, assume that your o

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-02 Thread John Lee
on, and on and on blah blah - lets move on! On 2 February 2016 at 17:06, Martin wrote: > On 02/02/2016 16:49, Sven Barth wrote: > >> >> >> > also if we are discussing (are we?) a form like >> > x:= iIf a>b iThen c iElse b; >> > then why not >> > x:= a>b ifThen c ifElse b; >> >> Because I

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-02 Thread John Lee
Sigh, thought everyone (eventually) agreed that we'd change to algol/ada x:=if a>b then 1 else 2; so why are we going on & on & on about this? john On 2 February 2016 at 13:20, Sven Barth wrote: > Am 02.02.2016 11:42 schrieb "Mark Morgan Lloyd" < >

Re: [fpc-pascal] arm-linux for Raspberry 1 FPC 3.0.0-rc1 release

2015-09-03 Thread John Lee
Which rpi flavours should it work for, 1 or 2? Still doesn't work (can't extract) for me on rpi 2 running jessie. What commands should I try after download? John On 2 September 2015 at 18:30, Mark Morgan Lloyd < markmll.fpc-pas...@telemetry.co.uk> wrote: > Jonas Maebe w

Re: [fpc-pascal] arm-linux for Raspberry 1 FPC 3.0.0-rc1 release

2015-09-01 Thread John Lee
Is this tar ok? - anyone used it successfully? Getting 'not a tar file' error on my rpi. john On 1 September 2015 at 00:03, Pierre Muller wrote: > On Thu, August 27, 2015 06:55, Martin Schreiber wrote: > > On Wednesday 26 August 2015 20:14:09 Mark Morgan Lloyd wrote: > >

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread John Lee
simple, tho' not too simple, as the great man is supposed to have said, and release rpi compilers in 3.0.0 (as betas if necessary) - there are a lot of them out there.. john On 30 August 2015 at 13:22, Jonas Maebe wrote: > On 30/08/15 14:11, John Lee wrote: > > Not clear ab

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread John Lee
able, so let me know if I can help with more testing. What's plan? btw, dont think the rc1 release notes make status clear. john On 29 August 2015 at 19:50, John Lee wrote: > What is fix please? I noticed Jonas committed a link patch to svn today. > Does that fix it? If so can

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread John Lee
Dohhh, still getting 2.6.4. Did you mean ppcarm? Downloaded fpc_eabihf_3_0_1.tar.gz, extracted If I cd to eabihf/lib/fpc/3.0.1 there is ppcarm of 14th Aug there but running ppcarm still gives 2.6.4! Or should I do exec ppcarm? John On 29 August 2015 at 12:52, Martin

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread John Lee
Just downloaded the non debug version onto my rpi 2. Extracted - 6 files in /bin, including fpc but it is 2.6.4 not 3.0. Any ideas? Is there a rc1 .gz anywhere? John On 29 August 2015 at 10:55, Martin Schreiber wrote: > On Friday 28 August 2015 10:30:24 Mark Morgan Lloyd wrote: > &g

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread John Lee
Did I miss something? - where does it it get the rtl & compiler source? TIA John On 18 August 2015 at 16:27, Chris Moody wrote: > > > On 08/18/2015 01:24 AM, Michael Ring wrote: > > This is how I build fpc trunk cross compiler: > > echo "Building fpchf-linux

Re: [fpc-pascal] Failed compiling SVN source on Raspi 1 B+

2015-03-04 Thread John Lee
No, article you referred to in original post is about rpi 2. Can't see mentioned where you got the fpc from either. Let's hope that we can get fpc 2.6.4 and 3.1.1 working on rpi 1 and rpi 2. john On 3 March 2015 at 03:14, Bee wrote: > > If you read the article, it's clearl

Re: [fpc-pascal] Failed compiling SVN source on Raspi 1 B+

2015-03-01 Thread John Lee
Confused re what bee is using. Line 1 of the email says rpi 1 whereas later he refers to rpi 2 article.. Which 'v2.6.4 linuxarm' package is referred to in the email, from which repo? That from svn apt-get install fpc or another? How installed? Be interested in progress with v3.1.1

Re: [fpc-pascal] Failed compiling SVN source on Raspi 1 B+

2015-02-28 Thread John Lee
some other package - where from? Are you running wheezy or jessie? Please let us know whether you can get svn 3.1.1 to build & what the build instructions are.. TIA John On 28 February 2015 at 03:42, Bee wrote: > Hi, > > I just got my Raspberry 1 B+ and I wanted to install la

Re: [fpc-pascal] arm-linux (raspberry pi)

2014-07-01 Thread John Lee
it available as a zip or whatever? I can provide an ftp site for you. TIA john On 1 July 2014 14:14, Fabio Luis Girardi wrote: > Hi all!! > > First (tests made on ARMHF): I did tests with latest FPC, built from > trunk. The trouble persists. A simple program can't load a sim

[fpc-pascal] executeprocess help

2014-03-26 Thread John Lee
rtl/system/integer.html>; TIA John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] invalid floating point

2014-01-12 Thread John Lee
does linear regression calcs. I've normally got more line no info for fpu problems eg the line in regress at which it went wrong, which would be helpful. Have the defaults re line nos changed in latest 2.7.1s?. Do I have to compile with -vl to get more info? Any ideas on how to fix welcome.

Re: [fpc-pascal] Efficient String concatenation

2013-10-30 Thread John Lee
it needs to be able to 'look ahead' by few statements - which I'd thought it does already to some extent. Think I saw email where you said 'few' months - that is soon in context of fpc and even more in the context of significant fpc changes, so not 'gross overstateme

Re: [fpc-pascal] Efficient String concatenation

2013-10-29 Thread John Lee
Did you try any other fpc compiler optimisation settings? No expert, but looks like it isn't too difficult for compiler to spot this. What about llvm - (coming soon to fpc apparently) - would that fix it? John On 29 October 2013 13:22, Graeme Geldenhuys wrote: > Hi, > >

Re: [fpc-pascal] Powtils: lightwebserver, lightwebserver2 or lightwebserver3?

2013-10-29 Thread John Lee
Is this assessment valid for win or linux or both? J On 28 October 2013 13:22, Graeme Geldenhuys wrote: > > > On Monday 28/10/2013 at 15:03, silvioprog wrote: > > So, which one is recommended to be used in production? > > > Having recently (and currently still) doing extensive work with embedde

Re: [fpc-pascal] Re: read cells contents from .xls file

2013-10-02 Thread John Lee
I have it and use it - but not lazarus. But using some legacy 2.2.2 libraries w/o source & want it to work there. Even with latest fpc it didn't seem very easy to get sheet data into csv, I couldn't follow the examples in fpspread..., seemed to need lots of lazarus stuff n units that I didn't under

Re: [fpc-pascal] Re: read cells contents from .xls file

2013-10-02 Thread John Lee
ion. Thanks all for you help. John On 2 October 2013 09:44, Reinier Olislagers wrote: > On 01/10/2013 21:44, John Lee wrote: > > Thanks for all suggestions. IMO fpspread...pas is too complex for & I'd > > need to hack thro' thousands of lines - maybe a simple program to

Re: [fpc-pascal] read cells contents from .xls file

2013-10-01 Thread John Lee
o create a csv file then getting the data from that http://stackoverflow.com/questions/1858195/convert-xls-to-csv-on-command-line This is the way I'm doing it, running the vbs file from cmd using exec etc, simple if crude!. john On 1 October 2013 12:15, John Lee wrote: > Thanks - as

Re: [fpc-pascal] read cells contents from .xls file

2013-10-01 Thread John Lee
be my hope of a few lines, with one or two units 'used', isn't possible but there seem to be millions of lines here. Is there an example of reading cells from named spread that you could point to? John On 1 October 2013 08:44, Felipe Monteiro de Carvalho < felipemonteiro.carva

Re: [fpc-pascal] read cells contents from .xls file

2013-09-30 Thread John Lee
#x27;s why I'd just like some info for a quick hack eg some bullets or some idea what I need to do eg to read the no or string in eg cell x23 of sheet jim in fred.xls. John On 30 September 2013 16:38, Felipe Monteiro de Carvalho < felipemonteiro.carva...@gmail.com> wrote: >

[fpc-pascal] read cells contents from .xls file

2013-09-30 Thread John Lee
File produced by excel 2003. Can anyone tell me the basic ideas, formats, pitfalls - I'd just like to write a short routine & don't want to fight with the complexities of the lazarus based stuff. Prepared to experiment... TIA John

Re: [fpc-pascal] Could not set breakpoint

2013-09-05 Thread John Youngquist
I use Alt d b or cntrl f8. No smart-linking. XP 32 bit Pentium I had "generate also backtrace" on (don't know why) I changed to just "generate debug symbol" and now it seems to work. Thanks JY On 9/5/2013 11:45 AM, Martin wrote: On 05/09/2013 16:18, John Youngquist w

[fpc-pascal] Could not set breakpoint

2013-09-05 Thread John Youngquist
I am running v2.4.4. I get "could not set breakpoint messages" on ordinary lines of code. What causes this? How do I fix it? Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Cross compiling Windows to arm-linux

2013-07-23 Thread John Hansen
ries modified so that it links the C runtime .o files after my own code or something like that.  But how do I accomplish that feat? John Hansen ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] using mtprocs

2013-04-18 Thread John Lee
27;/c c:\utils\arc a -mx tmp c:\live_sol\ans.dat'); exit; end; for i:=1 to Index*100 do ; // do some work end; begin ProcThreadPool.DoParallel(@DoSomethingParallel,1,5,nil); // address, startind♦ //main prog eg capturing the xml for j:=1 to 10 do begin write(j,' ');

Re: [fpc-pascal] compiling mtprocs

2013-04-18 Thread John Lee
s already in the lazarus-ccr version. > > I'm not a lazarus'er so I just followed the wiki info - so the svn ... line in the wiki which I used to get mtprocs.pas is wrong? Where do I get the fixed one? John ___ fpc-pascal maillist - fpc-pas

[fpc-pascal] compiling mtprocs

2013-04-18 Thread John Lee
) Error: No member is provided to access property mtprocs.pas(880) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted line 344 is: CurrentThread:=Self; Do I need something else with 2.7? John ___ fpc-pascal maillist - fpc

[fpc-pascal] using mtprocs

2013-04-18 Thread John Lee
ession may take 30 secs or so. Is using mtprocs as in http://wiki.lazarus.freepascal.org/Parallel_procedures#Getting_MTProcs the best way to do this? Or threads. Any other ideas? John ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] [OT] Re: Feature proposal: function-based assignment operatorst

2013-04-04 Thread John
that would be more convenient.) ps Hope I have kept track of the context of the thread, it has been a long one ... cheers, John Sunderland ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Get variable name at runtime

2013-03-06 Thread John Lee
So, why can't we have a get_name() type routine, so everyone can use it, not just those who can write pascal macros? J > Unfortunately pascal macro's are rather limited compared to C. I know I > know, you could potentially open up a can of worms, but sometimes more > control is required. > > There

Re: [fpc-pascal] Get variable name at runtime

2013-03-05 Thread John Lee
maintenance etc, but I'm guessing it wouldn't be too difficult (eg for you!) to implement. This would be especially true if it was limited to 'simple' variables longint, string, float etc John > >> Is there any way macro's could help in this respect? I'm lookin

Re: [fpc-pascal] Re: fpc registry unit

2013-03-02 Thread John Lee
On 2 March 2013 02:05, leledumbo wrote: > > Registry is not part of rtl because it's not a base unit??? This is my > point it uses 200 other f*** units that aren't really needed! > > YOU don't use those 200 units, but the UNIT YOU USE needs them. Get the > point? > Even though you don't, what abo

Re: [fpc-pascal] Re: fpc registry unit

2013-03-01 Thread John Lee
other impact is that the size of the .exe On 1 March 2013 21:55, Sven Barth wrote: > On 01.03.2013 21:57, John Lee wrote: > >> Thanks all for your help - found the .ppu and .o at last - I note than >> inifiles itself needs some other stupid unit! ! I think you'll agree

Re: [fpc-pascal] Re: fpc registry unit

2013-03-01 Thread John Lee
s possible... as the great man said!. John On 1 March 2013 19:06, Sven Barth wrote: > On 01.03.2013 19:57, John Lee wrote: > >> Thanks - just want a simple unit, I'm not using lazarus. >> >> If I go to this directory and try to compile registry with v2.6.2, >>

Re: [fpc-pascal] Re: fpc registry unit

2013-03-01 Thread John Lee
Thanks - just want a simple unit, I'm not using lazarus. If I go to this directory and try to compile registry with v2.6.2, win32, it then uses inifiles so that's needed and not part of the fpc 2.6.2 distribution afaik. Where can I find that please? John On 1 March 2013 17:52, leledu

[fpc-pascal] fpc registry unit

2013-03-01 Thread John Lee
t KeyBuf: PChar):Longint; export; John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] optimisation v2.2.2

2013-03-01 Thread John Lee
doesn't seem to make much/any difference. There used to be keyhole optimising in fpc but don't see that in v2.2.2. What about using -Oppentium3 or -Oppentium4? - they don't seem to make any difference either. Anyone any ideas/comments re

Re: [fpc-pascal] differences between .pp and .pas files

2013-02-25 Thread John Coppens
r. It's mostly not the editors that have a bug, but nobody submitted a syntax file for .pp. It has been a while, but I believe that both gedit and geany, which are GtkSourceview-based, can be extended by simply copying the pas personalization file to a pp versio

Re: [fpc-pascal] xmlConfig Documentation

2013-01-17 Thread John
On 01/17/2013 08:38 PM, Reinier Olislagers wrote: John, it would be great if you could write something on that wiki page... Not aware of existing docs either... Done. See http://wiki.lazarus.freepascal.org/xmlconf. In doing this, a few extensions come to mind: 1) Ability to set the string

[fpc-pascal] xmlConfig Documentation

2013-01-16 Thread John
with any of the more formal documentation systems !  Sorry. ) cheers, John Sunderland ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: GetTableNames in TSQLConnection / Postgresql

2012-12-21 Thread John
On 12/21/2012 10:37 PM, Tomas Hajny wrote: On Fri, December 21, 2012 11:59, Reinier Olislagers wrote: On 18-12-2012 10:49, Tomas Hajny wrote: On Tue, December 18, 2012 09:35, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Tue, 18 Dec 2012, John wrote: you can't! That brin

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-18 Thread John
always made schemas for my tables.) cheers, John Sunderland ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread John
ds in query: SCHEMA_NAME, TABLE_NAME, SCHEMA_TABLE_NAME (SCHEMA_NAME || '.' || TABLE_NAME) But original question AFAIU was about: what should GetTableNames return (schema query can return multiple columns, but what column use when fill list of table names)? GetTableNames return list o

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-16 Thread John
s like for now at least I had better just go down the path of deriving my own tPQConnection descendant. cheers, John Sunderland ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-15 Thread John
life! On 12/14/2012 09:53 PM, LacaK wrote: Hi John, Thus schema name is not selected for postresql, nor is it returned for any connection. as only the field specified by AReturnField, in this case table_name, is added to the output list. Note that pg_class does not have an easy access to the

[fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-13 Thread John
Schema, and possibly the "TableBySchema" option as in (2). It seems the "infrastructure" already exists to do all of these things. If this concept is acceptable I would be happy to work on patches for TSQLConnection and TPQConnection, but my knowledge of the

[fpc-pascal] Error message: No matching implementation for interface method ...

2012-06-27 Thread John Repucci
I'm getting the below error messages and I suspect virtualstringtree / VirtualTrees.pas is the cause. The virtualtrees.pas line it objects to is: TVTDragManager = class(TInterfacedObject, IVTDragManager, IDropSource, IDropTarget) C:\development\lazarus\components\VirtualTreeView\VirtualTrees.

[fpc-pascal] [ot] Some(paid) work to do in FreePascal

2012-03-03 Thread John Sewell
egexp tool of FPC should work -Perform a check on a DNSBL ( http://www.spamhaus.org/dbl/ ) If you are interested please contact me with a price proposal Thanks, John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] SSE 4.2 usage with FPC ?

2012-01-01 Thread John Sewell
ecially to exchange data with my local variables ? Is there a tutorial somewhere or any asm guru who could give me some hints ? Thanks, John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 2.6.0 released!

2012-01-01 Thread John Coppens
is empty! John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-07 Thread John Lee
How does it compare re 'randomness' cf current fpc version? The wikipedia reference doesn't make this clear. Or the original fpc/delphi versions? Jonas? John On 7 December 2011 14:08, Inoussa OUEDRAOGO wrote: > 2011/12/7 Peter : > > Graeme, > > > > I would

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-07 Thread John Lee
r cvs fpc archive. John On 7 December 2011 13:10, Graeme Geldenhuys wrote: > On 7 December 2011 14:54, Jonas Maebe wrote: > > > > That's correct. We use the mersenne twister, Delphi probably a linear > > congruential generator. The mersenne twister has a much larger per

[fpc-pascal] use synaser to output data to com port

2011-11-27 Thread John Lee
isn't necessarily going to be read? Do I need to config this port within synaser? John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Name of a var

2011-11-22 Thread John Lee
> > >> Yes, there are many features not everybody needs. Yet they have to be > chosen by some means (language design) and yet there will always be > disagreement. > > No, do the minimum > But remember each feature has a cost. Not only what it adds to your app > (which it may well be worth), but a

Re: [fpc-pascal] Name of a var

2011-11-22 Thread John Lee
y 40 disparately named variables because the saves and restores have to be individually coded - with this capability it could be done, reliably, in a loop. John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] using functions from units & main programme

2011-11-19 Thread John Lee
doesn't sound technically difficult to do. John On 18 November 2011 22:34, Bart wrote: > On 11/18/11, Sven Barth wrote: > > > But he wants to call "fnb" in the main program and have that call "fna" > > of the main program instead of "fna" fro

Re: [fpc-pascal] using functions from units & main programme

2011-11-18 Thread John Lee
Thanks for the fix, but it makes the code a bit more complicated than I'd hoped/thought based on my (over simple?) impression that local fns are used in place of those in units. John On 18 November 2011 16:55, Sven Barth wrote: > Am 18.11.2011 17:47, schrieb John Lee: > > Sorry

Re: [fpc-pascal] using functions from units & main programme

2011-11-18 Thread John Lee
hat it would! What can I do please, to _force_ fnb to use the fred version of fna? John On 18 November 2011 16:04, Sven Barth wrote: > Am 18.11.2011 16:49, schrieb John Lee: > >> I have a normal fpc unit, call it jim, with 2 functions fna & fnb . fnb >> >> uses internal

[fpc-pascal] using functions from units & main programme

2011-11-18 Thread John Lee
ever seen this before - is there a way I can force fnb to use the main program's version of fna, not the version that's in the unit? TIA John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] using a unit from an old version of fpc

2011-10-30 Thread John Lee
What is best way to do this - I have a unit from fpc 2.2 that I don't have the source for, that I want to use with code from a later version eg 2.4, 2.5.1 or 2.6. Can I access it via the use? Or just link to it? Tia for any ideas. John ___ fpc-p

RE: [fpc-pascal] Can't get error messages or anything with F12

2011-08-30 Thread John Youngquist
ed. I don't know who is at fault. JY -Original Message----- From: John Youngquist [mailto:jo...@iaw.com] Sent: Friday, August 26, 2011 1:10 PM To: FPC-Pascal users discussions Subject: [fpc-pascal] Can't get error messages or anything with F12 I'm running 2.4.0 and can

[fpc-pascal] Can't get error messages or anything with F12

2011-08-26 Thread John Youngquist
I'm running 2.4.0 and can't get error messages or anything from the F12 Compiler messages key. What am I doing wrong? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to detect serial/usb-serial ports.

2011-07-27 Thread John Lee
I use the synaser unit - works for fpc 2.4, win and I think for other o/s too - google for info - it has the capability to look for serial ports, set baud rates, and to do character & block input & output. hth John On 27 July 2011 09:22, P. vanderWal wrote: > ** > Hello, >

Re: [fpc-pascal] simple messagebox for windows

2011-07-05 Thread John Lee
#x27; message in my xp. Anyone know if there is a messageboxtimeout or similar functionality in win or a fpc implementation of this? John uses windows; function MessageBoxtimeout(w1:longint;l1,l2:pointer;w2:longint;l,t:longint) :longint; stdcall; external 'user32' name 'MessageBoxtime

[fpc-pascal] simple messagebox for windows

2011-07-05 Thread John Lee
, with a n sec timeout. Seems as if 'dialogs' has the functionality, but it not sure what other stuff I need to compile it. Alternatively maybe I should make my own using the windows api- anyone got a short example of this? Any ideas welcome... John __

Re: Re[6]: [fpc-pascal] read lines at end of file

2011-05-29 Thread John Lee
either happens? Thanks again for this help. John On 14 April 2011 16:03, José Mejuto wrote: > Hello John, > > Thursday, April 14, 2011, 3:26:48 PM, you wrote: > > JL> Hi there, thanks for this - looks a very complete function. I hadn't > JL> realised that best

[fpc-pascal] accessing files from a function

2011-05-15 Thread John Lee
s the file handles etc are local to the function are volatile, so cannot be accessed in the main program Is there a simple way to fix this ie to make this function work. Of course one can const in a function to make normal variables non volatile...but files etc? TIA for any ideas...John ma

[fpc-pascal] fpc graph

2011-05-02 Thread John Lee
nce of running it, plus short example program, eg of plotting simple lines/sine wave? There are no examples in the svn. TIA John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] delphi compatibility

2011-04-21 Thread John Lee
t? Are they delphi? John . ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] read lines at end of file

2011-04-11 Thread John Lee
this very fast so guess there must be a fast way to do it in pascal too? TIA for any ideas John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] com port using prolific driver

2011-03-12 Thread John Lee
at'll work on win xp. John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Locate method in TBuFDataset

2010-10-19 Thread John
ld for the options, but I can't see that it is set.  If they were set in that structure, DBCompareText seems to honour loCaseInsensitive, but takes no notice of loPartialKey. cheers, John Sunderland ___ fpc-

[fpc-pascal] Error: Invalid DLL D:\WINDOWS\system\odbc.dll: invalid magic code

2010-09-19 Thread John
nyone have any ideas ?  The rest of the process seemed fine.  I haven't messed with D:\WINDOWS\system\odbc.dll as far as I know. thanks, John Sunderland ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] State of FPC docs.rant

2010-04-26 Thread John
On 26/04/2010 11:52 PM, Graeme Geldenhuys wrote: ... John het geskryf: On the other hand, Joseph has a point - I have worked out most bits of FPC over the course of a few years, but Granted that the bulk of FPC's documentation is simply Class or API documentation. A more "new

Re: [fpc-pascal] State of FPC docs.rant

2010-04-25 Thread John
ion, it is the documentation system it self. I suspect that all the details are documented, but no-one has written the overview, because the people who wrote it knew it so well, they did not see the need. Or perhaps I just have not ever found it. cheers John

Re: [fpc-pascal] Dosemu problems compiling

2010-04-06 Thread John Coppens
2.4.x. I just noticed, because 2.2.x didn't accept a writeln of an enumerated scalar, which 2.4.x does, apparently. But 2.2.x did start compiling. Any recent changes in the fpc executable that could cause the DosEmu problem? John ___ fpc

Re: [fpc-pascal] Documentation strangeness

2010-04-05 Thread John Coppens
icularly at a time where xml is the magic recipe for everything ;-) Greetings, John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
On Mon, 5 Apr 2010 17:04:55 +0200 Jonas Maebe wrote: > Unlikely. You can always disable the explicitly with -O-. Without a > compilable example program that demonstrates the problem I cannot help > further. Ok... Thanks! Will try to extract the important pa

[fpc-pascal] Dosemu problems compiling

2010-04-05 Thread John Coppens
). I looked up the possibility to cross-compile, but that doesn't seem possible under x86_64 (no 32bit targets)? Help! John ERROR: Fault handler re-entered! signal=11 _trapno=0xE ERROR: cpu exception in dosemu code outside of DPMI client! trapno: 0x0e errorcode: 0x0007 cr2: 0x e

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
tly enabled. John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
ebugger. That was it - but it seems slightly different from C. I actually had to leave gdb and go back (probably could have reloaded). Doesn't gdb detect source code changes? It's been a while, but I seem to remember gdb warning about the C source file having been changed. John _

Re: [fpc-pascal] Documentation strangeness

2010-04-05 Thread John Coppens
aeme, Sorry for my ignorance - what are INF files? Google seems confused too. John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
symbol: ', sy); (gdb) n I haven't seen this kind of problem before, not in Pascal nor in C. Why is the '... to 1' appearing in the listing? Using FPC 2.4.0, and gdb 6.8 John ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] Documentation strangeness

2010-04-04 Thread John Coppens
found the 'good' one - just the old version. Thanks for deleting ;-) John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Documentation strangeness

2010-04-03 Thread John Coppens
h is on-line at the moment. I thought it would be up-to-date, but it seems the 2.4 package has a much newer html version. Wouldn't it be advisable (and probably save a lot of questions) to get the online version updated? John ___ fpc-pascal mai

[fpc-pascal] Documentation strangeness

2010-04-03 Thread John Coppens
t a little frustrating, but maybe it's an easy thing to avoid and regenerate the document. If it's more work-intensive, I offer my help in editing... John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Challenging port of Borland Pascal program to FPC

2010-01-17 Thread John Youngquist
JY Jeff Wormsley wrote: John Youngquist wrote: I would like to port the program as is, but eventually get a PCI 48 I/O line card to escape the ISA bus and also talk USB as well. Getting it to run on later versions of Windows might be useful. This program controls a machine on a single purpose computer

  1   2   3   >