nsands(1357)13Feb1996 23:34
TITLE: Status window
Something really strange just happened to me, and I wonder if anyone
can shed any light on it.
I was opening JBData, and while it was opening, I did Psion-menu, to
get a look at the status window. That shouldn't cause a multi tasking
unit like the Psion any problems, should it? And it brought up a
Series 3 style window. After a couple of seconds it replaced it with a
3a window, but I could still see where the series 3 window had been,
ie the screen wasn't redrawn under it. It shows up as twice as wide as
the 3a window. This 3a window was then permanent, I couldn't move it,
not only in JBData, but in any application, including the system
screen. It wasn't an "active" window, either, meaning that things on
it that ought to move, like the disk icons and the remote link icons,
and the CAPS flag, didn't move at all ever. It was just an intert
picture of a status window.
The Psion was still treating the rest of the screen as if there were
no status window up, though, so for example when I looked at a menu
card at the extreme right of the screen, it showed it underneath the
status window, it didn't resize the screen to fit everything in.
In the end I had to soft reset. Can anyone think why this has
happened, or what I can do next time that's maybe a little less
destructive than a soft reset?
Grateful for any advice.
Neil

jezar(1315)15Feb1996 08:08 c15*

This is not a bug in JBData.

In fact, you can make any application - including the built in ones -
do this if you hammer away like mad on Psion-menu during startup.

It happens because all applications on the S3a start off being 
Series 3 Classic applications by default (for compatibility reasons). 
Then they make a call to the Window Server to announce the fact that they 
are Series 3a applications.

The built-in applications, and OPL, do this very fast after startup.
For applications written in HWIF, I think it depends on the program in 
question. It's simply a question of the time between connecting to the 
Window Server and changing compatibility mode.

What happens (as you might have guessed) is that the pressing of 
Psion-menu during this time frame, starts off by getting a Series 3 
Classic status window. But, by the time the status window is due to 
automatically disappear, it has suddenly "changed" into an S3a one.

But you don't need to reset your machine when it gets like this.
You can cure it with this awesomely complex OPL program:

PROC sw:
    GET
ENDP

Translate the above program using "S3 translate" from the menu, and then 
run it. When the screen is blank, press Psion-Menu and then any other key.
Your machine will then be back to normal.

Hope that helps,
Regards,
Jezar.

  
jbinnie(953)2Mar1996 10:28 c244*
Getting file size information

Here is some code which will do the trick.

PROC fsize&:(f$)
        REM Pass the FULL file spec of the file you want to size
        REM eg "LOC::M:\DAT\DATA.DBF"

        LOCAL pinfo$(16),ppinfo%,fname$(128),err%,ret&
        LOCAL ax%,bx%,cx%,dx%,si%,di%   rem variables MUST be in this order

        ppinfo% = ADDR(pinfo$) + 1      rem pinfo$ is P_INFO struct
        fname$ = f$ + CHR$(0)           rem name must be zero-terminated

        ax% = $0800                     rem $08 is subfunction number
        bx% = ADDR(fname$) + 1          
        cx% = ppinfo%
        dx% = $00
        di% = $00
        si% = $00

        err% = OS($87,ADDR(ax%))        rem $87 is FilStatusGet interrupt
        
        IF (err% AND 1)
                ret& = (ax% AND $FF) - 256
        ELSE
                POKEB ADDR(pinfo$),16
                ret& = PEEKL(ADDR(pinfo$) + 5)
        ENDIF
        RETURN ret&
ENDP

Regards

Jon Binnie
                
slitchfield(827)2Mar1996 11:13 c244*
PROC fsize&:(f$)

        LOCAL pinfo$(16),ppinfo%,fname$(20),err%,ret&
        LOCAL ax%,bx%,cx%,dx%,si%,di%   /*  variables MUST be in this 
order  */

        ppinfo% = ADDR(pinfo$) + 1      /*  pinfo$ is P_INFO struct  */
        fname$ = f$ + CHR$(0)           /*  name must be zero-terminated  
*/

        ax% = $0800                                     /*  $08 is 
subfunction number  */  bx% = ADDR(fname$) + 1                  cx% = 
ppinfo%
        dx% = $00
        di% = $00
        si% = $00

        err% = OS($87,ADDR(ax%))                /*  $87 is FilStatusGet 
interrupt  */
        
        IF (err% AND 1)
                ret& = (ax% AND $FF) - 256
        ELSE
                POKEB ADDR(pinfo$),16
                ret& = PEEKL(ADDR(pinfo$) + 5)
        ENDIF

        RETURN ret&

