Page 1 of 1

A few missing links in My Script Collector

Posted: Tue Mar 31, 2009 9:03 pm
by gyroscope
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!

Posted: Wed Apr 01, 2009 7:30 pm
by bn
Hi Gyroscope,
I posted to RevOnline a version of Mark Schonewille's original stack that now has a delete button and a notes field.
Username is berndniggemann
title: A revolution database for gyroscope.
I think if you follow the logic you could add more fields. I changed the one dimensional array to a multidimensional array. Added Arrowkey support for the list field.
It was fun to do and gave me a chance to look into multi-dimensional arrays as well as customproperties.
regards
Bernd

Posted: Wed Apr 01, 2009 7:57 pm
by gyroscope
Hi Bernd, that's absolutely excellent, just what's needed, thank you so very much! Much appreciated.

I've been beating my head against this particular brick wall for a while now and I'm looking forward to studying your code to understand it.

Thank you again.

PS I really like your sense of humour!

:)