Re: How to test if a field does not contain anything else than returns or tab?

2009-02-05 Thread Andre.Bisseret
Very helpful indeed ! Always learning :-) I did not know that a non-breaking space was considered as a word ! Like St Thomas, I tried it and … you are right (of course ;-)) Yes, as you say, it is unlikely (mainly due to the fact that one use two keys to type a non-breaking space) but sure

Re: Another SQL question

2009-02-05 Thread Ken Ray
On 2/4/09 1:33 PM, Bob Sneidar b...@twft.com wrote: So using your method, my queries for a table of 25 employees with the associated departments data would look something like this: -- employee data put SELECT employees.deptid FROM employees LIMIT 25 into mEmployeeQuery --

Re: Another SQL question

2009-02-05 Thread Brian Yennie
A simple join would work for this as well: SELECT * FROM employees, departments WHERE employees.deptid = departments.deptid As a bonus, this way you could easily pick what fields you wanted from each table. For example: SELECT employees.id,employees.name,departments.name FROM employees,

Re: How to test if a field does not contain anything else than returns or tab ?

2009-02-05 Thread viktoras d.
there is: if matchText(fld fText, \S) is false then answer no text in field end if This one checks for any symbols that are not whitespace of any kind (\S is same as [ \t\f\r\n]). Viktoras Bob Sneidar wrote: I wonder, isn't there a way to use regular expressions to check for white

Re: How to test if a field does not contain anything else than returns or tab ?

2009-02-05 Thread viktoras d.
small correction: \s is same as [ \t\f\r\n], and \S is opposite to \s. viktoras d. wrote: there is: if matchText(fld fText, \S) is false then answer no text in field end if This one checks for any symbols that are not whitespace of any kind (\S is same as [ \t\f\r\n]). Viktoras

Printer driver crash on Win

2009-02-05 Thread Tiemo Hollmann TB
Hello, I've posted this already a couple of month ago, but wanted to ask, if anybody else has experienced same problems with Rev 3.0 on Win XP. Some (rare) customers of mine complain that my prog crashes, when they call the print dialog. I am just using: Answer printer Print card There is a

Re: How to put the text of several TXT files in just one text field with a single mouseclick?

2009-02-05 Thread Mark Smith
William, assuming you have the path for the folder in a variable tFo on mouseUp put the defaultFolder into tOldFo -- so we can set the default back when we've finished set the defaultFolder to tFo put the files into tFileList filter tFileList with *.txt repeat for each line L in

regex/matchtext question

2009-02-05 Thread Klaus Major
Hi all, I have a nice matchtext script that extract placeholders from a text. Like everything between and or :: or { and } This is the function I use, it#s a little script of Ken Ray (thanks Ken!) that I could understand, at least a bit to modify it:-) ## extract placeholder

Re: regex/matchtext question

2009-02-05 Thread Jim Ault
Difficulty one is that '[' is a special character in regular expressions and escaping can make using them even more confusing. This is also true of the filter command. --this function seems to work --the catch is that the [ and ] are special chars --recall the merge() function function getList

Re: regex/matchtext question SOLVED

