Search found 5822 matches

by dunbarx
Mon Mar 11, 2019 9:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Changing Card location & saving field input ??
Replies: 12
Views: 282

Re: Changing Card location & saving field input ??

Rachel.

Is the field editable? That is, it is not locked?

And you do not have any keydown, keyUp, or anything like that in the field script?

And make sure the "traversalOn" in enabled.

Craig
by dunbarx
Mon Mar 11, 2019 8:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Changing Card location & saving field input ??
Replies: 12
Views: 282

Re: Changing Card location & saving field input ??

What Klaus said. Also, never forget that in LC you need to declare a global variable (and script local variables) ABOVE every handler you use it in. This is common practice, though there may be occasions, especially with script local variables, where it is advantageous to place them somewhere in the...
by dunbarx
Fri Mar 08, 2019 9:45 pm
Forum: Talking LiveCode
Topic: Send an http request with the possibility to evaluate the answer
Replies: 8
Views: 306

Re: Send an http request with the possibility to evaluate the answer

Hi, Not sure what you are asking, but right now go to the dictionary, and look for "URL". Now filter out everything but commands. Do any of those, especially "Launch URL or "revGoURL", help? Also check out the "related" items in the entry. And maybe you might like the "get URL" variant of the "get" ...
by dunbarx
Thu Mar 07, 2019 6:52 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Serious Runtime problem
Replies: 12
Views: 358

Re: Serious Runtime problem

Klaus.

I know. Not my first rodeo.

I was just checking to make sure that the quotes were not there in error, loading a literal instead of some other data.

Just checking to make sure, you see. 8)

Craig
by dunbarx
Thu Mar 07, 2019 3:35 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Serious Runtime problem
Replies: 12
Views: 358

Re: Serious Runtime problem

It is obviously a literal, didn't you notice the QUOTES?
It had better be a literal, right?
Klaus, my friend. Yes, I did. That is why I asked the question, to make sure. 8)

Craig
by dunbarx
Thu Mar 07, 2019 2:50 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Serious Runtime problem
Replies: 12
Views: 358

Re: Serious Runtime problem

the line: " put "mamsdocument" into tDBName " is not effected.
No idea what is happening here, but is mamsdocument a variable name or a literal? It had better be a literal, right?

Craig Newman
by dunbarx
Wed Mar 06, 2019 4:35 pm
Forum: Talking LiveCode
Topic: mathematical calculation
Replies: 19
Views: 494

Re: mathematical calculation

The handler will not accommodate an expression that has the form:

"10x^3 + 3x + 5"

In other words, it does not "see" the "3x".

Can you update the function to include this extra term? It will be good practice for you in pursuit of your original inquiry.

Craig
by dunbarx
Wed Mar 06, 2019 4:28 pm
Forum: Talking LiveCode
Topic: mathematical calculation
Replies: 19
Views: 494

Re: mathematical calculation

First off, I updated my handler so it actually works. This does not mean it actually works. As to your question, put something like "10x^3 + 4" into fld 1 and hit a button that contains the script below. on mouseup put fld 1 into arg put integrate(arg,"x") into fld 2 end mouseup function integrate a...
by dunbarx
Tue Mar 05, 2019 9:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Standalone build error in 9.0.2
Replies: 5
Views: 193

Re: Standalone build error in 9.0.2

Hi.

Did you ever save successfully in 9.0.2?

Just trying to see what changed.

Craig Newman
by dunbarx
Tue Mar 05, 2019 9:53 pm
Forum: Talking LiveCode
Topic: mathematical calculation
Replies: 19
Views: 494

Re: mathematical calculation

Just for fun, and to see if I remember just a little calculus and also to not work at my job for a little while, this function will integrate an algebraic expression in a field 1 and put the result into a fld 2: on mouseup put integrate(fld 1,"x") into fld 2 end mouseup function integrate arg,var se...
by dunbarx
Tue Mar 05, 2019 3:14 pm
Forum: Talking LiveCode
Topic: mathematical calculation
Replies: 19
Views: 494

Re: mathematical calculation

@Richmond. Your handler is pseudo-pseudoCode? on mouseUp repeat with y = 1 to 10 put y ^ 3 into line y of fld "output" end repeat end mouseUp @ yochankim Anyway, there are several built-in functions that perform more complex mathematical tasks than, say, "add". But there are no function that, as you...
by dunbarx
Mon Mar 04, 2019 10:11 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Can't edit Stack script.
Replies: 9
Views: 351

Re: Can't edit Stack script.

Just seemed easier to code that way.
More importantly, it keeps the sort of gadgetry that is only pertinent to data entry in one place. I find it simpler to add and fix stuff when I know which sandbox to play in.

Craig
by dunbarx
Mon Mar 04, 2019 7:38 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Can't edit Stack script.
Replies: 9
Views: 351

Re: Can't edit Stack script.

One thing I have done with this stack that might be unusual is that I have one card that I use for all of the data entry. I use several groups on that card that I show when I want to enter data on that screen while hiding all of the other groups (6 total). what this does for me is I only need to re...
by dunbarx
Mon Mar 04, 2019 7:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrubbing out the stables
Replies: 8
Views: 268

Re: Scrubbing out the stables

Richmond.

Back in the day, I had many discussions where I told HC users that the script of an object is a property of that object; it is not a container of any kind. So what Klaus meant in his post is that you have to read sentence #1 above just one more time. :wink:

Craig
by dunbarx
Sat Mar 02, 2019 3:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: a stack is already in memory , problem
Replies: 4
Views: 197

Re: a stack is already in memory , problem

I get the "revMacCursors" thing each and every time I open a splash stack I use to create new versions of a standalone we use in our office. I am not sure this appears in a new session, the very first time I open the splash stack. I will check on Monday. If it appears in a new session, that would be...

Go to advanced search