agenda

Dottor Zivago dottorzivago at fastwebnet.it
Sun Jul 20 05:43:03 EDT 2003


Hi and nice weekend toeverybody,
I am trying now to create a little agenda.
I need a button that creates a number of cards whose name is a date.
I have put a script like this and it works

on mouseup
  set the usesystemdate to true
  put the short date into data
  repeat with i=1 to 3
    convert data from short date to seconds
    put data + (60 * 60 * 24 )*i into giorno
    convert giorno to long date
    create card giorno
  end repeat
end mouseup
It creates 3 cards from today's date

Now I would like to create a x number of cards from a x date
This is my GREAT script:
on mouseup
  set the usesystemdate to true
  ask "Insert start date"
  put it into dataini
  ask "Insert number od days to create"
  put it into giorni
  repeat with i=1 to giorni
  convert dataini from shortdate to seconds
  put dataini + (60 * 60 * 24 )*i into giorno
  convert giorno to short date
  create card giorno
  end repeat
end mouseup
It DOESN'T work

Better stop and play the guitar now :-(((
Any help greatly appreciated
Ciao
Ubaldo

PS a public thank you to Sarah who has been so kind to mail me her nice
calendar stack :-)




More information about the use-livecode mailing list