A few missing links in My Script Collector

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

A few missing links in My Script Collector

Post by gyroscope » 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!

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Wed Apr 01, 2009 7:30 pm

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

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Wed Apr 01, 2009 7:57 pm

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!

:)

Post Reply