Re: [fpc-pascal] Cross platform mobile development

2016-09-07 Thread donald . pedder
> but I haven’t really gone full into learning how to make Android bindings work    Oh and you should also check out some version of MVVMcross (there's at least two I've heard of so far) while you're checking out Xamarin. You put all your business-logic into that layer, and anything

Re: [fpc-pascal] Cross platform mobile development

2016-09-07 Thread donald . pedder
> I looked at a Xamarin tutorial and it looks pretty interesting if you’re willing to move to C# (not so bad for Pascal guys perhaps?).    Yep, I think so. For Phonegap I would need to learn CSS and PHP (plus get up to speed on the latest HTML), whereas learning C#, since I already know

Re: [fpc-pascal] Cross platform mobile development

2016-09-06 Thread donald . pedder
Hi Ryan,    Just so happens this is what I've been immersed in the last few months. I have an idea for an app I'm working on - like you I have Pascal experience, but unlike you I have no Apple experience, so I've been trying to find the best way for me to code for Apple as well.    I did make

Re: [fpc-pascal] Smartphone apps in FPC

2016-03-21 Thread donald . pedder
Hi Paul, > I would suggest checking this out: > http://castle-engine.sourceforge.net/engine.php > https://github.com/castle-engine/castle-engine/wiki/Build-Too    My app isn't a game, so not sure that is of much help to me, but thanks anyway. thanks,     Donald. - Original Message -

[fpc-pascal] Smartphone apps in FPC

2016-03-19 Thread donald . pedder
Hi all,    I was on this list years ago, and then fell off at some point for some reason, but back again now. :-)    Having written for DOS all those years ago, I am now just getting into making smartphone apps, and it would be good to be able to use my old friend FPC for it. :-) I have some

Re: [fpc-pascal] Smartphone apps in FPC

2016-03-19 Thread donald . pedder
Hi Michael,    I remember your name from when I was here before. > I can send a URL for the articles if you want. That would be great. I would love to read them (I am at the soaking-up information stage :-) ). thanks,  Donald. - Email sent using Optus Webmail

Re: [fpc-pascal] can the output object filename be specified on the command line?

2009-12-08 Thread DONALD PEDDER
Just write a script to call the program and do the re-name. e.g. create call_bar.pas_with_rename in a directory that's in your path with following code... set homedir=(where-ever this stuff lives) cd $homedir bar.pas mv bar.o ${1}.o Then you can just run call_bar.pas_with_rename foo_bar

Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread DONALD PEDDER
Coming out of lurk mode... 1. What OS is most-used for Free Pascal? Windows? Linux? Well, speaking just for myself, :-) I'm still using DR-DOS (I have Windows as well, but not by choice. Grrr - the punitive measures in the anti-trust case didn't go far enough! I don't buy software

[fpc-pascal] DOS find

2006-02-02 Thread DONALD PEDDER
I'm having issues with the following 2 lines of code... Exec(GetEnv('COMSPEC'),'/c find '+paramstr(1)+' qbslist.txt'); writeln('return code ',lo(DosExitCode)); Even when nothing is found I still get return code 0! :-\ I need to know how many strings were found (or at a minimum if none

RE: [fpc-pascal]opening files from a text list

2003-11-28 Thread DONALD PEDDER
here is just another approach. I'll have a look at that as well. Why doesn't the compiler have the ability to read a word? All of this extra code needed because I have to read words one character at a time! It would be the single most useful addition. I don't understand why compilers have no

Re: [fpc-pascal]opening files from a text list

2003-11-27 Thread DONALD PEDDER
On Fri, 28 Nov 2003, Anton Tichawa wrote: function scanblack(var s: string): string; var i: integer; begin i := 1; repeat if i length(s) then begin break; end; if s[i] = ' ' then begin break; end; inc(i); until false; result := copy(s, 1,

[fpc-pascal]building a command string

2003-09-22 Thread DONALD PEDDER
Hi all, The previous compiler I used didn't have Exec or a way to get parameters, so I am currently fooling around with these new toys (needless to say, my old programs were pretty inflexible, with hard-coded filenames, etc.). In particular, I am trying to build and execute a DOS command

Re: [fpc-pascal]several questions

2003-09-16 Thread DONALD PEDDER
Probably another 18 files have already been opened by the OS (device drivers etc) I guess that's what's happenning, as when I increased the files it worked. It seemed so extravagent that another 18 files would be open to run a simple pascal program I didn't even think it worth checking! I

[fpc-pascal]re-direction

2003-09-16 Thread DONALD PEDDER
When I try to re-direct my program output it's not working. I have tried both file and |more, yet the program continues to display on screen as normal. Is there a known bug with this? In another compiler, I used to have such problems when I was calling the program from a batch file, but not

[fpc-pascal]several questions

2003-09-11 Thread DONALD PEDDER
The answer to my runtime error 6 (invalid filename) ended up being I had too many files open (apparently). I couldn't find anything invalid about the filename (it was a standard DOS 5.3, with no LFN), but in looking for every instance of runtime error I could find, I found the close(filename)

Re: [fpc-pascal]Read from command line

2003-09-07 Thread DONALD PEDDER
myprogram param1 param2 made those two variables available to the program and you could do some action, just like passing variables to a function. How do you do that in FPC in Linux? Don't know if it's different in Linux, but in the DOS version at least you can use paramstr(1),

[fpc-pascal]runtime error 6

2003-08-31 Thread DONALD PEDDER
I am getting runtime error 6 with a while not eof(filename) statement in a DOS program I am writing. I already successfully used it twice previously in the same program (I actually copied the previous code and altered it for the new filename and altered functionality), but when I have used it