Search found 5394 matches

by dunbarx
Fri Jul 20, 2018 1:16 pm
Forum: Talking LiveCode
Topic: [SOLVED] How do I hide all but the last four digits with either a "*" or a bullet?
Replies: 6
Views: 80

Re: [SOLVED] How do I hide all but the last four digits with either a "*" or a bullet?

Aha.

I see you started that thread.

But if you have the first, much better, solution, why do you need the second?

Craig
by dunbarx
Fri Jul 20, 2018 1:15 pm
Forum: Talking LiveCode
Topic: [SOLVED] How do I hide all but the last four digits with either a "*" or a bullet?
Replies: 6
Views: 80

Re: [SOLVED] How do I hide all but the last four digits with either a "*" or a bullet?

Hi.

There are other threads on this. It is far better to hide the characters themselves as they are entered, and if you want to leave the last four digits in the clear, then well and good.

See "Best way to validate SSN"

Craig Newman
by dunbarx
Fri Jul 20, 2018 1:10 pm
Forum: Talking LiveCode
Topic: [SOLVED] Math - ugh - How to add up fields of strings
Replies: 11
Views: 102

Re: Math - ugh - How to add up fields of strings

Clearly someone left a "$" in one of the fields. LC cannot add '3" to "$7" I have had this in my library since 1990: function goodNumber tText repeat for each char theChar in tText if theChar is in ".0123456789" then put theChar after temp end repeat return temp end goodNumberr So you would want to:...
by dunbarx
Fri Jul 20, 2018 1:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: cAPITAL lETTER pROBLEM
Replies: 33
Views: 631

Re: cAPITAL lETTER pROBLEM

Panos.

If you do spend time on this, please recreate the scenario I described above when setting the two props in the inspector itself. Mine simply deletes the second case in the middle of my trying to create it.

Craig
by dunbarx
Thu Jul 19, 2018 8:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: cAPITAL lETTER pROBLEM
Replies: 33
Views: 631

Re: cAPITAL lETTER pROBLEM

Nope. Tried it from script. LC will WILL permit "X" and "x" to live in the same control, but they cannot seem to have different values. on mouseUp set the caseSensitive to "true" set the "X" of btn 1 to "upper" set the "x" of btn 1 to "lower" end mouseUp Both properties now exist, but both have the ...
by dunbarx
Thu Jul 19, 2018 8:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: cAPITAL lETTER pROBLEM
Replies: 33
Views: 631

Re: cAPITAL lETTER pROBLEM

Hmmm.

Have to check this out. I simply tried to set two custom props from the inspector in a button, "A", and "a". After setting "A", I was prevented from creating "a" at all. The property inspector made the second process disappear.

I did not try to do it under script control. Hmmm....

Craig
by dunbarx
Thu Jul 19, 2018 4:31 pm
Forum: Talking LiveCode
Topic: How to exclude the main or boot drive from list
Replies: 6
Views: 91

Re: How to exclude the main or boot drive from list

Hi.

Is the "main" volume always the first line in the list?

Also, I am not sure, but there must be a function that returns the current machine volume. Something like getting one level "up" from the long name of a stack.

Craig Newman
by dunbarx
Thu Jul 19, 2018 1:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: cAPITAL lETTER pROBLEM
Replies: 33
Views: 631

Re: cAPITAL lETTER pROBLEM

Bogs wrote: Is the dictionary correct that custom props can be judged by case? If I read it correctly, then that would be a reference that would work instead of the variable I used. How would that work? For example, one cannot have two custom properties in the same control such as: "A" and "a". LC w...
by dunbarx
Wed Jul 18, 2018 9:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: cAPITAL lETTER pROBLEM
Replies: 33
Views: 631

Re: cAPITAL lETTER pROBLEM

Richmond.

Just do what all Americans think and do.

Expect that everyone should learn idiomatic English. We refuse to learn any other language.

Craig
by dunbarx
Wed Jul 18, 2018 7:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: cAPITAL lETTER pROBLEM
Replies: 33
Views: 631

Re: cAPITAL lETTER pROBLEM

So much thinking and struggling just does not come up because of the case insensitivity of LC. Certainly, as Richmond discovered, it may have its downside in certain situations, but that pales in comparison, and is easily circumvented. Sensible, robust naming is LC 101. I recall a thread years ago t...
by dunbarx
Wed Jul 18, 2018 5:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: cAPITAL lETTER pROBLEM
Replies: 33
Views: 631

Re: cAPITAL lETTER pROBLEM

Bogs.

LC cannot do what you imply in your handler. You cannot even determine the case of, say, the first char of the name of a control, since the caseSensitive property does not hold in that arena.

You must find another reference to work with. Richmond needs to rename his images.

Craig
by dunbarx
Tue Jul 17, 2018 11:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Simple Mathematics Question.
Replies: 8
Views: 183

Re: Simple Mathematics Question.

Just a postScript... Heh, heh. You mentioned that this had to run "in the backGround". You understand that once this handler is set in motion, it will work while any other app is in front. In the background. This may mean that my use of those three "control" keys is not quite what you might want. Yo...
by dunbarx
Tue Jul 17, 2018 3:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: No way to edit a script !
Replies: 11
Views: 453

Re: No way to edit a script !

This has to go to QCC ASAP.

Please confirm when you get a slot there.

Craig
by dunbarx
Tue Jul 17, 2018 3:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Simple Mathematics Question.
Replies: 8
Views: 183

Re: Simple Mathematics Question.

Hi. A hoot. On a new card make a button and two fields. In the button script: local tSeconds, tStartTime, totArrows on mouseUp put the seconds into tStartTime put the seconds into tSeconds put 0 into totArrows put 0 into fld 1 put "" into fld 2 shootCount end mouseUp on shootCount tSeconds put the s...
by dunbarx
Mon Jul 16, 2018 4:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to share buttons and fields across cards
Replies: 5
Views: 166

Re: How to share buttons and fields across cards

Hi. A group with backGroundBehavior set will be seen on all newly created cards. It will not, however, automatically appear on any pre-existing cards. You have two options: 1- Plan ahead, so that the group is created early. Then all new cards will be covered. I never do this. :D 2- Use the "place" c...

Go to advanced search