Seeking philosophical guidance on library interface design.
alex at tweedly.net
Thu Apr 25 05:56:47 EDT 2019
I did really well - I got two typos into a very short example ... the
description shoudl have said lineDel, not itemDel, and it should have
been set to ":", not ";"
My fault for taking the *real* example out of the demo app, and cutting
it down while typing the email.
itemDel and lineDel are different, and have the same meanings as you'd
expect in the context of LC.
i.e. a dataset consists of a number of *line*s, each line contains a
number of *item*s which are the [optionally X] and Y values.
So the example has one Y value per line, and should be
1a. same thing, using the lineDel feature.
put ":" into sA["lineDel"]
put "1:2:4:8:16:15:14:13:12:22:17:15" into temp
put temp into sA["data"]["values"]
gmMakeGraph the long id of grp "mycanvas", sA
P.S. of course, if we had something like "heredoc" that perhaps wouldn't
have happened - I would have used the more natural way to define a
multi-line constant value :-)
On 25/04/2019 04:21, Mark Wieder via use-livecode wrote:
> On 4/24/19 5:47 PM, Alex Tweedly via use-livecode wrote:
>> 1a. same thing, using the itemDel feature.
>> put ";" into sA["lineDel"]
>> put "1:2:4:8:16:15:14:13:12:22:17:15" into temp
>> put temp into sA["data"]["values"]
>> gmMakeGraph the long id of grp "mycanvas", sA
> Are itemDel and lineDel synonyms? Or is one of those a typo?
More information about the Use-livecode