Search found 9469 matches

by dunbarx
Fri May 31, 2024 8:36 pm
Forum: Talking LiveCode
Topic: Pesky semiColons?
Replies: 3
Views: 96

Re: Pesky semiColons?

Stam, SwedeAndy. Thanks for the feedback. I am not really astonished at anything apart from not having this bitten me earlier. After all, if a semiColon is just shorthand for a line break, then this: else doThis ; doThat is the same as: else doThis doThat And now it is obvious that the "doThis" is i...
by dunbarx
Fri May 31, 2024 4:02 pm
Forum: Talking LiveCode
Topic: Pesky semiColons?
Replies: 3
Views: 96

Pesky semiColons?

Should have put this in the beginners section. Am I the only one on the planet who just now discovered that, given: if this then XYZ else doThis ; doThat is NOT the same as: if this then XYZ else doThis doThat end if In the first snippet, only "do this" is bound by the "else" clause. "doThat" will e...
by dunbarx
Wed May 29, 2024 8:36 pm
Forum: Off-Topic
Topic: Pricing: downgrade macOS an alternative?
Replies: 12
Views: 403

Re: Pricing: downgrade macOS an alternative?

Stam, ElZitouni: I have never tried any of these gadgets. I do use CAD software, though, where one can manipulate and lay out objects pretty well. What does "dynamic (or automatic) layout" do? I assume one can take bunches of controls and, er, lay them out? What does it do that the "Align Controls" ...
by dunbarx
Wed May 29, 2024 6:55 pm
Forum: Off-Topic
Topic: Pricing: downgrade macOS an alternative?
Replies: 12
Views: 403

Re: Pricing: downgrade macOS an alternative?

Hi. I managed to use dataGrids in the end, but it was a struggle and they remain my least favourite aspect to code with LC. DataGrids are powerful and relatively complex. Have you experimented with the much simpler table field? Or perhaps the very nice and simple polyGrid? And I could not help mysel...
by dunbarx
Tue May 28, 2024 2:29 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Counting Lines of Code
Replies: 5
Views: 3435

Re: Counting Lines of Code

I use this to track a large project: on countLines lock screen set the cursor to busy lock messages repeat with y = 1 to the number of cds --ACCESS CURRENT STACK put y && the number of controls of cd y into line y of tCon put the script of cd y & return after accum repeat with u = 1 to the number of...
by dunbarx
Tue May 28, 2024 2:24 pm
Forum: Mac OS
Topic: Recreating a 1993 CompileIt! app
Replies: 4
Views: 288

Re: Recreating a 1993 CompileIt! app

Nostalgia for my beloved HC aside, I would take a look at the old code and rewrite in LC. You will not need Compileit, since everything and more is native in LC, and far simpler to implement. That will forgive, a bit, those aging brain cells.

Hey, make it in color. :wink:

Craig
by dunbarx
Sun May 26, 2024 1:36 pm
Forum: Windows
Topic: Standalone (LC Community 9.5) stopped running
Replies: 4
Views: 378

Re: Standalone (LC Community 9.5) stopped running

And if it does, it may be of interest to Scotland. Even though the community versions are no longer supported, that fact may yield important information overall.

Craig
by dunbarx
Sun May 26, 2024 1:27 pm
Forum: Windows
Topic: Standalone (LC Community 9.5) stopped running
Replies: 4
Views: 378

Re: Standalone (LC Community 9.5) stopped running

(except for automatic win updates)
I don't use Windows much but is that a clue? Does it still run in an earlier version?

Craig
by dunbarx
Thu May 23, 2024 5:04 pm
Forum: Android Deployment
Topic: How to create scripts for buttons that execute arithmetic operations
Replies: 5
Views: 564

Re: How to create scripts for buttons that execute arithmetic operations

Richard.

The OP mentioned following a tutorial, though not which one. I suspect that since entry validation was mentioned early on, that the "calculator" is more home-brewed than the ordinary tutorial version.

Craig
by dunbarx
Thu May 23, 2024 3:38 pm
Forum: Talking LiveCode
Topic: LiveCode Button Click Not Updating Label
Replies: 2
Views: 404

Re: LiveCode Button Click Not Updating Label

What Klaus said about the fact that you loaded a variable as opposed to some sort of control. When you say 'myLabelText", do you mean a label field? That is, not a button at all, but a field? If so, you would: put the short date into field "yourFieldHere" We will get together on the proper way to co...
by dunbarx
Thu May 23, 2024 3:33 pm
Forum: Android Deployment
Topic: How to create scripts for buttons that execute arithmetic operations
Replies: 5
Views: 564

Re: How to create scripts for buttons that execute arithmetic operations

Me again. I am not sure how your app is built. For example, if it contains only buttons with numbers labelled on them, and other buttons that only, say, add, there is no need for entry validation. But you yourself raised that point, so perhaps your calculator asks the user to enter numbers, and then...
by dunbarx
Thu May 23, 2024 3:22 pm
Forum: Android Deployment
Topic: How to create scripts for buttons that execute arithmetic operations
Replies: 5
Views: 564

Re: How to create scripts for buttons that execute arithmetic operations

Just read your post again. When you have mastered the sample stack, the answer to your other questions will become pertinent. Write back at that time and we can go through the MANY small tweaks that a reliable calculator should have, like entry validation. It would not be good if the user tried to a...
by dunbarx
Thu May 23, 2024 3:18 pm
Forum: Android Deployment
Topic: How to create scripts for buttons that execute arithmetic operations
Replies: 5
Views: 564

Re: How to create scripts for buttons that execute arithmetic operations

Hi, Welcome to LC and this forum.

Here is a simple stack. Check out the scripts of the "+" button, the "clear" button and the two top fields. This should be enough to finish your app.
simpleAdder.livecode.zip
(1.1 KiB) Downloaded 28 times
Craig
by dunbarx
Wed May 22, 2024 9:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: how to delete row in the polygrid?
Replies: 10
Views: 790

Re: how to delete row in the polygrid?

So I just played around with a polyGrid. Nice looking, and I answered my own question, they are in between a table field and a DG; the widget API is very friendly. I will consider them the next time I need anything like it. I am less outraged now than a couple of hours ago, except for Taco Bell. Craig
by dunbarx
Wed May 22, 2024 9:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: how to delete row in the polygrid?
Replies: 10
Views: 790

Re: how to delete row in the polygrid?

Stam.
the developer they purchased this from... FerrusLogic?).
I had no idea (some?) widgets were not home grown. What other widgets come from Taco Bell?

Craig

Go to advanced search