Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2003
    Posts
    712

    SAMPLE: Calendar Plugin

    Hello,

    This sample project demonstrates the Calendar Plugin.

    Skills Used: Calendar Plugin Object, If Statements, Multi Line Input, Notes, Dates.

    Update: Added actions to On Close event. Also added multi-line note support. Thanks to Worm for the technique!
    Attached Files
    Last edited by Desmond; 10-13-2005 at 08:35 AM.

  2. #2
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Would someone take a look at this please. I have it writing & clearing entries in a text file (called: "businessCD.txt" in the windows folder - you need to put a blank txt file there). Adding and clearing is fine. But I would like the user to be able to edit an entry (without clearing it). When you edit an existing entry, I can't seem to figure out how to delete that existing entry before adding the update. You'll see what I mean when you look at the test, I hope

    I guess a simple question would be: How can you search for the date in the text file and, not only delete that line, but the next line below it (without knowing what the string is). This would solve the problem, unless there's a much better way to do this entirely.
    Attached Files

  3. #3
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    I guess a simple question would be: How can you search for the date in the text file and, not only delete that line, but the next line below it (without knowing what the string is).
    I have tried up to adding six (6) different blog notes-to-dates and then removing some in the middle and everytime it removes the date and the blog text immedately below that date. Thus, it seems your program is already doing what you intended it to do.

    Intrigued

  4. #4
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Hi Intrigued, thanks for looking. Here's the dilemma. Add a few dates and notes, works as expected. Now, if you "edit" a certain date - let's say you have a note for the 15'th of the month: "Pay the car payment"

    -- Edit this note and add to it, "and walk the dog". The original "Pay the car payment" with the 15'th is still in the text file. Albeit, if you re-open the calendar, the only one you see is the latter one, so that part works great. Now, delete (or clear) the 15'th alltogether. Close the calendar, reopen, and the old 15'th note is there. It needs a way to not only ammend your note, but to delete the current note before updating.

    Thinking off the top of my head (I hate doing that ), may need an "Edit" button as well, disabling the add/update button at the moment. This way, you could grab the current text/date that's in the note box (when the user presses "Edit") and clear it that way. It would be better though if the user didn't have to retype everything using this method. I know it sounds confusing, and I know there's a way to do it, just can't grasp it right this second.....

  5. #5
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Edit this note and add to it, "and walk the dog". The original "Pay the car payment" with the 15'th is still in the text file.
    Man that is some serious stuff, accidentally pay your dog one month and the next thing you know the repo man is at your door. And you know full well the dog's not going to return the money either. Man's best friend? Maybe so, but man's best treasurer? Forget it... Although I will concede that terriers do appear to exhibit slightly more fiscal sensibility than most. Or so they would have us believe anyhow...

  6. #6
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Ah, finally figured it out. Used the OnFocus to grab the text string matched with the date.

  7. #7
    Join Date
    Jan 2007
    Posts
    50
    Hi ;

    Project Hata ?



    Calendar Project ( BtnClear click = Error )

  8. #8
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    This sample is for AutoPlay Media Studio 7. If you use AutoPlay Media Studio 8, you have to pay attention to the conversion report that was generated when you opened the project, alerting you about things you must update. The Lua syntax changed.

    Ulrich

Similar Threads

  1. Calendar Plugin In APMS 6
    By mrdude in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 09-19-2005, 06:56 PM
  2. Calendar Plugin - suggestions
    By Derek in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 06-23-2005, 09:57 AM
  3. Calendar Plugin help please
    By ianhull in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 01-07-2005, 10:12 AM
  4. Calendar Plugin
    By markstaylor in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 10-31-2004, 08:41 PM
  5. Spotlight: Calendar Object Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 03-19-2004, 08:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts