> 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
platform-speci
> 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 C/C++/Pasc
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 som
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 -
Fro
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 fami
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
___
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"
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 unle
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 w
>When I've read everything up to the score (using scanblack/scanwhite),
> and then do "read(line,awayscore)" the program hangs (using read now, as I
> want to read the number and not a word).
P.S. "awayscore" IS defined as an integer, in case anyone is going to
ask me if I've defined it cor
Firstly, my current challenge, and then some responses to some other
comments that were made.
> > replace result:= by scanblack:=
>
>That was the missing piece of the puzzle. Thank you (and to Anton
> too)!
I've started actually writing my code now (I have a very busy life, so
it someti
> 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
> replace result:= by scanblack:=
That was the missing piece of the puzzle. Thank you (and to Anton too)!
dp.
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
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
As per my last question to the list, I'm sure there's a way to do this,
but I'm not sure how. Last time I got a quick answer after I'd spent ages
trying to work it out myself, so I'll ask first this time, instead of
banging my head against the keyboard. :-)
I'll use the actual example I am w
I have a friend with a Mac who I want to share some programs with, but
there doesn't appear to be any mention of the Mac compiler on the download
page. I've seen the Mac compiler get mentioned a few times in the news
section. Is it available for download, and if so, where? If not, how long
befor
> The plus concatenates strings,
Okay, I see.
> Basically you can always do this:
> Writeln('Hello, ' + 'world!');
> Writeln('Hello, ', 'world!');
> and they do the same thing.
I don't think I've ever seen the former. This is useful stuff to know!
:-)
> P.S. find a good book about p
> Exec(GetEnv('COMSPEC'), '/c copy '+ParamStr(1)+' '+ParamStr(1)+'.bak /v');
Now THIS is what I needed to know! Thank you. :-) I originally tried a
writeln kind of syntax - '/c copy ',paramstr(1),' ',paramstr(1),'.bak /v'
- but that didn't work, hence my other attempts to build the string. I
di
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 usi
> If you use CRT, remove it, and all will work normally.
Ah, okay. I am writing a budget program, so I was using green and red
text-colours. It's the first time I've used coloured text. I guess I'll
have to create a black and white version in order to save the output.
thanks,
dp.
_
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
> 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
w
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(filenam
> 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), para
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
25 matches
Mail list logo