2009-02-05 Thread Klaus Major
Hi all, after carefully reading my own post, I found the answer :-) Now it works with [ and [[! See below for the solution. Hi all, I have a nice matchtext script that extract placeholders from a text. Like everything between and or :: or { and } This is the function I use, it#s a

How to put the text of several TXT files in just one text field with a single mouseclick?

2009-02-05 Thread William de Smet
Hi there, Say I have several .TXT files in a directory and I want the contents of them all to be shown in just one text field with just one mouseclick. I know how to do this with one .TXT file but not with say 30 files. And all these files have different names. Any idea's or scripts are welcome!

Re Rev timeline stack?

2009-02-05 Thread David Glasgow
On 1 Feb 2009, at 12:31 pm, David Glasgow wrote: Subject: Rev timeline stack? Reply-To: How to use Revolution use-revolution@lists.runrev.com Has anyone written a timeline stack/group? I have looked at the software about, which looks luscious (especially Bee docs timeline) but it doesn't

Re: regex/matchtext question

2009-02-05 Thread Klaus Major
Hi Jim, looks like you missed my second post, I already found the solution to my problem. Difficulty one is that '[' is a special character in regular expressions and escaping can make using them even more confusing. This is also true of the filter command. Anyway, thanks for you

Re: convert to lower ascii 128?

2009-02-05 Thread Devin Asay
On Feb 4, 2009, at 6:45 PM, Chipp Walters wrote: Interesting note: I found the following results: function altAsciiScrub2 pText put replacetext(pText,[ numToChar(129) - numToChar(255) ],) into pText put replacetext(pText,[ numToChar(1) - numToChar(31) ],) into pText return

Re: Transparent

2009-02-05 Thread Wilhelm Sanke
On Wed Feb 4, 2009, Richmond Mathewson geradamas at yahoo.com wrote: I made an image via IMPORT SNAPSHOT on a card, set its INK to TRANSPARENT: But when I exported the image as both PNG and GIF the transparency was lost. Does this mean that transparency is only local? sincerely, Richmond

Mask

2009-02-05 Thread Richmond Mathewson
Hey, Look, Richmond is reinventing the wheel :) would be grateful if anybody can tell me why: put the charToNum(char 10 of the mask of imgGOTTIT) into fld fNEW throws a compiling at 7:39:53 PM TypeFunction: missing 'of' Object Mask Lineput the charToNum(char 10 of the mask of

Re: Printer driver crash on Win

2009-02-05 Thread J. Landman Gay
Tiemo Hollmann TB wrote: Hello, I've posted this already a couple of month ago, but wanted to ask, if anybody else has experienced same problems with Rev 3.0 on Win XP. Some (rare) customers of mine complain that my prog crashes, when they call the print dialog. I am just using: Answer

Re: Another SQL question

2009-02-05 Thread Bob Sneidar
Thanks all for the responses. I get a lot from this forum. Pardon the verboseness of my posts, but I am excited about what I am building, and want to share this with the Rev community when it is done. I think this can be a very useful tool for people who need to use rev to manage large

Re: Mask

2009-02-05 Thread J. Landman Gay
Richmond Mathewson wrote: Hey, Look, Richmond is reinventing the wheel :) would be grateful if anybody can tell me why: put the charToNum(char 10 of the mask of imgGOTTIT) into fld fNEW throws a compiling at 7:39:53 PM TypeFunction: missing 'of' Object Mask Lineput the

Re: Mask (Richmond Mathewson)

2009-02-05 Thread Melitón Cardona Torres
Hi, put the charToNum(char 10 of the mask of imgGOTTIT) into fld fNEW should either be: put the charToNum of char 10 of the mask of img GOTTIT into fld fNEW or put charToNum(char 10 of the mask of img GOTTIT) into fld fNEW In both cases, imgGOTTIT should be img GOTTIT, using a space to

Mask

2009-02-05 Thread Richmond Mathewson
Thank you v. much for your help, Melitón Cardona Torres and J. Landman Gay; I realised about 2 seconds after I had sent off that message that I had a silly the in there. But, as usual, I ran up against another something: put charToNum(char 10 of the mask of imgGOTTIT) into fld fNEW returns

Using SHELL to get a list of processes

2009-02-05 Thread Hugh Senior
Goal: Using shell()to determine if my Rev app is among the line of all running processes. If so, then user has started a second instance and I want to quit. Task 1: Get a list of all running processes and IDs. Task 2: Get the process name and ID of my Rev app. With me so far? Okay... I should

Re: Printer driver crash on Win

2009-02-05 Thread Scott Morrow
I have a client experiencing this problem (application quits) on one machine under Windows XP. All the rest of the machines at his site print correctly with this application. We have tried several times to solve this but for now he is just not using that particular computer to print with

Re: Another SQL question

2009-02-05 Thread Brian Yennie
Hey Bob, Hope these notes help - sounds like a fun project. It looks like your query above is going the opposite direction, looking up customers that match the deptid in departments. I am looking for department records whose deptid only exist in the customer cursor. More on paging later.

RE: Using SHELL to get a list of processes

2009-02-05 Thread Hugh Senior
Duh! I just found TASKLIST which works... get shell(TASKLIST). And the processID returns the id of the app. So I think I have got the necessary bits to check for multiple instances now. Apologies for bandwidth. Maybe this will help someone searching the archives in the future. /H

Re: Using SHELL to get a list of processes

2009-02-05 Thread Mark Schonewille
Hi Hugh, If you want to run only one instance of your standalone at a time, you need to include a relaunch handler in your stack script. Assuming that you want the existing instance to come to the foreground when the second instance is launched and that you want the second instance to

Re: Using SHELL to get a list of processes

2009-02-05 Thread Mark Schonewille
Hi Hugh, If you want to run only one instance of your standalone at a time, you need to include a relaunch handler in your stack script. Assuming that you want the existing instance to come to the foreground when the second instance is launched and that you want the second instance to

Re: Using SHELL to get a list of processes

2009-02-05 Thread Scott Rossi
Recently, Hugh Senior wrote: Goal: Using shell()to determine if my Rev app is among the line of all running processes. If so, then user has started a second instance and I want to quit. Task 1: Get a list of all running processes and IDs. Task 2: Get the process name and ID of my Rev app.

Re: Using SHELL to get a list of processes

2009-02-05 Thread J. Landman Gay
Hugh Senior wrote: Duh! I just found TASKLIST which works... get shell(TASKLIST). And the processID returns the id of the app. So I think I have got the necessary bits to check for multiple instances now. You might want to look at the relaunch command instead of using shell. It is

Transparent

2009-02-05 Thread Richmond Mathewson
Thank you Wilhelm Sanke for you scripting advice. Working from your advice I wrote the following script: on mouseUp put top of group gX into TOPP put bottom of group gX into BUM put left of group gX into LEFTT put right of group gX into RITE put LEFTT , TOPP , RITE , BUM into

Re: Printer driver crash on Win

2009-02-05 Thread J. Landman Gay
Scott Morrow wrote: I have a client experiencing this problem (application quits) on one machine under Windows XP. All the rest of the machines at his site print correctly with this application. We have tried several times to solve this but for now he is just not using that particular

Re: convert to lower ascii 128?

2009-02-05 Thread Ben Rubinstein
From the dept of Please don't let my wife or boss know that I've been wasting time on this Chipp Walters wrote: Interesting note: I found the following results: function altAsciiScrub2 pText put replacetext(pText,[ numToChar(129) - numToChar(255) ],) into pText put

Re: Using SHELL to get a list of processes

2009-02-05 Thread François Chaplais
Le 5 févr. 09 à 19:55, Hugh Senior a écrit : Goal: Using shell()to determine if my Rev app is among the line of all running processes. If so, then user has started a second instance and I want to quit. Task 1: Get a list of all running processes and IDs. Task 2: Get the process name and

Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Wilhelm Sanke
Both Chipp's ButtonGadget and Richmond's Button Basher automate the process of glueing together images with text - and other properties - and finally produce buttons with 2 or 4 icon states. Chipp's application possesses a number of nice and useful features, which otherwise you may find only

Regular expressions

2009-02-05 Thread DunbarX
OK, got the list of these, and I understand all of them but two: 1- The asterisk matches zero or more occurrences of the preceding character or pattern... So why does ZA*B match ZB, but does not match AB And the + matches one or more occurrences of the preceding character or pattern So why

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Klaus Major
Hi Wilhelm, Both Chipp's ButtonGadget and Richmond's Button Basher automate the process of glueing together images with text - and other properties - and finally produce buttons with 2 or 4 icon states. Chipp's application possesses a number of nice and useful features, which otherwise

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread J. Landman Gay
Wilhelm Sanke wrote: - The name or label of a button can be displayed on the right or the left side of an icon or *beneath* the icon, but not directly *on top* of an icon. Actually, if you jiggle the top and bottom margin settings of the button, you can achieve this. -- Jacqueline

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Klaus Major
Hi Jaquelin, Wilhelm Sanke wrote: - The name or label of a button can be displayed on the right or the left side of an icon or *beneath* the icon, but not directly *on top* of an icon. Actually, if you jiggle the top and bottom margin settings of the button, you can achieve this. Hmm,

Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Richmond Mathewson
Humpf: Just pumped out a couple of blank button images from my Button Basher stack and imported them into a new stack; using them as icons for a button. On the stack there is a text field fNAME and the button has the following script: on mouseUp set the name of me to fld fNAME end mouseUp

Re: Regular expressions

2009-02-05 Thread Brian Yennie
Hi Craig, Read it as one 'Z' followed by zero or more 'A' followed by one 'B'. Thus the Z and B are required with any number of A in between (including zero). So it would match: ZB ZAB ZAAB ZAAAB And so on. In short, a single letter matches just that - a single letter. The * and +

Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Richmond Mathewson
AND, look at what happens to an image used as an icon when the button name/label lies over it: Label Changer.rev at revOnline under 'Richmond'. A Thorn in the flesh is better than a failed Systems Development Life Cycle.

Re: Printer driver crash on Win

2009-02-05 Thread Scott Morrow
I asked them to make sure they were using the latest drivers. His tech guy came by and I think made sure this computer was running the latest... but, of course, that isn't the same as seeing if the drivers are identical.Mostly I think they didn't want to fool with it anymore (can't

Re: Transparent

2009-02-05 Thread Wilhelm Sanke
Transparent Richmond Mathewson geradamas at yahoo.com wrote: Working from your advice I wrote the following script: on mouseUp put top of group gX into TOPP put bottom of group gX into BUM put left of group gX into LEFTT put right of group gX into RITE put LEFTT , TOPP , RITE

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread J. Landman Gay
Klaus Major wrote: Hi Jaquelin, Wilhelm Sanke wrote: - The name or label of a button can be displayed on the right or the left side of an icon or *beneath* the icon, but not directly *on top* of an icon. Actually, if you jiggle the top and bottom margin settings of the button, you can

Re: Regular expressions

2009-02-05 Thread DunbarX
In a message dated 2/5/09 4:08:48 PM, bri...@qldlearning.com writes: Read it as one 'Z' followed by zero or more 'A' followed by one 'B'.  Thus the Z and B are required with any number of A in between  (including zero). So it would match: ZB ZAB ZAAB ZAAAB And so on. In short,

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Klaus Major
Hi Jacqueline, Klaus Major wrote: Hi Jaquelin, Wilhelm Sanke wrote: - The name or label of a button can be displayed on the right or the left side of an icon or *beneath* the icon, but not directly *on top* of an icon. Actually, if you jiggle the top and bottom margin settings of the

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Mark Swindell
On Feb 5, 2009, at 1:33 PM, Klaus Major wrote: Maybe I'm thinking a bit naive, but why shouldn't it then be possible (for the engine) to combine these two states and the result would be the label on top of the icon :-) Troublemaker. ___

Re: convert to lower ascii 128?

2009-02-05 Thread Chipp Walters
Ben, Thanks for the tests. Illuminating again. You are correct, I was actually running my tests on shorter strings, but hundreds of them in sequence. best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to

Script to change Desktop Image / Wallpaper

2009-02-05 Thread David Bovill
I'm thinking of writing something that would change the Desktop image - the need at the moment is to do it just on Windows XP machines. Just looking into how hard this would be to do - has anyone done this - can't see an entry in the list - is the only thing needed to change the Windows Registry?

Re: convert to lower ascii 128?

2009-02-05 Thread Alex Tweedly
Chipp Walters wrote: Ben, Thanks for the tests. Illuminating again. You are correct, I was actually running my tests on shorter strings, but hundreds of them in sequence. So it might be useful for you to try Ben's fourth (i.e. array-based) method, but do the set-up once using a script-local

Re: Script to change Desktop Image / Wallpaper

2009-02-05 Thread Ken Ray
On 2/5/09 4:25 PM, David Bovill da...@architex.tv wrote: I'm thinking of writing something that would change the Desktop image - the need at the moment is to do it just on Windows XP machines. Just looking into how hard this would be to do - has anyone done this - can't see an entry in the

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Thomas McGrath III
I looked up jiggle in the Revolution Dictionary but could not find any entries??? Is this in the Street Dialect version? Regards, Tom McGrath III Lazy River Software 3mcgr...@comcast.net iTunes Library Suite - libITS Information and download can be found on this page:

Re: Re Rev timeline stack?

2009-02-05 Thread Sarah Reichelt
Has anyone written a timeline stack/group? I have looked at the software about, which looks luscious (especially Bee docs timeline) but it doesn't allow notes etc to be added, or vertical timelines with information attached to left and right 'branches' of an event. I can't find my veteran

Re: Script to change Desktop Image / Wallpaper

2009-02-05 Thread Sarah Reichelt
On Fri, Feb 6, 2009 at 8:25 AM, David Bovill da...@architex.tv wrote: I'm thinking of writing something that would change the Desktop image - the need at the moment is to do it just on Windows XP machines. Just looking into how hard this would be to do - has anyone done this - can't see an

Re: convert to lower ascii 128?

2009-02-05 Thread Chipp Walters
Yup. I could see how that would be faster. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Chipp Walters
Jacque, Please...no more jiggles...this is a family forum and there could be minors around. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Import temperature and switch on/off the heater with Rev

2009-02-05 Thread Judy Perry
No, just kidding. On Wed, Feb 4, 2009 at 7:10 AM, dunb...@aol.com wrote: Judy, you aren't really upset? :-( Craig Newman ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: convert to lower ascii 128?

2009-02-05 Thread Mark Smith
While we're on displacement activities :) One of the things that can slow Rev down in a long for loop is the building up of a long output string (I suspect that an awful lot of copying and moving of memory starts to happen). I made a little test of something suggested by someone on this

ListMagic calculated columns

2009-02-05 Thread Josep
Hello, I use ListMagic and I need to control the modify of some column values to calculate other columns, the typically calculated column. I found this reading the documentation but I can't obtain any result... :( Any idea of what is the better way to do it? on LMListEdited

[REQ] testers - database abstraction library

2009-02-05 Thread Shao Sean
Looking for testers to a database abstraction library. The library wraps around the built-in Revolution database calls and offers a simpler method of accessing databases by removing the need to know SQL. This is a work in progress and other features are to be added in over the course of

chasing the thumb in a scrollbar

2009-02-05 Thread Mark Swindell
Can one refer to the location of just the thumb of a scrollbar relative to its window? I want to chase the thumb with a a graphic... essentially a transparent rectangle whose left would stick to the left of a horizontal scrollbar and whose right would follow the thumb as it moves. I can

Re: chasing the thumb in a scrollbar

2009-02-05 Thread dunbarx
Can't you get the position of the thumb by checking the scroll of the field? If you know how many lines in the field, and you know the scroll of the field, you can calculate the percentage of the height of the field that the thumb is currently indicating. Since you know the top and bot of the

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread J. Landman Gay
Klaus Major wrote: True. But if the engine calculated and provided for a vertically centered name, you'd get the same results. So you'd have to jiggle some more anyway. :) Maybe, but when you habve a button with no icon, that name/labe is exactly in the center of the button. And it stays

Re: chasing the thumb in a scrollbar

2009-02-05 Thread Mark Swindell
Hi Craig, That won't work in this case as it's just a horizontal scrollbar not attached to a field or group. Mark On Feb 5, 2009, at 9:32 PM, dunbarx wrote: Can't you get the position of the thumb by checking the scroll of the field? If you know how many lines in the field, and you know

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread J. Landman Gay
Chipp Walters wrote: Jacque, Please...no more jiggles...this is a family forum and there could be minors around. Minors? You mean like E-flat? Flat notes don't jiggle, they won't even notice. But I hereby replace jiggle with in previousMail. -- Jacqueline Landman Gay |

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread J. Landman Gay
Thomas McGrath III wrote: I looked up jiggle in the Revolution Dictionary but could not find any entries??? Is this in the Street Dialect version? It's a bug. Submit a ticket. I want to see Ollie's face when he reads it. :) -- Jacqueline Landman Gay | jac...@hyperactivesw.com