ENDP
                
twagstaff(915)26Apr1996 12:31 c1296*
>What are VARRAYs? 

Variable arrays, they're part of the Object Oriented Programming 
library, easily accessible from OPL.

>Where are they documented?

Mainly the SDK, though Andrew Baldwin baldwina@cix wrote an article 
in Palmtop magazine issue 2 vol 1. The code is in the palmtop_mag 
conf flist,  vastr.opl??? I think, though the article itself gives 
more info, not sure if back issues are available - is Steve Clack 
listening? If you use the code in conjunction with the defines in 
OO_VA.oph that comes with OPP, you can probably work a lot out 
yourself, though be prepared for some panics if you're experimenting 
:-)
Also longlist.zip in the *psion* flist has useful info. If you use 
the example code for yourself, make sure you destroy the array once 
you've finished with it! The code doesn't do this, and it eats 
memory with repeated calls!

For full documentation you'll need the SDK docs.

Tony

gwyn(559)26Apr1996 23:48
Agenda record internals
  Has anyone investigated the format of Agenda records in detail?  
  
  I'm dabbling with developing an app to run on Win95 to read & display 
an agenda but I've got a problem with repeat records.  

  I've got the Agnfile.doc documentation and can read & parse the records 
happily enough, but when I get a repeat record, the filepos which is 
supposed to point to the entry record doesn't match any record.  It's not 
a constant difference either, i.e. 8 bytes off in the first example and 
18 in the second!

  Any ideas?
  
Gwyn

spooley(334)28Apr1996 17:30 c1314*
I used the AGENDA3A.TXT file from the Psionics documentation to develop 
my AgnDump OPL utility (uploaded to psion/files his blink).  That gave 
me the info I needed to process the repeat records successfully.

You should be able to locate the Psionics files in the Psion file 
library on Imperial College (ftp sunsite.doc.ic.ac.uk).


mudflap(331)16Jul1996 08:42
Serial programming.
Other than the brief, but workable, paragraph at the back of the 
issued programming manual for the 3a, does anyone have any details of the serial 
port and is it possible to read from the parallel port?

Specifically, I would like like to know if it possible to introduce a timeout to 
the serial port.

Neil.

jezar(755)16Jul1996 23:55 c2861*

To do this, you must open the timer device and queue a timer on that as 
well as a read on the serial port. Then you use IOWAIT and test to see 
which went off first, the serial read or the timer.

I did an example of this for the Psion Developers conference a couple of 
years ago which beeped on a timer at the same time as responding to 
incoming serial data.

I'll mail it to you if you are interested. Alternatively, look at the X 
and Y modem device driver examples I put in the flist.

To do it properly though, you need to queue a serial read for one byte. 
When that completes you then do a test of how many bytes are 
available in the serial buffer, then you do a synchronous read of them, 
and then you repeat the process.

Regards,
Jezar.
  
tdenson(374)17Jul1996 16:59 c2880*
<< To do it properly though, you need to queue a serial read for one 
byte. 
When that completes you then do a test of how many bytes are 
available in the serial buffer, then you do a synchronous read of them, 
>>

Jezar, I've seen this technique in your code. However, why is it not 
just sufficient to queue an asynch read and then return however many 
come back ?

Tony

psion_c(480)18Jul1996 15:25 c2887*
>However, why is it not just sufficient to queue an asynch read and 
>then return however many come back ?

Tony

I hope Jezar doesn't mind my treading on his toes.

With an asynchronous read from the serial port, you can have this 
complete when you get a certain number of characters or when a 
terminator has been received.

If you don't know how many characters are coming or if there is *no* 
terminating character, then Jezar's approach is the way to go.

All the best
Ali

