Search found 9703 matches

by dunbarx
Fri Jul 08, 2011 4:00 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: SOLVED - Is there a date/time picker in Live Code?
Replies: 9
Views: 11942

Re: Is there a date/time picker in Live Code?

Hi.

LC has comprehensive native system date and time functions. Check the dictionary for "date", "time", "dateitems", "dateformat", etc.

if you mean you want one of those calendar-type pickers, or similar gadgets, I think there are some around written by others. Someone will reply...

Craig Newman
by dunbarx
Tue Jul 05, 2011 5:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: 2-state button
Replies: 3
Views: 2960

Re: 2-state button

Keep asking.

LC is built in such a way so that many solutions are just that compact and beautiful. It is the structure of the language that makes it so.

Keep asking.

Craig Newman
by dunbarx
Sun Jul 03, 2011 5:17 pm
Forum: Talking LiveCode
Topic: click at location not working
Replies: 1
Views: 1985

Re: click at location not working

Hi.

Are you saying that if you run:

click at the loc of button "yourButton"

and there is a mouseUp handler in that button, that the handler is not invoked?

If not, can you try this as an experiment?

Craig Newman
by dunbarx
Mon Jun 27, 2011 2:02 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: copy field then delete card
Replies: 1
Views: 1947

Re: copy field then delete card

This is straightforward. ... Put field "sourceField" into field "targetField" of cd "otherCard" delete card "theCardWithFieldTargetFieldOnIt" Note that you cannot delete a card if the handler resides on an object on that card. So you will have to do it from, say, the stack script. You will want to g...
by dunbarx
Tue Jun 21, 2011 3:58 am
Forum: Talking LiveCode
Topic: Handler repeats itself 2-3 or more times
Replies: 12
Views: 7160

Re: Handler repeats itself 2-3 or more times

Can you put a breakpoint in the beginning of the handler, and then try to track what happens whenever it is called again? I agree with SparkOut's theory, that the handler is being re-called very explicitly, though in a non-obvious way.

Craig Newman
by dunbarx
Mon Jun 13, 2011 2:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: how to iterate through tables in a database
Replies: 4
Views: 3775

Re: how to iterate through tables in a database

Typo, I expect.

repeat for each linTableName in tTableNames

is likely, repeat for each line TableName in tTableNames
by dunbarx
Fri Jun 10, 2011 11:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What's with "the result" ??
Replies: 5
Views: 4169

Re: What's with "the result" ??

What we are all saying is that it comes into play at very specific times, is incredibly useful when it does rear its head, and that you should grab it as soon as possible.

Craig Newman
by dunbarx
Thu Jun 09, 2011 9:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What's with "the result" ??
Replies: 5
Views: 4169

Re: What's with "the result" ??

From way back in HC days, the result is set after some command was executed, for example, find. It is a function, and returns a value, hopefully empty So it is a function automatically, tacitly, and sort of behind the scenes, invoked with certain commands, I always put it into a variable, or deal wi...
by dunbarx
Tue Jun 07, 2011 2:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: deleting a line in a variable
Replies: 6
Views: 4739

Re: deleting a line in a variable

Bernd Right on about that comma. There is something silly about trying to be the first to answer, at the expense of thinking and testing. Also, he did try to start with the last line, (i = 40 to 1) but did not have the syntax correct. I assume he has the sense of why this must be so. I had written s...
by dunbarx
Mon Jun 06, 2011 7:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: deleting a line in a variable
Replies: 6
Views: 4739

Re: deleting a line in a variable

Syntax. Gotta have "down to". You also have to tell the parser to deal with lines. Think about this: repeat with i = 40 down to 1 if the first character of line i of myVar is in "1,0,comma" then delete line i of myVar end if end repeat Someone who was just starting out might also have written: if th...
by dunbarx
Wed Jun 01, 2011 6:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Working with arrays using indexes?
Replies: 2
Views: 2064

Re: Working with arrays using indexes?

This is likely to work for you. I did not use an array, and that could be a useful lesson in itself. But anyway: on mouseUp put field "yourField" into myVar repeat the number of words of myVar get random(the number of words of myVar) put word it of myVar & space after temp delete word it of myVar en...
by dunbarx
Tue May 31, 2011 5:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Changing datagrid row order
Replies: 3
Views: 2844

Re: Changing datagrid row order

Couldn't you get the dgText, maybe with the dgHilitedLines property, switch the row data, and reset the dgText?

It would be much cooler to be able to drag and drop entire rows. I do this with list fields all the time, but never in a DG.

Craig Newman
by dunbarx
Tue May 31, 2011 2:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: filter variable watch tab
Replies: 6
Views: 4944

Re: filter variable watch tab

Check out Thierry's post in the Nov. 2010 archives. Works for me. I hated all those system globals. I had to scroll down all the time to see my own. Craig Newman Try out this simple script : on mouseUp local G put the globals into G replace comma with return in G filter G without "$*" put G end mous...
by dunbarx
Tue May 31, 2011 6:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Is it possible to load a function for a stack from another s
Replies: 4
Views: 3557

Re: Is it possible to load a function for a stack from another s

Hi.

Read up on the "request" command. It should do the trick.

Craig Newman
by dunbarx
Tue May 31, 2011 6:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: filter variable watch tab
Replies: 6
Views: 4944

Re: filter variable watch tab

Yes. I do this.

This was a thread several months ago. I will find it tomorrow, unless someone beats me to it.

It is SO much nicer, and so much less cluttered in normal use to lose those.

Craig Newman

Go to advanced search