Re: chasing the thumb in a scrollbar

2009-02-05 Thread dunbarx
mark. So this is a scrollbar control, not a field. Right. I have not played with these yet, but don't I remember that there is a property that indicates the relative position of the thumb with respect to the amount of progress in the control, and isn't this even closer to what is needed

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Scott Rossi
Recently, J. Landman Gay wrote: Maybe I'm thinking a bit naive, but why shouldn't it then be possible (for the engine) to combine these two states and the result would be the label on top of the icon :-) I see what you mean now. Yes, it would be much easier. Most of the image buttons I've

Re: chasing the thumb in a scrollbar

2009-02-05 Thread Mark Swindell
The thumbPosition will give you the position of the thumb relative to the endvalue of the scrollbar itself. So that if the scrollbar's endvalue is set to 100 (default) and it's halfway along, the thumbpos will be 50. If the endvalue is set to 200, it will show 100. But I'm trying to

Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread J. Landman Gay
Scott Rossi wrote: Recently, J. Landman Gay wrote: I suppose it would be possible to write a little script that would calculate the font size, compare it to the button height, and adjust the margins. It's possible, but it's not a little script. :-) I demoed a customizable button object at

Re: chasing the thumb in a scrollbar

2009-02-05 Thread dunbarx
Mark. OK. But if you know all that, and you know the the loc of the scrollbar, why can't you then get the loc of the thumb?  Craig On Feb 6, 2009, at 12:51:49 AM, Mark Swindell mdswind...@cruzio.com wrote: From: Mark Swindell mdswind...@cruzio.com Subject:Re: chasing the thumb in a