tdenson(265)19Jul1996 11:11 c2896*
As it happens, the application I'm involved in always has line 
terminators, but I still don't see why it matters if it doesn't. What's 
the difference between getting 1 character, and all those which are 
waiting (as long as you know how many you've read) ?

Tony
jezar(699)19Jul1996 19:04 c2896*
>I hope Jezar doesn't mind my treading on his toes.

Not at all. I'm actually on Holiday at the moment, concentrating on MIDI
stuff on my Amiga at home, so I'm trying to keep Psion-related 
things to a minimum at the moment.

On the same subject, the Amiga has a SER: logical device supposedly for
"easy" serial access via the command line etc., and this device *doesn't*
use this technique.

Consequently, if you try and get input from it, you always lose the last 
little bit because it is still stuck in the logical devices buffer (!)

The only way to get it out is to get the sender to squirt extra junk 
to "push" the stuff out of the buffer. Not very convenient at all...

Regards,
Jezar.

hzk(1234)19Jul1996 23:28 c2916*
You can find out how many characters are waiting by using a line like:
  IOW(-1,10,n%,#0)
But you should call this only if you know there is at least one character 
waiting.  Otherwise you need to keep checking, which means you end up 
with a free running loop which hogs the CPU.

So a simple routine to read the port is something like this:

  DO
    IOA to return when 1 byte (or more) waiting at serial port
    IOA to return for other events
    IOWAIT  REM program waits here until any 'event' occurs
    Is it a character at the serial port?
      If it is
        DO
          IOW(-1,10,n%,#0)    REM -1 = port opened with LOPEN("TTY:A")
          IF n% > 0
            Read n% characters
          ELSE
            BREAK
          ENDIF
        LOOP
    Else if it's another event 
      Read that event accordingly
    ENDIF
  LOOP
   
This sort of thing ensures that all characters are read as they arrive.
It ensures that if the unexpected happens, no data is lost.  Like the 
sending device gets switched off before all the characters have been read.

There is a Psion utility called SPY.APP in the flist somewhere, which I 
found invaluable to monitor what's going on when you're reading and 
writing IO events.

Roger

tdenson(286)21Jul1996 07:56 c2930*
<< But you should call this only if you know there is at least one 
character waiting.  Otherwise you need to keep checking, which means you 
end up with a free running loop which hogs the CPU. >>

But I specifically said above, an asynch read, so I still can't see the 
problem.

Tony

Thanks, Neil.

hzk(993)28Jul1996 09:17 c2951*
Maybe I've got it wrong, but if you set up a read for, say 50 chars, and 
only 30 arrive, you will never be able to read those 30 until the IOA 
returns.  An async read does return immediately, but the status bit will 
remain set at -46 until all the 50 chars have been read.

So if you do something like:

  IOA(...)
  IOWAIT
  ...
  ...
  
the IOA will return, but the program will wait at the IOWAIT until a 
signal is generated, i.e. when the 50 chars have been read, and not 
before.  The only way round this is to set up the read for 1 char, so 
that any data arrival will allow the program to proceed.

Even if you could read those 30 bytes, you would have to cancel the IOA, 
and then start another.  You would end up with the free-running loop 
again.

The Programming Manual does not describe this completely, but one way to 
learn is to experiment.  But as I said, run Psions SPY as well so you can 
see whether anything is going amiss.  Compare your program with COMMS.APP

Roger

ianbaker(353)23Aug1996 07:43 c3515*
Have you seen the following in PsiWin's help file?

Accessing PC drives from the Psion

If you want to access PC drives from your Psion (they will appear, in 
dialogs, with "REM::" before their drive letter), edit the PSIONPRC.INI 
file in your "Windows" directory, and remove the "-x" from the end of the 
following line:

engine=prcenwin.exe -x

Ian

bpechey(150)4Sep1996 12:02 c3679*
IRDA comes in different speeds - 230kbit/s (IIRC) is the sort-of default. 
There's a web site at http://www.irda.org/ which has tons of info.

Bill.

jezar(1015)7Sep1996 21:53 c3758*
> do they use the same OPL translator
Yep - except ISTR that Siena has dINITS for making dialogs with a 
small font.

> will all 3a OPL applications run on the new machines?
Yep.

> Since they have a built in RS232 port, is this accessed in the same way 
> as before? Is the port opened from OPL the same way?
Yep.

> Can the setup be initialised the same way 
> as before ( IOW(-1, 7 etc...), bearing in mind the increased baud rates?
Urm... Pass.. baldwina?

> I understood that OVAL was a development language for running on a 
> Windows PC, which produced 3a applications.
Sort of. It requires ROM-based runtime support. The WorkAbout and S3c 
have this support.

>Does OVAL 'run' in some way on the 3c?  
Yep. OVAL produces .app applications which can be installed and run on the
Series 3c like any other SIBO application.

> Or does it just give provision for a new set 
> of ROM services
Ooo no. The runtime takes up a fair chunk of ROM to provide the complete 
OVAL runtime environment.

Regards,
Jezar.
  
jezar(664)8Sep1996 18:01 c3774*
>dINITS gives a syntax error on this Siena.

Does it? - oh sorry. 
I don't have a Siena on my desk at the moment.

For some reason I'd got it into my head that Siena had the same build of 
the OPL translator that the WorkAbout has. Guess I was wrong.

In that case then, the only difference that I know for sure in OPL in the 
3c and Siena - as compared to the S3a, is that the OPL construct:

    @("myproc%"):

- which is in fact an OPL programming error - now raises the error 
"Procedure not found", instead of causing your program to go spiraling 
into death. This forces the programmer to use the construct correctly:

    @%("myproc"):

Regards,
Jezar.

  
jezar(870)8Sep1996 18:01 c3791*
> This is the method described on pp. 237-8 in the 
> Programming manual for the 3a.
Yep - I'm just personally not sure if it still works the same way.

>I wonder if OVAL has greater capabilities than OPL?
They're very different - it's not really a question I can answer yes or 
no to. It's *much* simpler to use (IMO). 

There are some obscure esoteric things you can do in OPL which you 
can't do in OVAL, but generally speaking, OVAL is *much* more powerful.

> Like dynamically adjustable dialogs 
Oh yes - OVAL is excellent in this respect. You can disable/enable any 
dialog elements dynamically, reacting to what the user does with other 
controls in the dialog. You can also use any font you want to in a dialog 
and the dialog will automatically adjust its layout in front of your 
eyes. Zoomable dialogs! - wow, what a feature that is! :-)

Regards,
Jezar.
  
jezar(336)9Sep1996 18:51 c3803*
Depends on what level. Basic Infrared is implemented using the "Bring" 
mechanism, so any existing application that has implemented "Bring" is 
automatically Infrared enabled (which is kinda nice).

As regards *low* level access to IR, I think this is done through EPOC 
interrupts - but I really don't know for sure.

Regards,
Jezar.

hzk(371)14Oct1996 21:00 c4994*
It's in PsiWin help.
Search for:  PC Drives,.....
You should read:

Accessing PC drives from the Psion

If you want to access PC drives from your Psion (they will appear, in 
dialogs, with "REM::" before their drive letter), edit the PSIONPRC.INI 
file in your "Windows" directory, and remove the "-x" from the end of 
the following line:

engine=prcenwin.exe -x
Roger.

dagriffiths(878)27Nov1996 23:42 c17*

Be careful.  The scrabble software is I understand protected so that it
is only possible to copy once (ie to copy onto a large SSD as normal 
practice).  I've been told this by a chap in the Office who has just 
bought it.  Apparently once copied you select a menu option called 
'authorise' - this option then disappears from the menu after copying and
further copies will not be authorised and therefore won't run.  I don't
understand how this works but needs checking before committing to buying
second hand.  I guess that the original will always work and this function
only stops copies of copies or multiple copies from SSD being made.  
Interesting - not aware of this form of protection being used on Psion 
stuff before.

Regards                                           
David (Timber v1.1)                               

millar(307)28Nov1996 21:02 c22*
Sounds like a method of copy protection described in the SDK.

_Probably_ you can make as many copies off the Original SSD as you want. 
 The copied program can't be copied however.  It's also likely that you 
won't be able to restore the SSD with a working version of Scrabble.

All a guess though!

Matt

gbainbridge(717)8Dec1996 23:41 c155*

A better way of getting the day name is this routine:-

PROC day$:(day%)
local ax%,bx%,cx%,dx%,si%,di%,carry%,len%
local day$(32)
ax%=$0a*256+day%
bx%=addr(day$)+1
carry%=os($89,addr(ax%))
do
    len%=len%+1
until peekb(bx%+len%)=0
pokeb addr(day$),len%
return day$
ENDP

(Note: all variables need to be declared even though they do not all 
appear to be used)

This should return the day in the correct language for any 3a.
The OPL function DAYNAME$() will return the abbreviated form of the day 
(i.e. MON for Monday)

                                 Gary.

P.S. I think you mean the function DOW() not DAY()                                 

msutherland(375)22Jan1997 13:39
Long lists in dialogs (OPL)
I am just about to release a product which uses the excellent example in 
the filelist of how to create array objects and then attach them to a 
dialog choice entry to give long lists. I am concerned however that the 
array object never seems to get destroyed. What is the correct message to 
send to the array object to destroy it?? Many thanks

swebb(42)22Jan1997 13:49 c955*

send(vaflat%,0) 

Simon Webb
SW Systems


msutherland(261)22Jan1997 23:11 c945*
Thanks for your response. Just in case you are interested the OPL code 
for capturing the current display is as follows:

local name$(127),ax%,bx%,cx%,dx%,si%,di%
name$="???????"+chr$(0)
cx%=0 : bx%=UADD(ADDR(name$),1) : ax%=$B900
Ret%=OS(141,ADDR(ax%)) AND 1

wrose(350)3Feb1997 17:07
VAT codes
Has anyone please managed to write a program which will tell whether or 
not a VAT registration number is genuine. I know that it is possible, as 
I used to have one which ran on a Psion Organiser 2 (of blessed memory). 
I'm afraid I have no idea of the algorithms, but if anyone has, I would 
be very very grateful. Many thanks, William.

rregal(642)3Feb1997 19:32 c1172*
Take    1st digit and multiply by 8
        2nd   "  "  "  "  by 7
        etc.
        7th   "  "  "  "  by 2
where the first digit is the left hand digit. Add results together and 
find the remainder after dividing by 97. Deduct_ the remainder ) from 97, 
and the result should be equal to the last 2 digits if the no. is valid. 
Alternatively, do the sum on the first seven digits, then add the last two 
(as one number) and the result should divide exactly by 97

eg Vat No 453 267 152

48=32
57=35
36=18
25=10
64=24
73=21
12=02
        ---
        142
         52
        ----
        194
        
=297

|)
|\ichard.

jljones(349)5Feb1997 20:52 c1221*
PROC vatno:
local l,c,n,total,last2,vatno$(9)
do
print "Enter VAT Number as a 9 digit number"
input vatno$
until len(vatno$)=9
l=8:c=0:n=1
do
c=c+l*val(mid$(vatno$,n,1))
l=l-1:n=n+1
until l=1
last2=val(right$(vatno$,2))
total=c+last2
if total/97 =int(total/97)
print vatno$, "is valid"
else print vatno$, "is not valid"
endif
pause 120
ENDP

John


wrose(221)7Feb1997 17:26 c1261*
mmm, the trouble is that if 2 vat no's (mine and Curry's) are invalid 
(mine is 234 1487 74), the program is of no help. Has anyone any 
suggestions please (particularly after all John's hard work). Best wishes 
William

jljones(182)7Feb1997 19:56 c1294*
> (mine is 234 1487 74)
My program says that is valid. Can you check that you have copied the 
program exactly?
Have you tried it with other VAT numbers?
If so what happened?

John

tsteven(220)8Feb1997 07:24 c1298*
Well 234 1487 74 comes out as Valid on mine, but the Curry's number 226
6579 33  (if correct) comes out as Invalid.


Rgds Tony                                         
(Via ReadCiX 4.9c & 3c)                           

wrose(329)10Feb1997 18:10 c1298*
I've checked it 6 times, and even have changed the "l" parameter to "p" 
just in case I was mixing up "l" and "1". No avail. I have not yet had 
one number that it confirms to be correct. Heaven knows what the problem 
is - particularly when others seem to be able to register my number as 
OK. Any ideas? All the best, William

jljones(365)10Feb1997 21:10 c1354*
A lower case "L" was a poor choice and using "L" it should read
local L,c,n,total,last2,vatno$(9)

L=8:c=0:n=1
do
c=c+L*val(mid$(vatno$,n,1))
L=L-1:n=n+1
until L=1

If that doesn't work, alter the end of the prog to the following, run it 
with your VAT number and let me know the three numbers printed.

endif
print c
print total
print last2
pause 120
ENDP


John

wrose(244)11Feb1997 17:12 c1361*
Thank you SO much. All is now well. (I discovered that I had put a one 
when an "l" should be somewhere, and now it is working perfectly. Thank 
you not only for doing it in the first place, but for being so patient. 
All best wishes, William

petew(1905)6Feb1997 10:56 c1244*

Well here it is, EASTER CALC
I don't pretend to understand it, but it works.

Its written in Clipper but should be translateable. Note that it is only 
good for the Julian calendar ie > 1582, it also assumes full century for 
the year. It returns the date of easter sunday in ansi date format, 
CCYYMMDD as a string.

Peter
----------------------------------------------------------------
FUNCTION EASTER (nYear)
  local nGold, nCent, nCorx, nCorz, nSunday, nEpact, nMoon,;
        nMonth := 0, nDay := 0


     IF nYear > 1582

        * <<nGold>> is Golden number of the year in the 19 year Metonic cycle
        nGold = nYear % 19 + 1

        * <<nCent>> is Century
        nCent = INT (nYear / 100) + 1

        * Corrections:
        * <<nCorx>> is the no. of years in which leap-year was dropped in order
        * to keep step with the sun
        nCorx = INT ((3 * nCent) / 4 - 12)

        * <<nCorz>> is a special correction to synchronize Easter with the moon's
        * orbit.
        nCorz = INT ((8 * nCent + 5) / 25 - 5)

        * <<nSunday>> Find Sunday
        nSunday = INT ((5 * nYear) / 4 - nCorx - 10)

        * Set Epact <<nEpact>> (specifies occurance of a full moon)
        nEpact = INT ((11 * nGold + 20 + nCorz - nCorx) % 30)

        IF nEpact < 0
           nEpact += 30
        ENDIF

        IF ((nEpact = 25) .AND. (nGold > 11)) .OR. (nEpact = 24)
           ++nEpact
        ENDIF

        * Find full moon - the <<nMoon>>th of MARCH is a "calendar" full moon
        nMoon = 44 - nEpact

        IF nMoon < 21
           nMoon += 30
        ENDIF

        * Advance to Sunday
        nMoon = INT (nMoon + 7 - ((nSunday + nMoon) % 7))

        * Get Month and Day
        IF nMoon > 31
           nMonth = 4
           nDay = nMoon - 31
        ELSE
           nMonth = 3
           nDay = nMoon
        ENDIF
     ENDIF

  
RETURN Str(nYear,4) + Str(nMonth,2) + Str(nDay,2)   
  
petew(84)6Feb1997 12:51 c1245*
<<  nGold = nYear % 19 + 1 >>
Should mention the % is the modulus operator.

Peter

allsorts(1730)6Mar97 00:37 c1713*
Here it is:

year_symbol = "";
style = italic;
!
! Celebrations
!
{
alias = e;
"Easter Day" = easter;
}
"New Year's Day" = fix(1,1);
"St. Valentine's Day" = fix(2, 14);
"Mother's Day" = float(3,0,2);
"Father's Day" = float(6,0,3);
"Halloween" = fix(10, 31);
"Guy Fawkes Night" =fix(11,5);
"Christmas Eve" = fix(12,24);
"Christmas Day" = fix(12,25);
"Boxing Day" = fix(12,26);
"New Years Eve" = fix(12,31);
!
! Bank Holidays
!
year_symbol = "B";
"New Year Bank Holiday" = fix(1,1)
                       doneif(weekday(1)
                           or weekday(2)
                           or weekday(3)
                           or weekday(4)
                           or weekday(5))
                        float(1,1,1);

"Good Friday Bank Holiday" = e - 2;
"Easter Monday Bank Holiday" = e + 1;
"May Bank Holiday" = float(5,1,1);
"Spring Bank Holiday" = float(5,1,4);
"August Bank Holiday" = float(8,1,4);
{
alias= X;
"Christmas Bank Holiday" = fix(12,25)
                          doneif(weekday(1)
                              or weekday(2)
                              or weekday(3)
                              or weekday(4)
                              or weekday(5))
                           float(12,1,1,25);
}
"Boxing Bank Holiday" = X+1
                     doneif(weekday(1)
                         or weekday(2)
                         or weekday(3)
                         or weekday(4)
                         or weekday(5))
                     float(12,1,1,26);

Note that this has the incorrect stuff for Mothering Sunday, hum, does
Fathers Day relate to Easter in some way as well? Also it places two entries
for Christmas etc when they are on a week day. Can't see a way around that.

Cheers
Dave.

dbrewood(1955)6Mar97 06:54 c1738*
Got it, cheers. A little different from mine. Will be uploading mine:

! UK Holiday and Celebrational Days
!
! I have tried to check thoroughly the accuracy of both spelling
! and dating however I would appreciate any corrective information
! being fed back to me if inaccuracies or errors are found.
!
! Daron M. Brewood  - March 1997
! dbrewood@nest.demon.co.uk / dbrewood@cix.compulink.co.uk

year_symbol = "F";
style = bold,italic;
{"Easter Sunday" = easter; alias = e; }
"Good Friday" = e - 2 ;
"Easter Monday" = e + 1;
"Ash Wednesday" = e - 46;
"Mothering Sunday (4th Sunday in Lent)" = e -21;
"Palm Sunday (6th Sunday in Lent)" = e -7;
"Maundy Thursday" = e -3;
"Ascension Day" = e + 39;
"Whit Sunday (Pentecost)" = e + 49;
"Remembrance Sunday" = float(11,0,2);

{
  year_symbol = "A";
  "St. Valentine's Day" = fix(2, 14); ! February 14
}
  year_symbol = "A";
  "Fool's Day" = fix(4, 1); ! April 1
{
  year_symbol = "H";
  "May Day" = float(5, 1, 1); ! First Monday in May
}
{
  year_symbol = "H";
  "Bank Holiday" = float(5, 1, -1); ! Last Monday in May
}
{ 
   year_symbol = "S";
   "Spring Day" = fix(3, 20); ! March 20
}
{ 
   year_symbol = "S";
   "Mid-Summers Day" = fix(6, 21); ! June 21
}
{ 
   year_symbol = "S";
   "Autmun Day" = fix(9, 23); ! September 23
}
{ 
   year_symbol = "S";
   "Mid-Winters Day" = fix(12, 21); ! December 21
}
{
  year_symbol = "A";
  "Father's Day" = float(6, 0, 3); ! Third Sunday in June
}
{
  year_symbol = "H";
  "August Bank Holiday" = float(8, 1, -1); ! Last Monday in Aug
}
{ 
   year_symbol = "";
   "Halloween" = fix(10, 31); ! October 31
}
{ 
   year_symbol = "";
   "Mid-Winters Day" = fix(12, 21); ! December 21
}


"Christmas Eve" = fix(12, 24); 
"Christmas Day" = fix(12, 25); 
"Boxing Day" = fix(12, 26); 
"New Year's Eve" = fix(12,31);
"New Year's Day" = fix(1,1);


Thu 06 Mar 1997 06:47:18
Daron Brewood                                     
(Using a Psion 3a and Timber 1.1a)                

sstiles(120)7Mar97 22:20 c1779*
Ctrl and the number keys create the relevant accent, followed by 
the letter. Ctrl 2 u will give you umlaut u.

Sharon

grovesey(589)22Mar97 10:31 c1779*
Characters with CTRL/Number

 142   143   160   181  
 182   183   198   199  
 134   131   132   133

 135   128   189

 136   137   138   144  
 210   211   212   130

 214   215   216   139  
 140   141   161

 164   165

 147   148   149   153  
 162

 168   173

 150   151   154   163  
 233   234   235   129  

 236   237   152  

 190   145   146

 155   157

 171   172   243

 166   167

 169   184   230   231
 245   245   157   246

 248   251   253   252

Regards,

John Grove  

Finchley  LONDON  UK

twagstaff(195)27Mar97 09:52 c2056*
>So, my macro checks if the active app is Agenda 

Use
pid% = ActPid%:
tskname$ = Pid2Tsk$:( pid% )

tskname$ will be "WORD.$*" (the .ext will vary) if it's a memo, 
"AGENDA.$*" if Agenda.

Tony


