Search found 5690 matches

by dunbarx
Sat Jan 19, 2019 2:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Create Database in LiveCode?
Replies: 7
Views: 188

Re: Create Database in LiveCode?

Bogs.

Spell checker is not as useful an aid as finger checker. I do not need the first at all. Apparently I could use the second.

Craig
by dunbarx
Fri Jan 18, 2019 11:13 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Converting in a background
Replies: 5
Views: 178

Re: [SOLVED] Converting in a background

Max

I too wish someone would give me a list of native words that I both should know and need to know. But these generally come when I am in a situation like yours. That is the power of this forum; somebody will know.

Craig
by dunbarx
Fri Jan 18, 2019 2:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: [SOLVED] Converting in a background
Replies: 5
Views: 178

Re: Converting in a background

What everyone said.

But if you have many cards, you will want to write a short handler that loops through each card, placing the group as it goes.

Craig Newman.
by dunbarx
Fri Jan 18, 2019 2:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Create Database in LiveCode?
Replies: 7
Views: 188

Re: Create Database in LiveCode?

What Richard and Bigs are saying is “Yes”.

We just need to know what you want. After all, a spreadsheet can be considered a database, in that it stores and organizes data. LiveCode can do much, much better, wholly within its own native capabilities.

So?

Craig newman
by dunbarx
Thu Jan 10, 2019 9:22 pm
Forum: Talking LiveCode
Topic: how to make a whole group into a target
Replies: 9
Views: 233

Re: how to make a whole group into a target

What would the advantage be to having the transparent button in front? What Klaus said. The kluge to fix that, since such a button would indeed intercept all messages, would be to: on mouseUp send "mouseUp" to grp "yourUnderLyingGroup" But we want to minimize kluges if possible, though sometimes th...
by dunbarx
Thu Jan 10, 2019 9:01 pm
Forum: Talking LiveCode
Topic: how to make a whole group into a target
Replies: 9
Views: 233

Re: how to make a whole group into a target

Many ways to do this. Know that if you move the group you also have to move the button, unless you have placed that button within the group itself. It was not clear to me that you had done so. There was a thread a while back wondering if the empty space within the rect of a group might be allowed to...
by dunbarx
Thu Jan 10, 2019 8:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Display what fields a user missed in an answer box?
Replies: 17
Views: 417

Re: Display what fields a user missed in an answer box?

Yes.

In my defense, I did it all while driving home from work.

Craig
by dunbarx
Thu Jan 10, 2019 7:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Display what fields a user missed in an answer box?
Replies: 17
Views: 417

Re: Display what fields a user missed in an answer box?

Klaus.

You know, I used the test stack provided, which had only one field empty. So I both our handlers worked identically. You might say I did not test exhaustively.

Broadly, on the handlers' own merits, I must have missed HC 101. :oops:

Craig
by dunbarx
Thu Jan 10, 2019 3:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Display what fields a user missed in an answer box?
Replies: 17
Views: 417

Re: Display what fields a user missed in an answer box?

Klaus,

Are there invisible chars that set your script apart from mine? 8)

Craig
by dunbarx
Thu Jan 10, 2019 4:11 am
Forum: Talking LiveCode
Topic: how to make a whole group into a target
Replies: 9
Views: 233

Re: how to make a whole group into a target

Hi.

I suspect there is a more straightForward way to do what you want, but you can always use native LiveCode behavior. In the card script:

Code: Select all

on mouseUp
  if the clickLoc is within the rect of grp "yourRecalcitrantGroup" then answer random(99)
end mouseUp
Craig Newman
by dunbarx
Wed Jan 09, 2019 10:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: set the short name of card "X" to "Y" possible?
Replies: 4
Views: 145

Re: set the short name of card "X" to "Y" possible?

Hi.

Cards have long, abbreviated and short names too. But you cannot set a "short" name. You can only get one.

Craig Newman
by dunbarx
Wed Jan 09, 2019 9:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Display what fields a user missed in an answer box?
Replies: 17
Views: 417

Re: Display what fields a user missed in an answer box?

So much fun. Put this into your "Submit" button script: on mouseUp repeat with z = 1 to 4 if fld z = "" then put z & return after accum if accum <> "" then answer "The following fields require data:" & return & return & accum end repeat end mouseUp You can always embellish this by giving the names o...
by dunbarx
Mon Jan 07, 2019 3:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Check User has not entered duplicate data
Replies: 2
Views: 105

Re: Check User has not entered duplicate data

Hi. I would do this a different way. Try this: make a button, name it "Product Code", and put this into its script: on mouseUp ask "Enter Project Code" if it is not among the lines of the productCodes of me then set the productCodes of me to the productCodes of me & return & it --doSomethingUsefulWi...
by dunbarx
Thu Jan 03, 2019 8:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What's wrong with "it" ??
Replies: 7
Views: 257

Re: What's wrong with "it" ??

Hmmm. Even the simplest (seeming) issues are complicated. if Klaus is right, that there might be hidden chars within what appears to be a three char "yes" and a two char "no", you might test the length of those strings and see. If there are indeed hidden chars, you can always strip them out, in one ...
by dunbarx
Thu Jan 03, 2019 6:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What's wrong with "it" ??
Replies: 7
Views: 257

Re: What's wrong with "it" ??

Hi. Sounds like you are a bit farther along than "complete beginner". :wink: What if you change: get Shell(tvScript) put it into tvState - to: put Shell(tvScript) into tvState It seems as though this should not matter. You are saving "it" right away, which is always good practice. I am just wonderin...

Go to advanced search