Search found 5893 matches

by dunbarx
Fri Apr 19, 2019 4:04 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: modal stack behavior
Replies: 4
Views: 94

Re: modal stack behavior

Hi.

So when you say your fields are empty, you mean your dataGrid is empty? Is the DG the only object on the card?

Have you refreshed your data grid recently?

Code: Select all

dispatch "ResetList" to group "yourDG"
Craig Newman
by dunbarx
Thu Apr 18, 2019 4:42 am
Forum: Talking LiveCode
Topic: advice for speeding up parts of my script
Replies: 1
Views: 78

Re: advice for speeding up parts of my script

Hi. A lot of code. A quick glance at it shows no obvious time consumers, like reading and writing into a field. But I may have missed something. I don't suppose the variable "theIndexPageNumber" is many megabytes long? Have you tried putting breakpoints every couple of lines, or after every reasonab...
by dunbarx
Thu Apr 18, 2019 1:18 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Data Grid Form
Replies: 1
Views: 90

Re: Data Grid Form

Hi. Is there any reason beyond displaying these "icons" that you need a dataGrid? It is only that DG's are complex, and have their own learning curve beyond LC itself. If you have other plans for the DG, then fine. If this is an exercise to learn the DG, then fine. But if the DG is only being used t...
by dunbarx
Wed Apr 17, 2019 11:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Merge & Storing input validation logic as a custom property
Replies: 16
Views: 368

Re: Merge & Storing input validation logic as a custom property

Sounds like a load of fun, to make those connections work. That said, I would instantly go back to the ordinary. I do not see any advantage in maintenance, since if there are changes, it is as easy to change a value as it is to change an expression, and to my mind, much more readable. I may be old f...
by dunbarx
Wed Apr 17, 2019 7:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Merge & Storing input validation logic as a custom property
Replies: 16
Views: 368

Re: Merge & Storing input validation logic as a custom property

Kim.

Lots of stuff.

I still would love to see a (OK if pseudo) typical case that you want to validate. Then we can fool around with various solutions and methods.

Craig
by dunbarx
Wed Apr 17, 2019 5:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Merge & Storing input validation logic as a custom property
Replies: 16
Views: 368

Re: Merge & Storing input validation logic as a custom property

Kim.

Axwald has made a case, and nicely. Let us know how you get on...

Craig
by dunbarx
Wed Apr 17, 2019 4:56 pm
Forum: Talking LiveCode
Topic: Gadget pane
Replies: 19
Views: 342

Re: Gadget pane

OK. "return tText" And this is simpler even than "set the clipBoardData to the clipBoardData". I was determined to promote user handlers, and may have been a little obtuse about what you and Klaus were trying to tell me. I thought you all were saying that you did not understand what sort of text was...
by dunbarx
Wed Apr 17, 2019 2:58 pm
Forum: Talking LiveCode
Topic: Gadget pane
Replies: 19
Views: 342

Re: Gadget pane

I had early on mentioned the sample stacks. I was thinking more of sample handlers. I may start a new thread that has no examples. That has opened quite a discussion. I never meant it to. Am I not making myself clear? If I copy a bit of text from a webpage, what lives in the clipBoard is likely very...
by dunbarx
Wed Apr 17, 2019 2:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Merge & Storing input validation logic as a custom property
Replies: 16
Views: 368

Re: Merge & Storing input validation logic as a custom property

If you are exploring the sort of thing Axwald presented, to exercise LC for fun and profit, then go for it. Otherwise I still suggest, and this also will exercise LC, to do what you intend differently. You call this "storing the validation logic in a script". I call it rethinking. In other words, wh...
by dunbarx
Wed Apr 17, 2019 4:39 am
Forum: Talking LiveCode
Topic: Gadget pane
Replies: 19
Views: 342

Re: Gadget pane

Richard, and Klaus, I guess. Any of the offerings, mine and others, will transform styled and property-laden text into "raw" text. The text I am speaking of is of the sort one gets when, say, one copies something from, say, a web page with lots of, er, styled text. When one copies that text into, sa...
by dunbarx
Wed Apr 17, 2019 4:29 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Merge & Storing input validation logic as a custom property
Replies: 16
Views: 368

Re: Merge & Storing input validation logic as a custom property

Kim.

All this doing and merging is very instructional, and terrific practice at making LC do your bidding.

But I strongly suggest you rethink your methodology. The road you are on is harder than it has to be. How might you simplify your thinking, so you can simplify your coding?

Craig
by dunbarx
Wed Apr 17, 2019 4:24 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Merge & Storing input validation logic as a custom property
Replies: 16
Views: 368

Re: Merge & Storing input validation logic as a custom property

In fooling around with Kim's post, I tried this: on mouseUp put "" into fld 2 ask "enter a number" do "if" && it && field 1 && "then put Higher into fld 2 else put Lower into fld 2" end mouseUp Not much different than the "do" statement in the post above, and it seems that this ought to do what it p...
by dunbarx
Wed Apr 17, 2019 4:20 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Merge & Storing input validation logic as a custom property
Replies: 16
Views: 368

Re: Merge & Storing input validation logic as a custom property

Kim. They all do something, oftentimes, with a little tweaking, the same thing. So you want to store ">=5" as a string, but use that later to create a conditional of some kind, that will validate some statement. Try this, just to make sure I see what you mean. On a new card make a button and two fie...
by dunbarx
Wed Apr 17, 2019 2:38 am
Forum: Talking LiveCode
Topic: Gadget pane
Replies: 19
Views: 342

Re: Gadget pane

Ah,

A fourth way to do it.

Ah.

Sob...
by dunbarx
Wed Apr 17, 2019 2:16 am
Forum: Talking LiveCode
Topic: Gadget pane
Replies: 19
Views: 342

Re: Gadget pane

Klaus. Not sure what you mean. If I copy some styled text from a web page, and paste it into a text field somewhere, the styles and properties are preserved. Oftentimes I only want the "raw" text. No colors, no changes in textSize or fonts. Apparently there are several ways (see posts above) to chan...

Go to advanced search