You can get away with straight text for small data sets, but I would never
suggest using a single variable and line references for random access on
anything more than a few tens of thousands of lines -- although I will
point out that in your test, even working with a million lines meant a
worst cas
On Mon, Feb 20, 2012 at 9:05 PM, Alejandro Tejada wrote:
> This is exactly the reason that drive me to ask
> if it is possible to rebuilt a binary stack from xml
> source: Does every control keeps its original ID?
>
Not with the tool I created. It sounds like it's possible now.
>
> Because if t
I'm looking at the docs for Eclipse and I see "safe rename." Is that what
you're talking about? Out of curiosity does it mean that when you rename
something, it goes through all your source files looking for references to
that thing, and changes them?
I understand that this is nitpicking, but I th
On Feb 20, 2012, at 9:37 PM, Kay C Lan wrote:
> Anyone want to test the speed of finding data in a 100 line variable
> using char -1 of word -1 of item -1 of line -1?
Hi, Kay. Sure. How do I get the script?
I'd guess that almost all the time goes into the line -1, and within that line
the
On Tue, Feb 21, 2012 at 10:20 AM, Geoff Canyon Rev wrote:
> For items, lines, and words, using
> "item/line/word of myContainer" gets worse the larger the container is. For
> character and with arrays, it doesn't.
>
Excellent rules of thumb, though there is a caveat to all this.
Unfortunately I
Hi Anthony,
Here's a link to a USB lib I wrote a few years ago (also available on
RevOnline). It may be of interest to you:
http://pdslabs.net/stacks/libUsbDrive.rev.zip
Phil Davis
On 2/20/12 8:14 PM, Anthony Howe wrote:
Heya Folks,
Anyone got a command / function lying around that wi
Thanks this conversation has been very interesting, though a lot of it is
above my head. I didn't realize that
there were scripts and objects. I just assumed that the objects were
canned scripted objects, with only
the various properties exposed. What are they written in then?
_
I find this a fascinating topic!
The following thoughts are related to to a tool that identifies changes
between versions of a stack. Recreating a stack is another issue. A full
blown version control system is yet another issue and it's entirely
possible that such a beast isn't possible with Liv
Try:
put the volumes
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Heya Folks,
Anyone got a command / function lying around that will find a USB stick on
Mac/Win and return a path to it?
I thought I saw something mentioned a while ago on the list but lost track of
it...
Warm regards,
A.
___
use-livecode mailing li
Hmmm, sounds like the exact same excuse I give my wife ;-)
On Tue, Feb 21, 2012 at 2:16 AM, Richmond wrote:
> On 02/20/2012 07:18 AM, Kay C Lan wrote:
>
>> On Mon, Feb 20, 2012 at 1:12 AM,
>> Richmond
>> >wrote:
>>
>> I wouldn't worry about that. In our flat one cannot see the living-room
>>> w
Does tm tools get mentioned twice because it's twice as good as the rest?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailma
Hi Geoff,
Geoff Canyon Rev wrote
>
> [snip]
> For FileMaker, it's the easy database, but equally important, it's the
> fact
> that all items -- scripts, layouts, columns, tables, etc. -- are
> abstracted
> from their names. In FileMaker, if you change the name of a table, then
> everywhere in an
That's a cool feature of Filemaker (the abstracted table names I mean).
I'm about to release an admin tool for SQLite databases - it has no
connection with Livecode other than that's what I used to make it but I
think I'll put some sort of connection to Livecode scripts on the
enhancement list to
Interesting, and it kinda makes sense. For elements, there's no
positioning required like with lines/words/item, just a case of cycling
through the keys - which is what "repeat for each line in the keys of
does I suppose.
Pete
On Mon, Feb 20, 2012 at 6:20 PM, Geoff Canyon Rev wrote:
> Certainl
Geoff-
Monday, February 20, 2012, 6:03:20 PM, you wrote:
> For FileMaker, it's the easy database, but equally important, it's the fact
> that all items -- scripts, layouts, columns, tables, etc. -- are abstracted
> from their names. In FileMaker, if you change the name of a table, then
> everywhe
Certainly correct, but there is not the tremendous performance advantage to
using "for each element in..." For items, lines, and words, using
"item/line/word of myContainer" gets worse the larger the container is. For
character and with arrays, it doesn't. In my quick testing here, there's
just abo
Fair point. One thing I find interesting is how each environment I use
brings something to the table that no other environment does (as well). For
LiveCode, it's the built-in GUI builder and the interactive development.
For FileMaker, it's the easy database, but equally important, it's the fact
th
Omegabundle for LiveCode 2012 Released
13 Best Developer Tool Bundle Saves Over 89% for a Limited Time
The Omegabundle Group, a group of professional development tool vendors
announce and release Omegabundle 2012 for LiveCode. This limited time
package contains over $3,699 worth of tools but avai
That is possible. The craziness is that the trailing cr affects the result even
if the filtered text does not include the last line of the list. If there is a
trailing cr, then the result will end with a cr no matter WHICH lines end up in
the filtered text. If there isn't, then the result will N
Seems like a year or so ago there was a big dust-up here when RunRev changed
their definition of a list to more closely conform to... something. Anyway, I
believe the trailing CR is a symptom of that change.
Phil Davis
On 2/20/12 2:10 PM, Bob Sneidar wrote:
OK I think I see what is going on
Pete, you are correct. "Lines of the keys" are not sorted.
Bob, thanks. I have not ever seen "element" used before. Interesting.
-= Mike
Sent from my BlackBerry device on the Rogers Wireless Network
-Original Message-
From: Pete
Sender: use-livecode-boun...@lists.runrev.com
Dat
Graham,
The full path is not the full path to some sound object in a stack but the full
path to the file on disk. For example specialfolderpath("engine") & slash &
"sounds" & slash & "Xylo.aif"
I think that file paths on the iPhone are case sensitive. I'm not entirely sure
whether this also ap
OK I think I see what is going on here and it IS a bug! Filter is treating all
the lines the way LC normally does, the line without the carriage return. The
bug is that if the last character is a carriage return, it is being included
with the filtered text! I am going to submit it to the QCC unl
I tend to use for each line in the keys also, mainly because element
returns the contents of the array and I often find myself needing to know
the key value. Plus if you need to get the array elements in key sequence,
I think you have put the keys into a variable and sort them then base the
repeat
I think I see the difference. My code didn't have a final return after the
last line, yours did. If I change my code to include the final return, the
return IS included in the result of the filter, even though it's the first
line that is in there, not the last one!! That is very strange and just
I haven't had much luck on my iOS iPad app with waiting until a sound is done
(RR have just said I found a bug), but ignoring this issue I can't get a really
simple 'play' statement to work. I have a button
play "Xylo.AIF"
which works in the IDE but not in the simulator. In case it was a path p
ON mouseUp pMouseBtnNo
put the dgData of group "dgTableData" into theDataA
REPEAT FOR each element theRecordA in theDataA
add 1 to theItemNum
put theRecordA["reservationid"] into item theItemNum of
theReservationList
END REPEAT
put theReservationList
END mouseUp
I
That is very odd. I put this in a button:
ON mouseUp pMouseBtnNo
put "test 1" & cr & "test 2" & cr into theText
filter theText WITH "test 1"
put return is in theText
breakpoint
END mouseUp
I get true and the return is in the variable in the debugger. But when I
execute the code y
Bob,
Can you give a quick example of this? I have always used for each line in the
keys of array.
Thanks
Mike
Sent from my BlackBerry device on the Rogers Wireless Network
-Original Message-
From: Bob Sneidar
Sender: use-livecode-boun...@lists.runrev.com
Date: Mon, 20 Feb 2012
I only mention card locking because the elements of a card typically interact
with each other quite a bit. Imagine someone renaming a button that a card
script accessed by name, or a field that was critical to saving data to a
database. Also the process of checking out and in every object in a c
Also each element in
Bob
On Feb 20, 2012, at 10:34 AM, gcanyon+rev wrote:
> any time you find yourself writing:
>
> repeat with i = 1 to the number of lines|words|items of someContainer
>
> stop. Rewrite it as:
>
> repeat for each line|word|item in someContainer
__
Thanks Paul, stupid of me. I seem always to be looking in the wrong place for
information.
Having finally reviewed that page (12) I notice that the description doesn't
apply to my case. I have not locked the screen, and am just doing a
card-to-card transition. As I said, my very simple example
Maybe I'm misunderstanding what you're saying but I don't see this.
**
*on mouseUp*
*
put "line1" & return & "line2" into myLines
answer information (return is in myLines)
filter myLines with "line1"
answer information (return is in myLines)
end mouseUp
*
The first answer retur
The problem is solved with no code necessary by simply setting the
autohilte property to off, as Marty revealed a couple of days ago.
On Mon, Feb 20, 2012 at 9:25 AM, Bob Sneidar wrote:
> Name all your checkboxes with a special 3 character prefix. Have a mouseUp
> handler in your card or stack s
Bob,
there seems to be a type in the link to the video classroom, when clicking on
the button "View Video Demo"
But the link under "Video Classroom" in the menu on the left works.
Matthias
Am 20.02.2012 um 19:07 schrieb Bob Sneidar:
> None of the demo videos work. 404 page not found. Better f
I'm not convinced that you broke it, Ken. If you did, I want to know how you
got into my office... I ran into approximately this problem the other day.
I think that there are two things going on here.
The less important is that at some point the default number of sides for the
polygon object
If speed is not an issue, you can do this:
set the unicodeText of fld x to unhex( someHexExternalFunction() )
I'm hoping that the iOS style interface will move to the other platforms as an
option. (For all I know, it has done so when I wasn't looking.)
I often create stack-library and external
Agreed that a full implementation would be better; I'm just saying that,
compared to the present setup, where there is no source control whatsoever, a
system that at least allowed merging code in a controlled fashion would be a
huge improvement.
I would hope we can do better than card-level lo
On Feb 19, 2012, at 10:42 PM, dunb...@aol.com wrote:
> Kay's is much faster than mine.
Don't worry about it, it happens to just about every person who's had
experience with HyperCard when they come over to LiveCode: the "repeat for
each" aha! moment: any time you find yourself writing:
repeat
On 02/20/2012 07:18 AM, Kay C Lan wrote:
On Mon, Feb 20, 2012 at 1:12 AM, Richmondwrote:
I wouldn't worry about that. In our flat one cannot see the living-room
walls (in some places 3 books deep).
You've seen the TV series Hoarders I presume
All my books (and my wife's, and my sons') ha
Cal-
Sunday, February 19, 2012, 10:32:04 PM, you wrote:
> The problem I'm having with the tool is in plug-in mode when I load it into
> the development environment of LC 5.0.2. It crashes on a handler, or
> function that it doesn't seem to be able to find.
Well, admittedly I haven't looked at it
None of the demo videos work. 404 page not found. Better fix that.
Bob
On Feb 19, 2012, at 4:26 PM, Mark Wieder wrote:
> Cal-
>
> Sunday, February 19, 2012, 4:09:40 PM, you wrote:
>
>> Is anyone still using ButtonGadget2?
>
>> If so, is it still being supported?
>
>> If not, what happened
Ick. So easy to lose track that way. Having multiple independent copies of a
project floating around is in my opinion to be avoided at all costs. In a real
multi-dev system, the control would have to update the existing client copies
each time an item was checked out or checked in, so that each
Hi All,
I thought to myself "I could use a Regular Polygon here..." So I
clicked on the diamond shape in the toolbox, and started to draw one on
my card. It defaulted to 12 sides, about 8 more than I wanted.
Once I let go of the mouse button, the Regular Polygon was deselected,
and the ope
I was going to say that you would have to discriminate between temporary
datagrid objects that the datagrid created on the fly, and those that are a
part of a datagrid object, but then some people use datagrids as static storage
objects, and they would have to be reproduced in their entirety.
Name all your checkboxes with a special 3 character prefix. Have a mouseUp
handler in your card or stack script:
ON mouseUp pMouseBtnNo
put the short name of the selectedobject into theObjectName
IF char 1 to 3 of theObjectName is "chk" THEN -- for example
set the hilite of the se
Thanks, Dar. I think we are going to include a lot of NULLs in our data. That
probably means we shouldn't use a function.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 502
My external C code boilerplate includes a function to create a hex returnable
value. I sometimes do that. If you learn of a better way, I would like to
learn of that.
It is easer with iOS externals.
You might be able to do this by analysis. If you know your characters will
never include a z
It does not. I just tested this.
ON mouseUp pMouseBtnNo
put "This is a test" & cr into theText
put "this is another test" after theText
put line 1 of theText into theTestText
breakpoint
put line 2 of theText into theTestText
breakpoint
END mouseUp
In each case, theTestTex
Hi,
Is LiveCode 5.0.2 able to read binary data from an external? I thought this was
impossible, but my colleague, who is working on an external, tells me there is
no reason why it would not work.
I believe I need to use a command with a variale included as parameter to make
an external return
I think the LC team were going to look into push notifications. So you might
have this ability in the future.
Gerry
On 20/02/2012, at 6:49 AM, Keith Clarke wrote:
> Can LiveCode alert the user of things such as inbound message when the app is
> in the background?
___
Hi Graham,
> Thanks - I had not read these notes in detail and indeed it took some time to
> find anything like them on the RunRev web site - they don't seem to have
> stuck around on my Mac after installation. The only notes I could find are
> called "LiveCodeNotes-5_0_0.pdf, revision 7", and
Thanks - I had not read these notes in detail and indeed it took some time to
find anything like them on the RunRev web site - they don't seem to have stuck
around on my Mac after installation. The only notes I could find are called
"LiveCodeNotes-5_0_0.pdf, revision 7", and there's nothing on P
Hi Len,
My code was just an example. Words can only refer to "real" words indeed, but I
believe you have already figured out how to reference the parameters. Just
replace that part of my code with whatever you deem right. Perhaps something
like "repeat with x = 1 to number of chars step 2".
--
...thanks for the clarification, Ken.
Unfortunately, the file downloads for STSTraty don't seem to be working at the
moment (from either the download or product page sidebar) Were you aware?
Best,
Keith..
On 20 Feb 2012, at 01:18, Ken Ray wrote:
>> For Windows, I've found STSTray
>> http://w
56 matches
Mail list logo