Re: Sending keyDown

2009-10-22 Thread J. Landman Gay
Richard Gaskin wrote: I once argued with him on that one, insisting it was absolutely necessary to have it after I discovered it while doing a port. His answer was that if I need a custom behavior then use a custom name. He did offer to reconsider if I could come up with a scenario in which

Re: How to filter a big list

2009-10-22 Thread Alex Tweedly
Alex Tweedly wrote: Note the use of ".." to give an indication that work is still in progress and there may be more matches to come. Hmmm that's a bit of a cheap way to do it. Much better to put the number of lines in sData into tDataSize, and then do put 20 - (20 * tCount

Re: How to filter a big list

2009-10-22 Thread Alex Tweedly
Richard Gaskin wrote: Jérôme Rosat wrote: I explained in my message that I wish to filter a list of names and addresses dynamically when I type a name in a field. This list contains 400'000 lines like this: Mme [TAB] DOS SANTOS albertina [TAB] rue GOURGAS 23BIS [TAB] 1205 Genève I made v

Re: Sending keyDown

2009-10-22 Thread Richard Gaskin
DunbarX wrote: That mouseWithin is not sent if no handler exists in the heirarchy seems prudent and clever; I cannot see a downside. But I am not sure that a parallel exists if I explicitly send a native message to the engine. Send is pretty slow as it is (relatively speaking). If the engine

Re: how to preserve character set encoding when creating a text file?

2009-10-22 Thread Richard Gaskin
It's a long-shot, but have you tried the shortFileName function? -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv __

Re: how to preserve character set encoding when creating a text file?

2009-10-22 Thread Josh Mellicker
Thanks Joe, we will peruse that, I wonder who wrote it? These lessons don't have "bylines". When we figure out I will post the solution so nobody ever has to go through this hassle again. On Oct 22, 2009, at 7:48 AM, Joe F. wrote: They've posted a good explanation of how to use unicode te

Re: Sending keyDown

2009-10-22 Thread DunbarX
Richard. Well reasoned, very interesting, and fair enough. I am way past trying to force HC onto Rev, and anyway in most cases the difference is an improvement. That mouseWithin is not sent if no handler exists in the heirarchy seems prudent and clever; I cannot see a downside. But I am not sur

Do (was: a Condition stored as a variable)

2009-10-22 Thread DunbarX
This was one of the unsung, and unsupported features (bugaboos?) of HC. It all started when one tried to, say, "put someThing into the foundLine". A "do" construction was required to perform a multiple evaluation of the code so the parser could make sense of what you really wanted to do. Otherwi

Re: Sending keyDown

2009-10-22 Thread Richard Gaskin
DunbarX wrote: But there is still that mystery about "send". I use "send" all the time. And "dispatch" doesn't work, either. Anyone else concerned? When I tested here, "send" complained with an error message, but "dispatch" worked fine. That is, "fine" in the sense that the message was sent

Re: Sending keyDown

2009-10-22 Thread DunbarX
Jacques. KeyUp works just fine as a workaround. Thank you. And thank Rev for having every conceivable event covered. A reasonable way to separate the functonality I needed. But there is still that mystery about "send". I use "send" all the time. And "dispatch" doesn't work, either. Anyone else

Re: Sending keyDown

2009-10-22 Thread J. Landman Gay
dunb...@aol.com wrote: Jim. Thought some more about your post. What I am trying to do is get typed chars into the field, and then work on the actual text of that field. That was why the idea of sending keyDown in the handler's first line is so nice; it loads the field, and still leaves the

Re: Condition stored as a variable.

2009-10-22 Thread Andre Garzia
creating code at runtime and executing it is one of the fun things in programming. You can go crazy with it by creating code that creates code that creates code that... If there were no scriptlimits we could roll our own macro expansion engine with it. Be aware that you can only execute up to 10 li

Re: Condition stored as a variable.

2009-10-22 Thread Warren Kuhl
Andre, Thank you...this worked! Really appreciate you taking the time to help me out. Warren On 10/22/09, Andre Garzia wrote: > > try making the variable: get "002" <> "001" > do a: > > do Variable1 > > if it is true then > ... > end if > > see if this works! :D > > On Thu, Oct 22, 2009 at 5:

Re: Sending keyDown

2009-10-22 Thread DunbarX
Jim. Thought some more about your post. What I am trying to do is get typed chars into the field, and then work on the actual text of that field. That was why the idea of sending keyDown in the handler's first line is so nice; it loads the field, and still leaves the remainder of the handler

Re: Condition stored as a variable.

2009-10-22 Thread Andre Garzia
try making the variable: get "002" <> "001" do a: do Variable1 if it is true then ... end if see if this works! :D On Thu, Oct 22, 2009 at 5:19 PM, Warren Kuhl wrote: > I have a viable with the following value: > > Variable1: "002" <> "001" > > I would like to use the variable as a condition

