Re: Re[2]: [fpc-pascal] simple messagebox for windows

2011-07-05 Thread johnelee1944
Thanks - thought win stuff always case independent! John On , José Mejuto wrote: Hello FPC-Pascal, Tuesday, July 5, 2011, 6:54:37 PM, you wrote: JL> Trying to implement a win messagebox with timeout, I googled & found a JL> mention of an undocumented messageboxtimeout api & its del

Re: Re: [fpc-pascal] accessing files from a function

2011-05-16 Thread johnelee1944
thanks all - btw it wasn't the real code just an example I made up , the while loop wasn't needed- mistake! But the q still remains - having three functions would still give the problem I have now- that when doing a file_read (my function flag=1) would say 'file not open' because the handle

Re: Re: [fpc-pascal] fpc graph

2011-05-02 Thread johnelee1944
thanks - what are the features of ptcgraph vs graph? - I just want simple line graphs in win eg of data from a file, so was guessing that graph, from its name, was the 'best' option. J On , Nikolay Nikolov wrote: On 05/02/2011 02:58 PM, John Lee wrote: Been trying to use the windows gra

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

2011-04-11 Thread johnelee1944
So the idea is to open file eg as file of array [1:65536] of char or something similar, seek & read to end of file, then go through the last array converting to strings by finding crlfs correct? Is this the simplest way? If not any outline code? John On , José Mejuto wrote: Hello FPC-Pas

Re: Re: [fpc-pascal] com port using prolific driver

2011-03-20 Thread johnelee1944
Paul and other responders, thanks. Think I'ma bit clearer how to do it now. q1) My com device is an energy monitor that sends a block of xml data, 1000 bytes or so, every 6 secs. Guess this means I might be better 'using getbuf or whatever it's called in synaser, rather than single char at a

Re: Re: [fpc-pascal] (Unix) serial port handling

2011-03-10 Thread johnelee1944
On , Mark Morgan Lloyd wrote: I was using this to communicate with an HP instrument a few weeks ago, so have my own re-implementation of some of the stuff. I'll look at doing a patch, preparatory to seeing if I can hack a complementary Win-32 equivalent. Mark, afaik there isn'ta way of