Simple calendar app

C and PASCAL (or any other high-level languages) in here please

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

PeterS
Atari Super Hero
Atari Super Hero
Posts: 599
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Simple calendar app

Post by PeterS »

I did a fix so if the dtend is missing then end date is set to the start date but the events still aren't read.

It's something to do with the size of the file or number of events. By deleting everything before and after 2022 the events are shown.
PeterS
Atari Super Hero
Atari Super Hero
Posts: 599
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Simple calendar app

Post by PeterS »

Actually it was the line endings on the file.

Once it was save with cr/lf endings Gemical opened all 299 events.
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13219
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Simple calendar app

Post by wongck »

remembered in my Uni days.... for Pascal use readln to read entire line of text. That should work for both /cr/lf, /cr or /lf.
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff that are no longer for sale due to them over 30 years old - click here for list
Lostboysix
Atari freak
Atari freak
Posts: 70
Joined: Thu Sep 24, 2009 11:39 pm

Re: Simple calendar app

Post by Lostboysix »

Did you release a new version? If yes, I am happy to test it.
Thanks for all your efforts!
PeterS
Atari Super Hero
Atari Super Hero
Posts: 599
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Simple calendar app

Post by PeterS »

Yes, v0.3 is on GitHub.

It uses readln but it doesn't like LF eoln.
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13219
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Simple calendar app

Post by wongck »

Ok, must be a different Pascal flavour / variant :roll:
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff that are no longer for sale due to them over 30 years old - click here for list
Lostboysix
Atari freak
Atari freak
Posts: 70
Joined: Thu Sep 24, 2009 11:39 pm

Re: Simple calendar app

Post by Lostboysix »

Hi Peter,

v0.3 is crashing for me on both MagicPC and Aranym.
You do not have the required permissions to view the files attached to this post.
PeterS
Atari Super Hero
Atari Super Hero
Posts: 599
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Simple calendar app

Post by PeterS »

Crashing or just logging ?

I had no luck with aranym on Ubuntu either but I'm not too bothered as long as it runs on hardware. My goals are functionally and improving the code structure at the moment.
User avatar
robv
Captain Atari
Captain Atari
Posts: 173
Joined: Mon Nov 09, 2020 7:39 pm
Location: Netherlands

Re: Simple calendar app

Post by robv »

Looks very promising! I now can run v0.3 under MagicPC, previous versions would hang. The lat/lon data from the config file is written repeatedly to the desktop, scrolling up the screen. Hope it can be fixed. A working ICS calender would be great.
Rob
engaged with Atari ST since 1987
Post Reply

Return to “C / PASCAL etc.”