Search found 59 matches
- Fri Dec 31, 2010 9:31 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: variable container names
- Replies: 9
- Views: 4979
Re: variable container names
Thank you to everyone who helped with this problem. My original code looked like this, and did NOT work- repeat with k = 1 to 2 put xhi after ("theData" & k) end repeat By using the 'do' command, the code is re-written as follows, and this DOES WORK- repeat with k = 1 to 2 do "put xhi after " && "th...
- Fri Dec 31, 2010 8:08 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: variable container names
- Replies: 9
- Views: 4979
Re: variable container names
Dixie, The names of the variables are 'theData1', 'theData2', etc. The '1' and '2' are not keys. I am trying to add new elements to the end of arrays named 'theData1', 'theData2', etc. As I said, these lines work correctly- put xhi after theData1 put xhi after theData2 Any ideas would be appreciated...
- Fri Dec 31, 2010 7:49 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: variable container names
- Replies: 9
- Views: 4979
Re: variable container names
Dixie,
Thanks for the suggestion, but I don't see anything in section 5.5.7 that helps me. What is the trick?
Thanks,
Ken
Thanks for the suggestion, but I don't see anything in section 5.5.7 that helps me. What is the trick?
Thanks,
Ken
- Fri Dec 31, 2010 7:17 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: variable container names
- Replies: 9
- Views: 4979
variable container names
This should be simple, but I can't figure it out. I would like to insert data into a series of variables inside a repeat loop. This code will not compile. repeat with k = 1 to 2 put xhi after ("theData" & k) end repeat It gives the error - 'compilation error at line 511 (Chunk: bad destination) near...
- Sat Dec 18, 2010 5:02 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: insert into range of array
- Replies: 1
- Views: 1916
insert into range of array
I'm guessing this cannot be done in LiveCode (since I can find no reference), but is it possible to simply insert a value into a range of an array, such as-
put 10 into myArray[4-6]
or
put 10 into myArray[4 to 6] ?
It seems that a repeat loop is the only way to accomplish this.
put 10 into myArray[4-6]
or
put 10 into myArray[4 to 6] ?
It seems that a repeat loop is the only way to accomplish this.
- Sun Dec 12, 2010 3:52 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: datagrid on substack - no labels
- Replies: 6
- Views: 3910
Re: datagrid on substack - no labels
That would make the datagrid work correctly, but the dataStack is an optional window that many users will not want to see. So there is a menu item that lets the user open the dataStack window when needed.
I guess my post would have been more clear if I had mentioned that.
I guess my post would have been more clear if I had mentioned that.
- Sat Dec 11, 2010 8:05 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: datagrid on substack - no labels
- Replies: 6
- Views: 3910
Re: datagrid on substack - no labels
or more elegantly still,
on openStack
go invisible to "dataStack" -- this window must be open (though invisible) for the dataGrid to appear correctly
end openStack
on openStack
go invisible to "dataStack" -- this window must be open (though invisible) for the dataGrid to appear correctly
end openStack
- Sat Dec 11, 2010 7:58 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: datagrid on substack - no labels
- Replies: 6
- Views: 3910
Re: datagrid on substack - no labels
and the solution is......... Place the following code on the stack script of the main stack. This immediately opens the substack where the datagrid will be created, and then makes the substack invisible. When you later want to see the substack, just make it visible. Now the datagrid labels appear co...
- Sat Dec 11, 2010 7:13 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: datagrid on substack - no labels
- Replies: 6
- Views: 3910
Re: datagrid on substack - no labels
Actually the problem is not platform dependent. The nature of the labels depends on whether or not the "Data" window is opened before or after the data is changed.
And therein may lie the heart of the problem, since the LiveCode hints state-
Update 2-
And therein may lie the heart of the problem, since the LiveCode hints state-
Update 2-
- Sat Dec 11, 2010 6:51 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: datagrid on substack - no labels
- Replies: 6
- Views: 3910
Re: datagrid on substack - no labels
Update-
This problem is somewhat platform dependent. On a PC, the executable shows the Var1 and Var2 columns labeled correctly, but the Time column still has no label.
This problem is somewhat platform dependent. On a PC, the executable shows the Var1 and Var2 columns labeled correctly, but the Time column still has no label.
- Sat Dec 11, 2010 5:50 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: datagrid on substack - no labels
- Replies: 6
- Views: 3910
datagrid on substack - no labels
I have a problem where the column labels on a datagrid in a substack are missing. In this screenshot, the upper two windows are in LiveCode and the lower two windows are from the compiled application. Notice that the LiveCode window labeled "Data" looks fine, but the app version of the "Data" window...
- Tue Dec 07, 2010 5:54 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: setting field positions (or sending messages in general)
- Replies: 2
- Views: 2147
Re: setting field positions (or sending messages in general)
A longer answer is provided by the LiveCode Dictionary under 'Properties'. The following lines will print the properties of a field into the Message Window. Not all properties are printed ('location', 'width', and 'height' are not), but it does list the rectangle properties, which are equivalent. ge...
- Tue Dec 07, 2010 2:01 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: setting field positions (or sending messages in general)
- Replies: 2
- Views: 2147
Re: setting field positions (or sending messages in general)
The short answer is that 'set the location .........to x,y' will set the location of a field. Also, 'textAlign.......to [left, right, center]' will align the text. But I discovered both of these by trial and error. The larger question still remains of how to uncover all of the properties that can be...
- Tue Dec 07, 2010 1:08 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: setting field positions (or sending messages in general)
- Replies: 2
- Views: 2147
setting field positions (or sending messages in general)
Here's another "simple" question. How do I programmatically set the position of a field? Or more generally, how do I find a list of the messages that can be sent to an object. The LiveCode dictionary says- To see a list of messages that can be sent to a field as a result of user actions or internal ...
- Mon Dec 06, 2010 9:28 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: reference objects inside nested groups
- Replies: 4
- Views: 2838
Re: reference objects inside nested groups
Dangerous indeed, as I have discovered.