home *** CD-ROM | disk | FTP | other *** search
HyperBook | 1990-10-07 | 29.5 KB | 242 lines |
- vIXdK
- "Appointment book"
- Drawing1
- Note1
- 10 am
- 11 am
- 12 pm
- Note2
- "9 am appointment"
- "10 am appointment"
- "11 am appointment"
- "12 pm appointment"
- "1 pm appointment"
- "2 pm appointment"
- "3 pm appointment"
- "4 pm appointment"
- "Cancel"
- CANCEL
- "Last week"
- Last week
- "Next week"
- Next week
- "Tomorrow"
- Tomorrow
- "Yesterday"
- Yesterday
- "Make new page"
- MAKE NEW
- Calendar page
- /* Enter appointment */
- ob = initiator()
- if ob = '' then EXIT
- if gettype(ob) ~= 'Note' then EXIT
- oldtx = deletetext(ob,0,-1)
- newtx = inputstring('Enter' getname(ob) 'data', compress(oldtx,'0a'X))
- if newtx = '' then newtx = oldtx
- call inserttext(ob, newtx, 0)
- Set appointment
- /* Cancel an appointment */
- row = getclickrow('Click on the appointment to be cancelled')
- col = getcolumn()
- ob = getobjectat(col, row)
- if ob = '' then EXIT
- nm = getname(ob)
- if gettype(ob) = 'Note' & right(nm,11) = 'appointment' then
- call cleartext(ob)
- Cancel appointment
- V/* create new page in appointment book */
- call beginprompt('Working...')
- lpg = objectnumber('',numpages())
- last = getname(lpg)
- pg = mastertopage('Calendar page', 0)
- parse var last weekday month day '/' year .
- NEXT.MONDAY = 'Tuesday'
- NEXT.TUESDAY = 'Wednesday'
- NEXT.WEDNESDAY = 'Thursday'
- NEXT.THURSDAY = 'Friday'
- NEXT.FRIDAY = 'Monday'
- months = 'JanFebMarAprMayJunJulAugSepOctNovDecJan'
- weekday = upper(weekday)
- weekday = NEXT.weekday
- newmonth = 1
- if weekday == 'Monday' then
- day = day + 3
- day = day+1
- if year // 4 = 0 then
- febdays = 29
- febdays = 28
- if day > 31 then
- day = 1
- else if day > 30 then do
- if index('AprJunSepNov',month) > 0 then
- day = 1
- end
- else if day > febdays & month == 'Feb' then
- day = 1
- newmonth = 0
- if newmonth then
- month = substr(months,index(months,month) + 3, 3)
- if day = 1 & month = 'Jan' then
- year = year + 1
- call setname(pg, weekday month day || '/' || year)
- button = searchname(lpg,'Make new page')
- if length(button) > 0 then
- if getpage(button) = lpg then
- call delete(button)
- call gotopage(pg)
- NewPage
- e/* Go back 5 pages */
- n = sequencenumber(':')
- if n > 5 then call gotopage(objectnumber('', n - 5))
- Last week
- s/* Go ahead 5 days */
- n = sequencenumber(':')
- if n <= numpages() - 5 then call gotopage(objectnumber('', n + 5))
- Next week
- "Appointment book"
- Drawing1
- Note1
- 10 am
- 11 am
- 12 pm
- Note2
- "9 am appointment"
- Don't forget to clone that
- page! But first, walk the
- "10 am appointment"
- Improve the lot of humanity
- in some important way.
- "11 am appointment"
- Fly to Bermuda (remember to
- flap faster this time).
- "12 pm appointment"
- Build a house underneath a
- big, spreading tree. Live in
- "1 pm appointment"
- Lunch with Fifi, Bambi,
- oise and Inge
- "2 pm appointment"
- Talk to J.B. about acquiring
- that Brazilian whoopee
- cushion conglomerate.
- "3 pm appointment"
- Sell that extra company of
- ours to some foreigner.
- "4 pm appointment"
- Invest heavily in a
- plummeting stock.
- "Last week"
- Last week
- "Next week"
- Next week
- "Tomorrow"
- Tomorrow
- "Yesterday"
- Yesterday
- "Cancel"
- CANCEL
- "Info"
- This is an ARexx-driven version of a
- standard business appointment calendar.
- To create a new page, go to the end of
- the calendar and click on the "Make new
- page" gadget. To create/edit an entry
- for a particular time of day, just
- click on the time slot desired.
- Drawing1
- "Thursday Oct 4/90"
- "Appointment book"
- Drawing1
- Note1
- 10 am
- 11 am
- 12 pm
- Note2
- "9 am appointment"
- Pick up a cow at the cow
- store.
- "10 am appointment"
- "11 am appointment"
- "12 pm appointment"
- "1 pm appointment"
- "2 pm appointment"
- Sign a treaty, start a war.
- "3 pm appointment"
- "4 pm appointment"
- Late lunch with Sinatra.
- Remind Frank about money.
- "Cancel"
- CANCEL
- "Last week"
- Last week
- "Next week"
- Next week
- "Tomorrow"
- Tomorrow
- "Yesterday"
- Yesterday
- "Friday Oct 5/90"
- "Appointment book"
- Drawing1
- Note1
- 10 am
- 11 am
- 12 pm
- Note2
- "9 am appointment"
- "10 am appointment"
- Dentist... have mouth
- removed.
- "11 am appointment"
- "12 pm appointment"
- "1 pm appointment"
- Get blind drunk in sleazy
- bar. Forget it happened.
- "2 pm appointment"
- "3 pm appointment"
- "4 pm appointment"
- Ask for - nay, demand -
- sizable raise.
- "Cancel"
- CANCEL
- "Last week"
- Last week
- "Next week"
- Next week
- "Tomorrow"
- Tomorrow
- "Yesterday"
- Yesterday
- "Monday Oct 8/90"
- "Appointment book"
- Drawing1
- Note1
- 10 am
- 11 am
- 12 pm
- Note2
- "9 am appointment"
- "10 am appointment"
- Change plans for 12 o'clock
- appointment.
- "11 am appointment"
- "12 pm appointment"
- "1 pm appointment"
- "2 pm appointment"
- "3 pm appointment"
- "4 pm appointment"
- "Cancel"
- CANCEL
- "Last week"
- Last week
- "Next week"
- Next week
- "Tomorrow"
- Tomorrow
- "Yesterday"
- Yesterday
- "Make new page"
- MAKE NEW
- "Tuesday Oct 9/90"
-