defano / wyldcard

A clone of Apple's HyperCard and HyperTalk scripting language.
https://github.com/defano/wyldcard/wiki
MIT License
122 stars 11 forks source link

Fixed ClickLine function to return the appropriate String #113

Closed ooper-zz closed 2 years ago

ooper-zz commented 2 years ago

from returning a single number, to the HC equivalent of "line x of [card | background] field". I had it so it throws an exception when the target is not a field. I suppose, someone might want to programmatically query this function by sending a click event on a mouse location (mouseLoc) on top of the field, but they wouldn't know which line to click, as clicking on lines of a field is not a HC or WyldCard command.

I just realized I missed a negative test. Will do it next time I work on the project.

To physically test this functionality, feel free to use the attached WC stack. functional-field-tests.stack.zip