Condition stored as a variable.

2009-10-22 Thread Warren Kuhl
I have a viable with the following value: Variable1: "002" <> "001" I would like to use the variable as a condition and see if it is true. I have tried: If Variable1 then ... End if ...this couldn't seem to work. Any suggestions? Thanks for any help! Warren _

Re: [update] WeCode Planet now tracks #runrev on twitter as well...

2009-10-22 Thread Andre Garzia
forgot to tell, it is also tracking @runrev and @ConsultRunRev If you have a twitter account that is used for Rev related stuff, don't forget to tell me to add there. On Thu, Oct 22, 2009 at 4:05 PM, Andre Garzia wrote: > Hello Folks, > thanks to the miracles of the internet, WeCode Planet is no

[update] WeCode Planet now tracks #runrev on twitter as well...

2009-10-22 Thread Andre Garzia
Hello Folks, thanks to the miracles of the internet, WeCode Planet is now not only tracking blogs but it is also tracking #runrev hashtag on twitter. The site updates 5 times a day so don't expect to see your tweet as soon as you posted it. Cheers andre -- http://www.andregarzia.com All We Do Is

Re: Sending keyDown

2009-10-22 Thread DunbarX
Richard. Thanks for the reply. I tried that, after finding the link to "dispatch" while rereading stuff about "send" in the dictionary. But although the typed letter appears in msg, it does not appear in the field. At least I get no errors, though. My uninformed opinion is that "send" and "dis

Re: Sending keyDown

2009-10-22 Thread DunbarX
Jim. First--- I sent the message explicitly to the stack, hoping it would make it to the engine. In HC this works as advertised ("keydown" is a message that Rev should understand); it certainly does when I pass it, as opposed to sending it, which is sort of the point. Second--- Understood. But

Re: SEND IN TIME

2009-10-22 Thread Terry Dennis
Message: 20 Date: Thu, 22 Oct 2009 08:44:43 +1000 From: Sarah Reichelt Subject: Re: SEND IN TIME To: How to use Revolution Message-ID: Content-Type: text/plain; charset=ISO-8859-1 There is one and only one SEND IN TIME in the app. All the app does is re-trigger itself to periodically capture

Re: Basic Font Question

2009-10-22 Thread Ray Horsley
Thanks for this input. Actually I had already considered the legal aspect of this. We've got somebody else looking into that. Thanks, Ray Horsley LinkIt! Software On Oct 22, 2009, at 7:58 AM, Björnke von Gierke wrote: you need to use the revFontLoad and revFontUnload commands to include

Re: Sending keyDown

2009-10-22 Thread Richard Gaskin
DunbarX wrote: Just when I was thinking I had the differences between HC and Rev down, I stumble. I have an editable field with this handler: on keyDown var send "keydown" && var to this stack put var end keyDown In HC, any text I type gets placed into the field, so typing works normal

Re: Basic Font Question

2009-10-22 Thread Björnke von Gierke
you need to use the revFontLoad and revFontUnload commands to include a font, it's not done automatically. Note that lots of fonts have very restrictive licenses, so make sure you do have the right to redistribute the fonts in question. On 22 Oct 2009, at 19:13, Ray Horsley wrote: How do I

Re: how to preserve character set encoding when creating a text file?

2009-10-22 Thread Joe F.
They've posted a good explanation of how to use unicode text here on the Rev site: http://lessons.runrev.com/spaces/754/buckets/784/lessons/6930-How-Do-I-Use-UTF-8-Text-With-Fields- On Oct 21, 2009, at 7:59 PM, Josh Mellicker wrote: Thanks Martin, but I'm not sure how to use this info. I w

Basic Font Question

2009-10-22 Thread Ray Horsley
How do I include one or more fonts with my stand alone distribution? I see the "Font Support" check box in the stand alone application settings, but nowhere to specify a font to be distributed. Ray Horsley LinkIt! Software ___ use-revolution maili

Re: Sending keyDown

2009-10-22 Thread Jim Ault
First Since the handler is in a field script, it is not in the message hierarchy when the SEND is executed, thus 'can't find handler' There is no keydown handler in the stack script. Second--- If you made a change and did this send ("keydown" && var) to ME which means the script

Re: Sending keyDown

2009-10-22 Thread DunbarX
Sarah: Thanks, I did that already. I always marvel at the endless ways to work out a problem. But why won't the other work? I want to understand the system, not just make it do my bidding. And the differences between HC and Rev interest me; I think it helps get a grip on Rev's much richer worl

Re: Calling all open source developers

2009-10-22 Thread Richmond Mathewson
All getting a bit heavy round these parts. This should lighten the load: http://mehglobal.com/nix/index.html Absolutely lovely! Love, Richmond. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubs