Search found 5646 matches

by dunbarx
Wed Dec 19, 2018 12:56 am
Forum: Mac OS
Topic: Down arrow acting as Up arrow with Option or Command
Replies: 1
Views: 30

Re: Down arrow acting as Up arrow with Option or Command

Hi.

How are your arrowKeys currently configured? (navigationArrows?)

Craig Newman
by dunbarx
Tue Dec 18, 2018 9:11 pm
Forum: Talking LiveCode
Topic: File written to disk truncated to multiples of 4096 chars
Replies: 8
Views: 103

Re: File written to disk truncated to multiples of 4096 chars

This works fine for me in v 8.1.10. The length of the text file is a bit over one Meg: on mouseUp put "aslkjfhlasflsakflsalfklsakfjlskflsjf" into temp repeat 15 put temp after temp end repeat answer the length of temp put "/users/craignewman/desktop/XXX" into filePath open file filePath for text wri...
by dunbarx
Tue Dec 18, 2018 7:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Drag and Drop Help.
Replies: 5
Views: 104

Re: Drag and Drop Help.

Good.

I neglected to suggest that the above handlers should be placed in the card script, and that you may want to further restrict the grab only to the fields that you want.

Craig
by dunbarx
Tue Dec 18, 2018 6:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Export CSV with carriage returns
Replies: 4
Views: 60

Re: Export CSV with carriage returns

Yes, what Richard alludes to is that you will likely have to restore those returns one day in order to format your data in its final resting place. So losing them entirely was not a great idea. Select something in the upper range of the ASCII character set, that is virtually certain not to be found ...
by dunbarx
Tue Dec 18, 2018 6:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Label Field - Can I get it to name it's self?
Replies: 3
Views: 62

Re: Label Field - Can I get it to name it's self?

Do fiddle.

And use "openCard" instead of "cardOpen". 8)

Craig
by dunbarx
Tue Dec 18, 2018 6:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Strategy to construct a Stack
Replies: 13
Views: 189

Re: Strategy to construct a Stack

Jacque.

The OP originally proposed ;
The Database would have to be viewable and editable by up to 10 users.
Craig
by dunbarx
Tue Dec 18, 2018 5:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Strategy to construct a Stack
Replies: 13
Views: 189

Re: Strategy to construct a Stack

All,

Just so I understand the important issues, is it not the fact that multiple users might be trying to access the data at the same time?

Record locking.

The structure of the stack without that issue seems simple; a card for every building, and some gadgetry.

Craig
by dunbarx
Tue Dec 18, 2018 5:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Export CSV with carriage returns
Replies: 4
Views: 60

Re: Export CSV with carriage returns

Whatever your reasons for using (the horrible) CSV format, you will have to replace the carriage returns with either a space or empty. At least then the receiving document will not use those returns as record delimiters, which is what you seem to be describing, as if you were pasting into a spreadsh...
by dunbarx
Tue Dec 18, 2018 5:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Drag and Drop Help.
Replies: 5
Views: 104

Re: Drag and Drop Help.

Ah. So you can: on mouseDown if "field" is in the name of the target then grab the target end mouseDown on mouseUp put target & return after fld yourTestField end mouseUp This should get the contents of each field you drag into a return delimited list. You will want to return the dragged field back ...
by dunbarx
Tue Dec 18, 2018 4:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Label Field - Can I get it to name it's self?
Replies: 3
Views: 62

Re: Label Field - Can I get it to name it's self?

Hi. A couple of things. The tooltip has nothing to do with your question. Hold this off for a while. Line 2 of your code snippet has problems. It isn't even wrong. :D (Anyone know where that adorable sentence came from?) Now then, a label field is just a field with certain properties. It is convenie...
by dunbarx
Tue Dec 18, 2018 3:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to create a new label field programmatically?
Replies: 1
Views: 31

Re: How to create a new label field programmatically?

Hi. Read up on the "templateField" in the dictionary. Make a field of some kind, perhaps a label field taken right from the tools palette. Put "masterField" into its contents. Now in a button somewhere: on mouseUp set the properties of the templateField to the properties of fld "masterField" create ...
by dunbarx
Tue Dec 18, 2018 3:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Drag and Drop Help.
Replies: 5
Views: 104

Re: Drag and Drop Help.

Hi. We can do this, but I am not sure I understand what you want to do. When you say you have a "group" on the side, what does that mean? Is it a group of fields? Is it simply several lines of text within a field? And this: but not sure how to make it the objects look as if they go from line 1 of th...
by dunbarx
Tue Dec 18, 2018 1:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Strategy to construct a Stack
Replies: 13
Views: 189

Re: Strategy to construct a Stack

The issue is record locking. LC server probably (I don't use it) finds a way to manage that.

I think that you should create new cards each time a new building is added, from a template. Then you just clone as you go. This is simple to do.

Craig Newman
by dunbarx
Mon Dec 17, 2018 3:40 pm
Forum: Talking LiveCode
Topic: Circular shift
Replies: 19
Views: 362

Re: Circular shift

Hello, Hermann. Just curious, why are you using explicit terms such as "sin(0)" or "1+1" as parameters? In switch statements, sometimes if I have a "default" case, that is, after all conditional cases have been handled but there still remain all the other possibilities, I will have as the lastMost c...
by dunbarx
Mon Dec 17, 2018 12:19 am
Forum: Talking LiveCode
Topic: Circular shift
Replies: 19
Views: 362

Re: Circular shift

Ah, again. So typically, does a base 2 rotation ignore "leading" zeros? If I wanted three eggs over easy, I might order "0003" eggs, and if the waiter either had a sense of humor or understood the math I was foisting on him, I would get an eatable breakfast. In what sense does the rotation operation...

Go to advanced search