Search found 492 matches

by kaveh1000
Sun Nov 01, 2020 12:39 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: textChanged and rawKeyUp not working in table field
Replies: 11
Views: 5792

textChanged and rawKeyUp not working in table field

Hi all

Please see attached minimal stack with a table field which has the following script:

Code: Select all

on rawkeyup
   answer "rawkeyup"
end rawkeyup

on textchanged
   answer "text changed"
end textchanged
Why is there no response when I edit the text?
by kaveh1000
Sat Oct 31, 2020 8:42 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: return and "return"
Replies: 7
Views: 4172

Re: return and "return"

Hi Craig I appreciate your questions on this and they are very good ones! I can tell you what I am doing. Please see this thread: https://forums.livecode.com/viewtopic.php?f=8&t=34799 I am using the revXML library to analyse and hopefully modify complex XML files. As an example pls search for put re...
by kaveh1000
Sat Oct 31, 2020 6:53 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: return and "return"
Replies: 7
Views: 4172

Re: return and "return"

Hi Craig I take your point about naming of fields. I always use "t", "s" and "g" for variables, but never thought of "f" for field. Regarding the "do" workaround, the problem is a big stack that I will not post here as it has a lot of irrelevant material. So I created the minimal stack to illustrate...
by kaveh1000
Sat Oct 31, 2020 1:52 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: return and "return"
Replies: 7
Views: 4172

Re: return and "return"

Hi Klaus You have solved my problem! I never used value( ) . I have now introduced a loop similar to this in my script: repeat with i = 1 to the number of items of sOptions if value(item i of sOptions) is "return" then put "return" into item i of sOptions end if if value(item i of sOptions) is "tab"...
by kaveh1000
Sat Oct 31, 2020 12:30 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: return and "return"
Replies: 7
Views: 4172

return and "return"

I have a stack where I have to construct a command, then execute it. A parameter in the command can be a tab or a return. But whatever I do these are treated as verbatim "return" or "tab". To illustrate it I attach a minimal stack. There is just one script, in the "Do it" button: on mouseup put fld ...
by kaveh1000
Tue Oct 27, 2020 4:56 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Interacting with a complex XML file
Replies: 3
Views: 2689

Re: Interacting with a complex XML file

As usual, a one liner from Richard pointed me in the right direction at least to start. I can now examine XML files for structure, content, tree etc. I know that I can write to the XML file too using revXML. Here's a bit more detail about what I want to do. I am certain it can be done with LiveCode ...
by kaveh1000
Sun Oct 18, 2020 10:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 4299

Re: Detecting change to FormattedText

Thank you both. Always learn a lot here. I used "=" and it is not giving me the result intended so will do more testing. And will think about the HTMLText too...
by kaveh1000
Sun Oct 18, 2020 9:01 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 4299

Re: Detecting change to FormattedText

Hi Jacqueline

As a follow-up, how do you compare two arrays? I tried

Code: Select all

if the properties of array_one is the properties of array_two...
but it is showing them not to be the same although they should be. I have a mental block with arrays. Any hints appreciated!
by kaveh1000
Sun Oct 18, 2020 6:38 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 4299

Re: Detecting change to FormattedText

Thank you Jacqueline. This is excellent. I had no idea about "the properties". I can see it creates an array. It's fast as you say, so no problem about checking with every arrow key or key press. :-)
by kaveh1000
Sun Oct 18, 2020 9:42 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 4299

Re: Detecting change to FormattedText

Not sure I understand Richard. Let me describe the use case: The user will be interacting with the field (with locked text) using the mouse and/or arrow keys. I need to know which line they clicked on, counting from the top in FormattedText, as well as the length of the lines. There is a lot of inte...
by kaveh1000
Sun Oct 18, 2020 9:04 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting change to FormattedText
Replies: 9
Views: 4299

Detecting change to FormattedText

Hi folks I have a field with a large volume of text. I am doing some moving around for which I need the current value of FormattedText, as I need to know where the soft line breaks are, and the number of lines after line breaking. If the text itself changes, I can use on TextChanged (update value of...
by kaveh1000
Sun Oct 18, 2020 8:47 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Interacting with a complex XML file
Replies: 3
Views: 2689

Re: Interacting with a complex XML file

Hi Richard

Thanks for this pointer. Reason for my silence is I need to do a lot of homework now, probably using revXML. :-)

Kaveh
by kaveh1000
Mon Oct 12, 2020 1:19 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Interacting with a complex XML file
Replies: 3
Views: 2689

Interacting with a complex XML file

Hi folks Been a while since I have been on the forum but still here!! I deal with quite complex and "rich" source XML files that are the contents of book chapters. My knowledge of XML and particularly the XML in question is very limited (but I have colleagues who can help if needed). I need to enter...
by kaveh1000
Wed Apr 22, 2020 12:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Why Script-only stacks?
Replies: 90
Views: 39557

Re: Why Script-only stacks?

I am also very interested in your solution. I use several SoS's and I want them automatically encrypted when I build a standalone. Pls see this thread:

https://forums.livecode.com/viewtopic.p ... 22#p188122
by kaveh1000
Sat Apr 11, 2020 6:17 pm
Forum: Talking LiveCode
Topic: Standalone not working with script only stack
Replies: 17
Views: 12891

Re: Standalone not working with script only stack

Thanks. I tried that, i.e. without your suggestion of removing the standalone property, but still not encrypted...

Go to advanced search