Re: chasing the thumb in a scrollbar

2009-02-05 Thread J. Landman Gay
Mark Swindell wrote: The thumbPosition will give you the position of the thumb relative to the endvalue of the scrollbar itself. So that if the scrollbar's endvalue is set to 100 (default) and it's halfway along, the thumbpos will be 50. If the endvalue is set to 200, it will show 100. But

Re: chasing the thumb in a scrollbar

2009-02-05 Thread Phil Davis
Mark Swindell wrote: The thumbPosition will give you the position of the thumb relative to the endvalue of the scrollbar itself. So that if the scrollbar's endvalue is set to 100 (default) and it's halfway along, the thumbpos will be 50. If the endvalue is set to 200, it will show 100. But

Re: chasing the thumb in a scrollbar

2009-02-05 Thread Mark Swindell
I guess it can be ascertained based on that info, yes, but if there were a built in way to describe the thumb location (seems plausible) that would be easier. Because so many things in Rev are there already, and so many other things you don't know about are lurking just beneath the

Re: chasing the thumb in a scrollbar

2009-02-05 Thread Mark Swindell
Thanks Jackie, Phil, and Craig for your suggestions and solutions. Much appreciated. Mark On Feb 5, 2009, at 10:26 PM, J. Landman Gay wrote: Mark Swindell wrote: The thumbPosition will give you the position of the thumb relative to the endvalue of the scrollbar itself. So that if the