Sorry, I don't know the correct verbiage here...
If I script this:
put A into theArray[1]
put B into theArray[2]
put C into theArray[3]
And then script this:
delete variable theArray[2]
I essentially get an array with entries that look like this:
A
C
How can I collapse (?) the array
On 1 Sep 2011, at 10:53, Scott Rossi wrote:
Sorry, I don't know the correct verbiage here...
If I script this:
put A into theArray[1]
put B into theArray[2]
put C into theArray[3]
And then script this:
delete variable theArray[2]
I essentially get an array with entries that
Try this in the multiline message box:
put A into theArray[1]
put B into theArray[2]
put C into theArray[3]
delete variable theArray[2]
put theArray[1] *theArray[2] * theArray[3]
You'll see that although theArray[2] is deleted, its position is still kept.
The way the dictionary describes it
Mike, it was far more work than it should have been getting Livecode
4.6.3 and the Android SDK to work on OS X. I'll give you that :)
Have you got the Android VM set up and running before you try to
connect Livecode to it? I certainly had the VM identified in the
Livecode IDE, but then plugged
On 1 Sep 2011, at 13:13, Colin Holgate wrote:
Try this in the multiline message box:
put A into theArray[1]
put B into theArray[2]
put C into theArray[3]
delete variable theArray[2]
put theArray[1] *theArray[2] * theArray[3]
You'll see that although theArray[2] is deleted, its
On 1 Sep 2011, at 14:16, Dave Cragg wrote:
It seems using any key on an existing array will produce an empty value. (I
don't know if that's how it should behave. I guess the alternative would be
throwing an error.)
Update: it seems the array doesn't even need to exist. This also produces
I can only get this to work intermittently. The stuff in the dictionary does
not happen, and I cannot get a mouseUp message to fire.
If I set the default of a certain button I cannot get anything to return that
fact. (answer the defaultbutton of this cd)
But sometimes it does.
Craig Newman
I totally get what the OP wants, code-wise, I just cannot help make
it happen, but perhaps I can put it in my terms and help someone more
knowledgeable than me help him.
What he is saying, is that when a
variable is deleted from within the array, he needs the entire array
re-ordered (sorted)
Scott Rossi wrote:
If I script this:
put A into theArray[1]
put B into theArray[2]
put C into theArray[3]
And then script this:
delete variable theArray[2]
I essentially get an array with entries that look like this:
A
C
How can I collapse (?) the array after deleting element 2 so that
I think Mike's explanation over complicated things!
I now understand what Dave was saying, and the problem stems from us humans
reading a 1 as an index into the array, and not a key of the array.
In other languages you could say:
put hello into theArray[10]
and that array would now have ten
On 1 Sep 2011, at 14:48, Admin wrote:
So, if A,B,C,D is the array with positions 1,2,3,4
and you
delete array variable 2
It will now look like this:
A,C,D
and the
array numbers are now:
1,3,4
He needs it to be
A,C,D
and
1,2,3
Looking back, I guess that's
Collin,
Perhaps to you I was over complicating things, but as I
see it, that is what he was asking for.
If you have nothing nice to
say . . .
Mike
P.S. I am not an admin - when I joined the live code
summer academy, they auto-assigned this forum name to me - it's not by
my choice.
On
Recently, Richard Gaskin wrote:
The delete is fine; the problem is in the display of the results.
If you use:
put theArray[1] *theArray[2] * theArray[3]
...you'll get the empty entry for theArray[2]. The variable theArray
still exists, but there's nothing in that slot.
Yes, this
Yes, the I think part of what I said meant that to me it had over complicated
things. Glad to hear that it was easy to understand for the others, and at
least I had the personal breakthrough of realizing that anArray[10] doesn't
refer to the tenth position of an array.
On Sep 1, 2011, at
On 31.08.2011 at 17:29 Uhr -0700 Pete apparently wrote:
I put a default button a card that has a couple of field controls on it.
The field controls all have lockText set to true and traversalOn set to
false. Pressing the return key when the card is active does not execute the
mouseUp handler
On 9/1/11 9:10 AM, Scott Rossi wrote:
From what you're saying, it sounds like I need to put the remaining elements
of the array into a temporary variable and then replace the original array.
If that's what you need, then it might be easier to just combine the
array, remove the line you
On 8/31/11 7:29 PM, Pete wrote:
I put a default button a card that has a couple of field controls on it.
The field controls all have lockText set to true and traversalOn set to
false. Pressing the return key when the card is active does not execute the
mouseUp handler for the default button
Jacque.
Me, too.
The dictionary talks a great game, though. It is the unrepeatable intermittent
aspect that has me stumped. I DID get an answer to my answer the defaultButton
of this cd a couple of times, but cannot any longer. As for the dictionary's
comments about the defaultButton
On Thu, Sep 1, 2011 at 12:18 PM, J. Landman Gay jac...@hyperactivesw.comwrote:
On 9/1/11 9:10 AM, Scott Rossi wrote:
From what you're saying, it sounds like I need to put the remaining
elements
of the array into a temporary variable and then replace the original
array.
If that's what
Recently, Jacque Landman Gay wrote:
From what you're saying, it sounds like I need to put the remaining elements
of the array into a temporary variable and then replace the original array.
If that's what you need, then it might be easier to just combine the
array, remove the line you don't
Hi,
This is what I just did:
1) create new stack
2) drag one default button from the tools palette into your stack
3) edit the script of the button to make it been on mouseUp (and nothing else)
4) compile and close script
5) press return
6) hear beep
--
Best regards,
Mark Schonewille
Scott Rossi wrote:
Recently, Richard Gaskin wrote:
The delete is fine; the problem is in the display of the results.
If you use:
put theArray[1] *theArray[2] * theArray[3]
...you'll get the empty entry for theArray[2]. The variable theArray
still exists, but there's nothing in that
Thanks Trevor.
If anyone has a particular example stack they would like made please email
me and I will put it on the list. (Linux or Windows until a Mac library is
compiled)
I am hopeful that the group will eventually help with this.
Glen
On Wed, Aug 31, 2011 at 8:03 PM, Trevor DeVore
I can put put theArray[2] into the message box and get empty, and I do not
even HAVE an array called theArray! :-)
Bob
On Sep 1, 2011, at 5:13 AM, Colin Holgate wrote:
Try this in the multiline message box:
put A into theArray[1]
put B into theArray[2]
put C into theArray[3]
delete
Try instead:
put the keys of theArray into myKeys
put 2 is in myKeys
See what you get.
Bob
On Sep 1, 2011, at 2:53 AM, Scott Rossi wrote:
Sorry, I don't know the correct verbiage here...
If I script this:
put A into theArray[1]
put B into theArray[2]
put C into theArray[3]
And
I think there are still a few things in the edges and corners of Livecode
that have been ignored and worked around, and bug reports not filed.
A good example of an popup menu that is on the plugin Settings panel in the
Development menu. The popup list, in addition to being the stack file names
Thanks everyone.
Jacque, Like you I'm currently using a returnKey handler for the card that
sends mouseUp to the button to get round this.
Craig, If I put the defaultbutton of this card, I get the correct output.
Also, I'm not seeing anything in the dictionary about the button changing
size -
Stephen,
I agree with all that, but I think it should be recorded as a bug just so
it's on record even though it's definitely a very low priority. Maybe I will
put a user note on the dictionary entry so people don't spend an hour or so
trying to get it to work the way described (as I did) before
Does anyone have a hint on how to properly download those links on gitHub
website?
No matter how I try to save (option-click save as) the files show up with
.html suffixes and changing the suffixes does not make them usable. They
appear to not get downloaded as binaries.
I usually don't have
Mark.
Try this:
Create a new stack, drag an editable field and a defaultButton over.
Put this in the button script:
on mouseUp
beep 3
end mouseUp
Press return, get three beeps. Now place a cursor in the field. Hit return, no
beeps, as is proper.
Now click anywhere in the card area,
I'm going to say that an active control is one that is not disabled and is
targeted. I created a new stack, with only one card and one button. In the
mouseUp of the button I put:
answer This is the default button as sheet
Hitting the return key triggers the mouseUp in the button. All well and
Hi Craig, you did almost exactly what I did, except for the trapping of mouseUp
in the card script, which seems to fix the issue.
Bob
On Sep 1, 2011, at 10:45 AM, dunb...@aol.com wrote:
Mark.
Try this:
Create a new stack, drag an editable field and a defaultButton over.
Put
I have entered this as a bug - it's #9707.
Bob, I can't reproduce what you did with the mouseUp at the card level.
Doesn't trigger for me under the circumstances you described. It DOES
trigger when I CLICK on the card outside of any controls on it as you'd
expect, but not when I hit return
My solution has been to put the following in an invisible button:
on returnkey
send mouseup to btn myDefaultBtn
end returnkey
and then
on opencard -- or openstack, or whatever
insert the script of btn myFrontscript of this card into front
end opencard
on closecard -- or closestack, or
Need this be a good thing? If you're typing into a multiline field you might
not be finished at the time you press the Return key. On Mac at least there's
the convention that the Enter key might complete the action, and the Return key
is just a line break. Not sure how it is on Windows
Thanks for sharing Peter!
Salut,
Josep
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/TextLib-rev-tp3777580p3784841.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-livecode mailing
Colin Holgate wrote:
Need this be a good thing? If you're typing into a multiline field you might
not be finished at the time you press the Return key. On Mac at least there's
the convention that the Enter key might complete the action, and the Return key
is just a line break. Not sure how
Good to know. As a point of interest, can you still trap for the Enterkey,
while editing a field?
On Sep 1, 2011, at 5:43 PM, Richard Gaskin wrote:
Peter's script traps returnKey, which is not sent when the Return key is hit
while an open field has focus; in that circumstance the
Colin Holgate wrote:
As a point of interest, can you still trap for the Enterkey, while editing a
field?
If the focus is on an open field, the enterInField message is sent instead.
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for
yes
On 1 September 2011 14:47, Colin Holgate co...@verizon.net wrote:
Good to know. As a point of interest, can you still trap for the Enterkey,
while editing a field?
On Sep 1, 2011, at 5:43 PM, Richard Gaskin wrote:
Peter's script traps returnKey, which is not sent when the Return key
That sounds like when the button has the focus, it works fine, but
when it does not have the focus it does not work. When a button has the
focus, enter and space bar will effect that control usually (at least in
other languages).
Mike
On Thu, 1 Sep 2011 13:45:36 -0400 (EDT),
Dear LiveCoders,
It is a pleasure to announce another edition of the LiveCode.tv event, even
though we are having serious difficulties finding people who want to
participate.
Before making the announcement, I want to urge you all to contact me OFF-LIST
with your proposal for a presentation.
stephen-
Thursday, September 1, 2011, 10:21:25 AM, you wrote:
Does anyone have a hint on how to properly download those links on gitHub
website?
No matter how I try to save (option-click save as) the files show up with
.html suffixes and changing the suffixes does not make them usable. They
I thought that download button was a field indicating the page - didn't
expect an ajax-y thing to pop up. Pilot UI error. I don't hang out in
github a lot, obviously.
On 1 September 2011 15:56, Mark Wieder mwie...@ahsoftware.net wrote:
stephen-
Thursday, September 1, 2011, 10:21:25 AM, you
stephen-
Thursday, September 1, 2011, 4:21:27 PM, you wrote:
I thought that download button was a field indicating the page - didn't
expect an ajax-y thing to pop up. Pilot UI error. I don't hang out in
github a lot, obviously.
Cool. I assume then that it worked out.
--
-Mark Wieder
I didn't say I got it installed and working yet!
On 1 September 2011 17:35, Mark Wieder mwie...@ahsoftware.net wrote:
stephen-
Thursday, September 1, 2011, 4:21:27 PM, you wrote:
I thought that download button was a field indicating the page - didn't
expect an ajax-y thing to pop up.
Everyone,
I'm using LC 4.5.2 and have noticed my Windows standalone does not do my check
boxes. They just don't show up. Anyone else notice the same condition? The OSX
version shows them fine. I am running it with XP under Fusion. Could that be
the problem?
Joe Lewis Wilkins
Architect
I am using the following script to save fields, checkbox and option buttons.
Saving the content of fields works but I have been unsuccessful in saving the
names of the option buttons, which are school names.
FUNCTION gatherData pCard
lock screen
lock messages
push card
go to card
Hi Charles,
The style will just be set to menu, check the menumode for option or
combobox
Pete
Molly's Revenge http://www.mollysrevenge.com
On Thu, Sep 1, 2011 at 5:53 PM, Charles Szasz csz...@mac.com wrote:
I am using the following script to save fields, checkbox and option
buttons. Saving
Sorry, just noticed you were looking for checkbox not combobox, which is
defined by the style property, just the option menus are where you need to
check the menumode.
Pete
Molly's Revenge http://www.mollysrevenge.com
On Thu, Sep 1, 2011 at 5:53 PM, Charles Szasz csz...@mac.com wrote:
I am
then I realized the idiot in question was me :-)...
http://www.techdirt.com/articles/20110822/13094215621/what-idiot-wrote-patent-that-might-invalidate-software-patents-oh-wait-that-was-me.shtml
--
-Mark Wieder
mwie...@ahsoftware.net
___
answer the fontNames returns 1 in android.
I need to identify and use a digital clock font. It needs to be a font that
is most likely already installed on all Android devices.
the fontNames is in the LC dictionary with the android icon, so I kinda
expected to see a list of fonts.
˜Roger
52 matches
Mail list logo