A few missing links in My Script Collector
Posted: Tue Mar 31, 2009 9:03 pm
Hi, I've now based my coding for My Script Collector on one of Mark's excellent stack's "A Revolution Database". I suddenly realised that this is closer to what I want to achieve than another stack I found.
I've uploaded it to Rev Online (gyroscope>Script Collector) with the hope that someone could guide me to a solution with a few probs I'm still having with it:
• How do I code for a delete button, which would delete the custom property selection as well as the title in the List Field?
I'm sure it has to be something along the lines of:
delete variable MyDataBaseArray[pseudocode:"heading which is the same as the chosen line in the List Box, and the Text and Notes field entries associated with it"]
• I've been trying to figure this one out for a week of evenings without much luck: how do I "weave in" the Notes field into each record?
It must be to do with the lines:
lock screen
set the htmlText of fld "Text" to myDatabaseArray[line myNr myKeys]
put line myNr of myKeys into fld "Title"
unlock screen
I've tried adding: set the htmlText of fld "Notes" to myDatabaseArray[line myNr myKeys] but this just puts the Text content into the Notes field.
Arrays are confusing me here...
Any help here would be so appreciated, please!
I've uploaded it to Rev Online (gyroscope>Script Collector) with the hope that someone could guide me to a solution with a few probs I'm still having with it:
• How do I code for a delete button, which would delete the custom property selection as well as the title in the List Field?
I'm sure it has to be something along the lines of:
delete variable MyDataBaseArray[pseudocode:"heading which is the same as the chosen line in the List Box, and the Text and Notes field entries associated with it"]
• I've been trying to figure this one out for a week of evenings without much luck: how do I "weave in" the Notes field into each record?
It must be to do with the lines:
lock screen
set the htmlText of fld "Text" to myDatabaseArray[line myNr myKeys]
put line myNr of myKeys into fld "Title"
unlock screen
I've tried adding: set the htmlText of fld "Notes" to myDatabaseArray[line myNr myKeys] but this just puts the Text content into the Notes field.
Arrays are confusing me here...
Any help here would be so appreciated, please!