Re: Best practice for creating a custom control
Thank you Ken for the link and the example. Yes, it helps me a lot. Jerome Le 1 nov. 2010 à 22:24, Ken Ray a écrit : I'm looking for a kind of best practice for creating custom controls. For example, how to access the data of the custom control ? Do we have to use custom properties or a setProp or getProp handlers or both ? Is it preferable to use a prefix for naming a command ? And for custom properties, do we have to use a set of properties ? With a standard name ? Etc. You might want to take a look at the budding standards document that is in development over at the revInterop user group: http://tech.groups.yahoo.com/group/revInterop/ There's a bunch of info there about naming conventions, etc. As far as accessing the data is concerned, there isn't really a best practice yet; getprop/setprop works well in *some* instances, but not in others, as does actually using custom properties. For example, I tend to use custom properties to store data relative to custom controls I've created, and only use getProp/setProp when I want to trigger some kind of visual feedback. For example, I have a custom control which is a prompt field (it's a field that shows a custom text string in gray; when the field gets the focus, the text goes away so the user can type what they want, and when the field loses the focus if there's no text in the field it shows the prompt again). To specify what text should be shown as the prompt text, I set the uSTSPromptText of the field to a value. If the field is currently showing a text prompt, I'd like to change that to the value I'm setting for uSTSPromptText, so I have a getProp handler that is triggered to make that happen. Hope this helps, Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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 ___ 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: Best practice for creating a custom control
Hi Mark, Thank you for the link and the example. I note that you reach the data of the field through a setProp and a get Prop handler. Best regards, Jerome Le 30 oct. 2010 à 01:28, Mark Schonewille a écrit : Hi Jerome, You might want to have a look at the scripts of the password field, available at http://qurl.tk/jo -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 30 okt 2010, at 01:14, Jérôme Rosat wrote: Hello everybody, I'm looking for a kind of best practice for creating custom controls. For example, how to access the data of the custom control ? Do we have to use custom properties or a setProp or getProp handlers or both ? Is it preferable to use a prefix for naming a command ? And for custom properties, do we have to use a set of properties ? With a standard name ? Etc. Thank you for you help. Jerome ___ 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 ___ 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
Best practice for creating a custom control
Hello everybody, I'm looking for a kind of best practice for creating custom controls. For example, how to access the data of the custom control ? Do we have to use custom properties or a setProp or getProp handlers or both ? Is it preferable to use a prefix for naming a command ? And for custom properties, do we have to use a set of properties ? With a standard name ? Etc. Thank you for you help. Jerome ___ 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: How to create a self-contained custom control
Thank you David for the precision. Jérôme Le 19 mai 2010 à 21:47, David Bovill a écrit : The whole point of a behavior is that it works for multiple objects (in your case a group) and acts a bit like a library for that group - so you can copy and paste the group where you want and all the copies will point to and use the same behavior script. If you want to put the script inside the group and don't mind having multiple copies of the script for each groupd you copy - then you can - basically don;t use a behavior and just put the behavior script in the groups script. There is no way to have both. On 19 May 2010 20:33, Jérôme Rosat jro...@mac.com wrote: Stephen, Thank you for the suggestion. I tried. But it doesn't work as I wish it. Jérôme Le 18 mai 2010 à 23:38, stephen barncard a écrit : Nested Groups? On 18 May 2010 13:36, Jérôme Rosat jro...@mac.com wrote: I created a custom control. I set the behavior of the group (the custom control) to a button script (I want no script in the group). If I copy the custom control in a new stack, i need to copy the button script too, or the stack that contains the button script as a substack of a new stack. How to make a self-contained custom control that I can simply copy and past where I want ? I tried to put the button script inside the group, but it doesn't work. If I copy the custom control in a new card, the behavior of the group still point to the previous card. Any idea ? Thank you for your help. Jérôme Genève___ 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 -- - Stephen Barncard Back home in SF ___ 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 ___ 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 ___ 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 ___ 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: How to create a self-contained custom control
Stephen, Thank you for the suggestion. I tried. But it doesn't work as I wish it. Jérôme Le 18 mai 2010 à 23:38, stephen barncard a écrit : Nested Groups? On 18 May 2010 13:36, Jérôme Rosat jro...@mac.com wrote: I created a custom control. I set the behavior of the group (the custom control) to a button script (I want no script in the group). If I copy the custom control in a new stack, i need to copy the button script too, or the stack that contains the button script as a substack of a new stack. How to make a self-contained custom control that I can simply copy and past where I want ? I tried to put the button script inside the group, but it doesn't work. If I copy the custom control in a new card, the behavior of the group still point to the previous card. Any idea ? Thank you for your help. Jérôme Genève___ 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 -- - Stephen Barncard Back home in SF ___ 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 ___ 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
How to create a self-contained custom control
I created a custom control. I set the behavior of the group (the custom control) to a button script (I want no script in the group). If I copy the custom control in a new stack, i need to copy the button script too, or the stack that contains the button script as a substack of a new stack. How to make a self-contained custom control that I can simply copy and past where I want ? I tried to put the button script inside the group, but it doesn't work. If I copy the custom control in a new card, the behavior of the group still point to the previous card. Any idea ? Thank you for your help. Jérôme Genève___ 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: [ANN] [FR] NativeGeometry 2 OPEN BETA, the ultimate geometry manager for Revolution is here for free!
Bonne et mauvaise nouvelle ! Avez-vous des précisions concernant la création d'applications multilingues avec NativeGeometry 2.0 ? Vous indiquez que NativeSpeak 1.x ne va plus évoluer et vous mentionnez NativeSpeak 2.0 ? Jérôme Genève Le 17 mai 2010 à 18:16, Damien Girard a écrit : NativeSpeak 1.x is discontinued, the application will continue to works and we will continue the support, but the application will not be updated anymore, we recommend to new users that want to create a multi-language application to use NativeGeometry, then the localization process with NativeSpeak 2.0 will be really easy. ___ 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: German French not liked by Valentina DB Rev ?
Christian, Try using: set the unicodeText of [chunk of] field to unicodeString Jérôme Genève Le 13 mai 2010 à 23:24, Christian Langers a écrit : Hi, I'm trying to feed my Valentina Db fields with text. When using English, no problem. But when using German or French, pfff.. The main problem are the Umlauts (ö,ä,ü,...) or french chars (é,è,à...). As I read in the docs, rev fields are storing text in UTF16. Valentina is storing text in UTF16 too. So normally there should be no problems when storing text from REV into Valentina. But when retrieving the saved text from the DB, that gives me scrambled chars instead of the é,à,è,ü, Does anybody have a solution to that ? I'm working on an Intel Mac, REV 4.5 DP3, Valentina 4.6, using SQLYoga... Thanks for any advice, Christian Luxembourg ___ 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 ___ 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: Data Matrix
Hi Malte, Thank you for the link. It is not a data matrix but it helps. Jerome Le 12 mars 2010 à 09:06, Malte Pfaff-Brill a écrit : Hi Jérôme, maybe this one helps: http://revonline2.runrev.com/stack/343/0m3ga-net---QR-Code-Generator-%2B-Library-Stack All the best, Malte ___ 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 ___ 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: Data Matrix
Hi Sarah, Thank you for the script. I did not know the Google's API. I will try to use QR code instead of data matrix in my project. Jerome Le 12 mars 2010 à 10:12, Sarah Reichelt a écrit : On Fri, Mar 12, 2010 at 7:29 AM, Jérôme Rosat jro...@mac.com wrote: I am looking for a library for creating a data matrix in Revolution. I did not find an example with Revolution. I found libdmtx, an open source software for reading and writing Data Matrix 2D barcodes on Linux, Unix, OS X, Windows, and mobile devices. But I found only binary for command line tools for windows and I am not qualified to compile the code to create command line tools Mac OS. Have you already created a data matrix with Revolution ? Is there a volunteer to create an external/library ? If you can rely on a web link, you can use Google's API directly. Here is a script to generate a QR code as an image. on mouseUp put fld Text into tPlain put 300 into tWidthHeight put http://chart.apis.google.com/chart?cht=qrchs=; tWidthHeight x tWidthHeight chl= tPlain into tURL put URL tURL into img QR end mouseUp HTH, Sarah ___ 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 ___ 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
Data Matrix
I am looking for a library for creating a data matrix in Revolution. I did not find an example with Revolution. I found libdmtx, an open source software for reading and writing Data Matrix 2D barcodes on Linux, Unix, OS X, Windows, and mobile devices. But I found only binary for command line tools for windows and I am not qualified to compile the code to create command line tools Mac OS. Have you already created a data matrix with Revolution ? Is there a volunteer to create an external/library ? Thank you in advance for your help. Jerome ___ 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: [FR] Question pour la communauté fra ncophone
Merci pour le lien. Je ne connaissais pas cette liste. Le 15 janv. 2010 à 22:29, Medard a écrit : Jérôme Rosat jro...@mac.com wrote: J'ai l'impression que la communauté francophone de la liste Revolution se compte sur les dix doigts des mains. Dommage. Je comprends mieux maintenant pourquoi RunRev ne tient pas compte d'autres langages. il y a sans doute beaucoup de ROMs (read only members) sur la liste francophone hébergée par Yahoo, il y avait en octobre dernier 107 membres ! http://fr.groups.yahoo.com/group/revolutionfr/ ___ 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 ___ 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
[FR] Question pour la communauté francophon e
Une question pour les utilisateurs francophones de Revolution: Comment traduire le terme handlers qui est mentionné dans Revolution ? Procédures ? Scripts ? Merci d'avance pour vos réponses. Jérôme Rosat ___ 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
[FR] Question pour la communauté francophon e
Une question pour les utilisateurs francophones de Revolution: Comment traduire le terme handlers qui est mentionné dans Revolution ? Procédures ? Scripts ? Merci d'avance pour vos réponses. Jérôme Rosat ___ 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: [FR] Question pour la communauté fran cophone
André, Yves, Jan, Medard, Richmond, René, Jacques, Merci pour vos réponses. Vous avez répondu à ma curiosité. J'ai l'impression que la communauté francophone de la liste Revolution se compte sur les dix doigts des mains. Dommage. Je comprends mieux maintenant pourquoi RunRev ne tient pas compte d'autres langages. Salutations de Genève. Jérôme Le 15 janv. 2010 à 17:45, Andre.Bisseret a écrit : Bonjour, Parmi les suggestions faites jusqu'ici, je pencherais pour routine (il y a aussi sous-routine) voire pour procédure Mais on peut penser aussi à sous-programme Voir la définition donnée par Le jargon français : http://www.linux-france.org/prj/jargonf/H/handler.html bien cordialement de Genoble André Le 15 janv. 10 à 13:40, Jérôme Rosat a écrit : Une question pour les utilisateurs francophones de Revolution: Comment traduire le terme handlers qui est mentionné dans Revolution ? Procédures ? Scripts ? Merci d'avance pour vos réponses. Jérôme Rosat ___ 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 ___ 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 ___ 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: OT: Panorama software
Personally I use Autopano Giga 2. It costs 199 €. But Autopano Pro 2 is great too. It costs 99 €. See http://www.autopano.net Jérôme Le 6 déc. 2009 à 03:34, Sivakatirswami a écrit : I keep dreaming that one day I will get beyond admin and have time to do some creative well it may be soon. What are everyone recommendations as of 2010 for best tools for creating panoramas (including 360 degree horizontal over head ones) on Mac OSX? I see a an open source package which runs on Macs: Hugin -- Free http://hugin.sourceforge.net/download/ Autopano gets great reviews but $$379.00 seems a bit outrageous? Panoweaver only outputs Flash... Lots of windows only options which I can't use. ?? Sivakatirswami ___ 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 ___ 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: [FR][EN] Simple Chat Server on On-Rev ?
Christian, J'ai essayé d'utiliser des connexions socket dans une page .irev avec On-Rev, mais cela ne fonctionne pas. Paradoxalement, la commande ne génère pas d'erreur. J'ai demandé à l'équipe On-Rev s'il existait un exemple de chat, et voici la réponse: Thank you for your request. I have this response from our technical department. In terms of examples, not sure if there's anything out there at the moment, but I could give a quick run through of how to write a simple chat server in iRev. Though server side CGI scripts are not ideally suited to the task it would be possible. If we were to consider a simple situation of a single chat room to which users can connect, post, and read other's messages... We would need a server side database that would store all the messages, when they were posted and who posted them. We could then write a simple iRev script that extracted all the messages from the database that have been posted after a given date. In this case, our client app would periodically call this script, passing the date as a parameter and formatting the returned result for display. Essentially, the client would be asking the server for all the messages that have been posted since we last asked. The client would remember the date-time it asked this question and then and use this the next time it asked. It would simply ask the question by using get URL http://path_to_my_script.com The server script would also take two further parameters that would allow the client to post messages. This would be the user's name and their message. If the server script detected these parameters, the message would be written to the database and subsequently displayed in any future requests. So, if the user typed a message into the client. the client would simply include the message and the user's name as parameters in its next periodic request. Jérôme -- EN Christian, I tried to use “sockets” in a .irev page with On-Rev, but that does not work. Paradoxically, the command does not generate an error. I asked the team On-Rev if there was an example of chat, and and here the answer: (see above) Jerome Le 24 oct. 2009 à 15:10, Christian Langers a écrit : Hello, for my project I wanted to implement the simple chat server-client stacks (or a similar solution using sockets), but I really have no idea how to start. I'm new to sockets... and I want to use my on-rev hosting service... Any help is appreciated :-) Christian Luxembourg ___ 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: How to filter a big list
David, Yes, it is right. But I have noticed that the display of the list in the field takes time. I made tests by displaying the result of the filtering only after having typed the third letter and it is enough fast for not slow down the typing of the user. Jerome Rosat Le 21 oct. 2009 à 20:07, David Glasgow a écrit : How about the filter with only kicks in after the second or third character is typed? The first two characters take a disproportionate amount of time, and probably don't reduce the list size substantially. David Glasgow ___ 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 ___ 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: How to filter a big list
Jim, Le 22 oct. 2009 à 05:41, Jim Ault a écrit : your asking a lot of a chunking function to scan a large body of text between key strokes. Start with the following steps to see if these help. -1- Showing a list of more than 50 hits may not be useful Good idea. -2- Doing an filter operation with less than 3 chars may not be useful Filter a list with less than 3 chars reduce the list. -3- Showing the number of lines (hits) at the top of the field is useful Good idea. -4- Most likely you will need to pre-index the 400K lines to get more speed Indexing is what data bases do to boost speed. You need to decide what the logic is, such as any char in any string, or words beginning with the user input, etc. I should think to this solution. Is the 400K set of lines dynamic or static? Static for my tests. Dynamic from 0 to about 400k lines in production. Does the user type logical words, or phrases? Both. eg. santos -- single word eg. Gourgas -- single word eg. dos santos -- phrase in order eg. rue Gourgas --phrase in order If link tables are required, then you should consider a database, since this is something they do well. Hope this helps. Yes, thank you. If some body in the list is looking for a file with names and address (400K lines), I create a file with french name, French, Spanish, Italians, Portuguese first name and address of Geneva in Switzerland. It is possible to download here: http://files.me.com/jrosat/tac1b4 In the state of my tests, here the my fastest code: on keyUp set the itemdelimiter to tab Switch the number of chars of me Case 1 put empty into vListe repeat for each line theLine in vNoms if item 2 of theLine contains me then put theLine cr after vListe end repeat break Case 2 put vListe into maListe put empty into vListe repeat for each line theLine in maListe if item 2 of theLine contains me then put theLine cr after vListe end repeat break Default put vListe into maListe put empty into vListe repeat for each line theLine in maListe if item 2 of theLine contains me then put theLinecr after vListe end repeat delete the last char of vListe put Number of lines = (the number of lines of vListe) into theOutput if the number of lines in vListe 60 then put theOutput cr line 1 to 60 of vListe cr ... into field fListe else put theOutput cr vListe into field fListe end if end Switch end keyUp Jerome Rosat___ 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: How to filter a big list
Alex, Thank you for your message. I'm not very at ease with messages and the command send but I will test your code. I think it is the good way to not slow down the typing of the user. Jerome Rosat Le 23 oct. 2009 à 00:33, Alex Tweedly a écrit : Would it be practical to break your list into 26 sublists by first letter? That's a pragmatic approach - but I think it's the wrong one. The fundamental problem is that the idea of scanning an entire list at keystroke speed is not robust. Even if splitting into multiple lists works for now, there's no guarantee that it will work tomorrow - when the database doubles in size, or the data becomes skewed because it contains too many people with the same first letter, or or the users demand a similar feature for address as well as surname, or they want to match string anywhere within the name, or What you ought to do (imnsho) is to change the algorithm to one which is inherently responsive, using either 'send' or 'wait-with- messages' to ensure that this matching process does not interfere with responsiveness. In this case, I think it's easier to use wait- with-messages. So in outline each time the match data changes, you restart the matching process the matching process checks a fixed, and relatively small, number of possible matches updates the field showing the user what matches have been found and then allows other things to happen before continuing with the matching. I'd have a single handler that is always called when any changes happens to the user input, which can kick off a new matching process (by sending to the match handler). Then within the handler, I'd periodically check whether there is a pending message to restart a new handler. So a brief version of the whole script would be local sShow, sStart, sData, sFound,sMatch global gData on keyUp matchStringHasChanged pass keyUp end keyUp on matchStringHasChanged send processamatch to me in 0 millisecs end matchStringHasChanged on processamatch local tCount put gData into sData put the text of field Field into sMatch put empty into field Show put empty into sShow repeat for each line L in sData add 1 to tCount if L begins with sMatch then put L CR after sShow end if if tCount mod 100 = 0 then put sShow . CR into field Show wait 0 millisecs with messages if the pendingmessages contains ,processamatch, then put exiting CR after field StatusLog exit processamatch end if end if end repeat put sShow into field Show put Completed the number of lines in sShow CR after field StatusLog end processamatch Note the use of .. to give an indication that work is still in progress and there may be more matches to come. You could easily add refinements to this 1a. if a matching process has completed (rather than exited), and if previous match string was a substring of the new matchstring, then instead of starting with put gData into sData you could instead do put sShow into sData (i.e. re-use the filtered list - but be sure to remember that if you exit before completing, or if the matchstring changes in any other way you need to restart with the whole of gData) 1b. If you do 1a, then if you are *nearly* complete with a match when the matchstring changes, then just go ahead and complete it, so you get to work on the subset. (good luck deciding what *nearly* means :-) btw - I don't think there is any magic 'split'-based method possible here. -- Alex. ___ 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 ___ 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: How to filter a big list
Mark, My text file is a raw file. When I open a stack, I create a simpler tab list. Your code is much better for the 1 to 3 chars. But, if the name you search is at the end of the list (for example rosat) it takes more time than my code. Jerome Rosat Le 23 oct. 2009 à 19:13, Mark Wieder a écrit : Jérôme- Friday, October 23, 2009, 8:51:18 AM, you wrote: If some body in the list is looking for a file with names and address (400K lines), I create a file with french name, French, Spanish, Italians, Portuguese first name and address of Geneva in Switzerland. It is possible to download here: http://files.me.com/jrosat/tac1b4 In the state of my tests, here the my “fastest” code: Since you seem to want to limit the display to 60 lines, here's a much faster version. This takes roughly 90 milliseconds to do an entire list, irrespective of the number of chars. Note as well that your text file is actually delimited by commas rather than tabs. -- time of the filtered list on keyUp local vListe local tTime put the milliseconds into tTime put test1(vNoms) into vListe put the milliseconds - tTime into field fElapsedTime put vListe into field fListe end keyUp function test1 pNoms local vListe local x set the itemdelimiter to comma put empty into vListe put 1 into x repeat for each line theLine in pNoms if item 2 of theLine contains me then put theLine cr after vListe add 1 to x if x 60 then put ... cr after vListe exit repeat end if end if end repeat return vListe end test1 -- -Mark Wieder mwie...@ahsoftware.net ___ 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 ___ 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: How to filter a big list
Thank you Jim, Richard, Brian and Mark, Please excuse me to answer so tardily, I posted a message yesterday, but it was not published in the list. I make a new attempt. 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 various tests using the repeat for each loop and the filter ... with command. Filtering takes the most time when I type the first and the second letter. That takes approximately 800 milliseconds for the first char and about 570 milliseconds for the second char. The repeat loop with the contains operator is a little beat slower (about 50 milliseconds) than the filter ... with. There is no significant difference when the third char or more is typed. Of course I filter a variable before to put it in the list field. Obviously, 800 milliseconds to filter a list of 400'000 lines, it is fast. But it is too slow for what I want to do. It would take a time of filtering lower than 300 milliseconds so that the user is not slowed down in his typing. Sorry to have been insufficiently precise in my first message. I continue my tests and I will publish the fastest code. Jerome Rosat Le 20 oct. 2009 à 03:41, Jim Ault a écrit : First, what do you mean by 'slow' ?'slower' ? There are many items to consider in the optimization of filtering. -1- do you create the 300,000 lines yourself or inherit them -2- are the lines long strings or short (how many chartacters) -3- are the lines structured or more like descriptions or phrases -4- is the part to be filtered at the beginning or the end of each line -5- there are numerous other considerations depending on the exact task at hand Your request is far to vague to give definitive answers. As Mark Wieder said, please post some example lines of the data and the code you are trying. There are many innovative ways to use the Rev chunking functions that make sure you get speed without sacrificing accuracy ( false hits, false misses ) Looking forward to more details. It is fun to consider the variations possibilities :-) Jim Ault Las Vegas ___ 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
How to filter a big list
I wish to filter a list which contains approximately 300'000 lines. I try the filter ... with command. It's slow. I try the Repeat for each loop but it's slower. Is it possible to use the filter ... with command and to force RunRev to check only one item of the line and not the whole line with the filterPattern ? Thanks. Jerome ___ 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: How to filter a big list
Thank you Sarah, Chris and Andre, I use already a variable and my filter pattern is *[' -] myString *. I'm going to try with a SQLite database. Le 19 oct. 2009 à 23:49, Sarah Reichelt a écrit : On Tue, Oct 20, 2009 at 6:49 AM, Jérôme Rosat jro...@mac.com wrote: I wish to filter a list which contains approximately 300'000 lines. I try the filter ... with command. It's slow. I try the Repeat for each loop but it's slower. Is it possible to use the filter ... with command and to force RunRev to check only one item of the line and not the whole line with the filterPattern ? What filter pattern are you using? I have found filter to be very fast even with large lists, provided the filter pattern is simple. e.g. filter with *blue* is fast but filter with * tab * tab *blue* will be slow. If this is the sort of thing you are trying, then I suggest a preliminary fast filter to get the overall length down, then maybe changing to a repeat for each loop to refine the filter. And as Chris said, make sure you are always operating on a variable, not the contents of a field. Cheers, Sarah ___ 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 ___ 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: [teaser] Mac OS X external
Le 21 sept. 2009 à 01:36, Sarah Reichelt a écrit : This is the price we pay for using a cross-platform tool. I can’t share your point of view on this. I can't see the reason which prevents from creating a button which respects the Apple Human Interface Guidelines for example. However you can set the font and with the new graphic effects, you can make gradient buttons. Of course I can, and I do it, but I prefer to spend time to develop, not to improve the elements of the interface. Tool bars are easy enough to make yourself, although allowing the standard customization would be a neat trick which I have never bothered with. (I never have enough options to need it.) Then you start running into the same issues that Rev has i.e. if you make your app look too much like a standard Mac app, then it won't look like a Windows app for Windows users, without a lot of effort on your part. I think this is what profiles are good for, but I never really got into using profiles. Sorry, but personally, I prefer to make a standard Mac app that it won't look like a Windows app for Windows users than the opposite ;-) Jérôme Cheers, Sarah ___ 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 ___ 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: Vote to disable image copying from password protected stacks
Le 7 sept. 2009 à 02:23, capellan a écrit : Visit report 8251 to vote for disable image copy from password protected stacks. http://quality.runrev.com/qacenter/show_bug.cgi?id=8251 To copy an image from a password protected stack, users just had to select the image and write in the message box: set the clipboarddata to the text of the selobj Then, to paste the image in a new stack, users create a new empty image object and type in the message box: set the text of the selobj to the clipboarddata Using this method, i was able to copy gif animations from a password protected stack. Even if you protect a gif animations, you can copy it with a screen capture when you use the stack. Jérôme -- View this message in context: http://www.nabble.com/Vote-to-disable-image-copying-from-password-protected-stacks-tp25323494p25323494.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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 ___ 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: How to use socket commands and function in a .irev script
Sarah, Thank you for your confirmation. I tried myself and I found the same results. I believed it was me and my script. But I remain interrogative. Which solution is implemented by developer to transfer a significant amount of data (approximately 100 ' 000 records) between the client app and a server app on on-rev? Jérôme Le 20 sept. 2009 à 02:16, Sarah Reichelt a écrit : On Sun, Sep 20, 2009 at 9:20 AM, Jérôme Rosat jro...@mac.com wrote: Hi all, Is it possible to use socket commands and functions in a .irev script on a on-rev serveur ? I just tested it and you can see the script the result at http://www.troz.net/onrev/samples/various.irev. Trying to open a socket doesn't give an error but it doesn't seem to do anything. Trying with a callback doesn't trigger the callback either, it's like the open socket command just disappears. The docs list open socket as being available for desktop, server web, but the functionality isn't there. Maybe this is temporary. Cheers, Sarah ___ 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 ___ 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: How to use socket commands and function in a .irev script
Le 20 sept. 2009 à 15:31, Jim Bufalini a écrit : Jérôme Rosat wrote: Which solution is implemented by developer to transfer a significant amount of data (approximately 100 ' 000 records) between the client app and a server app on on-rev? Start from the client side. Use can use *post* (look this up in the Dictionary and also the See Also for post). I started by using the command “post” but I encountered problems to recover the entirety of the data. So I look in the See Also paragraph to find a other way to solve my problem and I imagined “to push” the data, it's for that I try to use socket commands and functions. With this you could upload data to an irev script on the server or request the irev script to download data to the desktop app. Also, look up all the libURL... commands for transferring data to and from a server and the *load* command and it's callback for monitoring progress. I'm going to do that. Thanks a lot. Aloha from Hawaii, Jim Bufalini ___ 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 ___ 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: [teaser] Mac OS X external
Great, It is the right track. There are still others improvement to bring so that Rev applications look and feel more like Mac OS X applications. For example, tool bars, gradient buttons, button and field with the default Mac OS X font, size and position, etc. In a word, this would be great if Rev applications respected the Apple Human Interface Guidelines. Le 20 sept. 2009 à 17:43, Shao Sean a écrit : Working on an external for helping Mac applications in Rev look and feel more like Mac OS X applications. Current features include: setWindowModified - toggles the dirty document flag on and off isWindowModified() - returns the state of the dirty document flag (boolean) setWindowProxy - adds a proxy icon to the title bar of the window Screen capture of a modified title bar: http://revdevelop.com/images/ssMacWindows.png -- Shao Sean http://www.RevDevelop.com/ ___ 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 ___ 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: [teaser] Mac OS X external
Le 20 sept. 2009 à 18:57, Shao Sean a écrit : For example, tool bars, gradient buttons, am looking into this, but my skillz are not mad (even though i am ;-) Don't be so modest :-) button and field with the default Mac OS X font, size and position Set your stack to have the font Lucinda Grande, size 13.. Set your buttons to have a height of 22 pixels.. There are probably other tweaks to be made but that is a start in the right direction.. This is what I do but after that you must take account of the platform in your code to change font, size, etc. and for an application (Revolution) which wants to be easy and cross platform, that beats me ! :-) ___ 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 ___ 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: How to use socket commands and function in a .irev script
Le 20 sept. 2009 à 15:55, Jim Ault a écrit : Programs and scripts running on a web server are running under Apache, which has environment variables set when it loads. I don't know of a way that a process running in Apache can open and close sockets between processes. Opening and using sockets to the network is done all the time. Jim Bufalini correctly mentions the POST command as a way of using port 80, a default for Apache. I think you would have to modify the httpd.conf file and tell Apache to listen on those ports. One catch to this is that any program or script that is opened in Apache would be working with that port. I am not certain that it is possible to modify this file in an one-rev account. One serious difficulty with this is that Apache will launch a script, run it, then clear that memory. The next request starts a new instance of the script. This is how multiple users can access the same 'web page' and see it as their own session. The process in Apache dies after the page is sent to the browser, thus there is no running program in Apache to receive the packets sent. I believed naively that a script .irev behaved like a stack and persist in memory. I conclude that a .irev with an on-rev web account does nothing more than a ordinary hosting account with Revolution CGIs. Basically, everything on a web server is accessed by telling Apache what you want and how you want it. I would like to learn more about On-Rev surprising features and limitations so feel free to jump in if my comments are not telling the whole story. Jim Ault Las Vegas ___ 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 ___ 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: How to use socket commands and function in a .irev script
Le 20 sept. 2009 à 17:21, Richard Gaskin a écrit : I started by using the command “post” but I encountered problems to recover the entirety of the data. Did you use a FileUpload object for that? No. I'm going to try. Most web hosts provide dropbox CGIs, and at their heart they're just a FileUpload object in a form using POST. Given how commonly such dropbox CGIs work well, I would guess that any limitations a server might put on POST for some form elements are allowed for the FileUpload object. http://www.w3schools.com/HTMLDOM/dom_obj_fileupload.asp Thanks for the link. -- Richard Gaskin Fourth World Revolution training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com ___ 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 ___ 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
How to use socket commands and function in a .irev script
Hi all, Is it possible to use socket commands and functions in a .irev script on a on-rev serveur ? Thanks. Jérôme___ 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
How to create a n-tier app with Revolution
In my company, IT guys believe only in n-tier apps developed in Java with a web interface. And often, I am not satisfied with the result. I would like to create a proof of concept (POC) to demonstrate that it is possible to create a n-tier app with Revolution. I read on the Revolution web site that it is possible to do that but I didn't find an example or documentation which explains simply the concept and the manner of implementing it. Links or information would be appreciated. Thank you. Jérôme___ 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: How to create a n-tier app with Revolution
Jim, Wouaw ! (a French expression which expresses my admiration) Thank you very much for these explanations. To be honest, I imagined a simpler concepte for my POC ;-) This particular customer design requires that all the Rev apps be running constantly 24/7, so cgi is not a good option. Why cgi is not a good option ? In your case or generally in a n-tier structure developed with Revolution ? I use PHP in apache to receive a query from outside, then a UDP socket to send a packet to the revAgent.app on that same computer. If I understand the structure well, the Mac mini, on which runs the Apache server, distributes work to the other Mac min ? In a few weeks I should have some working examples that I will make available as public examples, especially for members of this list. I will convert it to an all-Rev demo and notify you in the next week or two when it is ready. Thank you again, it will be very instructive. Jérôme ___ 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: How to create a n-tier app with Revolution
Bonjour Pierre, Thank you for the link. Indeed it is fast. I read your tutorial about Serveur d'application TCP/IP. It's perfect for a POC. But the download link is broken. Is it possible to have a other link to download it ? Le 16 sept. 2009 à 23:47, Pierre Sahores a écrit : Hi Jérôme, Perhaps would you be interested in having an eye to this, as a work in progress on-rev project and proof of concept : http://www.wrds.com/ It's mainly build on top of a 200 ko irev server-side lib + a MySQL 5 backend + some tousands of XML datasource files. At this time, it runs a Java applet too, witch will be replaced with a revlet as soon as this one will become available as a GM version. The best of all is the speed and stability of the revserver engine. Don't hesite to ask for more details offlist. Best Regards, Le 16 sept. 09 à 21:43, Jérôme Rosat a écrit : In my company, IT guys believe only in n-tier apps developed in Java with a web interface. And often, I am not satisfied with the result. I would like to create a proof of concept (POC) to demonstrate that it is possible to create a n-tier app with Revolution. I read on the Revolution web site that it is possible to do that but I didn't find an example or documentation which explains simply the concept and the manner of implementing it. Links or information would be appreciated. Thank you. Jérôme___ 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 -- Pierre Sahores mobile : (33) 6 03 95 77 70 www.wrds.com www.sahores-conseil.com ___ 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 ___ 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: Printing a series of numbers
Mark, We print firstly the labels in advance. After, we stick manually a label on each mail. Then, the number and some mail informations are stored in a database. Le 11 sept. 2009 à 20:00, Mark Wieder a écrit : I'm afraid I still don't understand. Are you not storing the number and mail information in a database? Are you simply printing a number onto a label? Why not just print up labels ahead of time and use them? -- -Mark Wieder mwie...@ahsoftware.net ___ 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 ___ 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: Printing a series of numbers
Thanks Brian, That can be a solution. Le 11 sept. 2009 à 23:33, Brian Yennie a écrit : Jerome, Would it work to make each page a separate print job? Then you keep sending print jobs until one fails. The next day you just cancel the last failed job. Something like: Print 5 Print 6 Print 7 FAIL Next day... Print 8 That way you are not worrying about detecting out of paper in the middle of a multipage job. You just wait until a 1 page job fails. ___ 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: Printing a series of numbers
Thanks Sparkout, The two solutions which you propose are relevant. I'm going to make a proof of concept with the first solution and explore the second one. Thank you very much for the link about WMI. I did not know WMI. Jérôme Le 12 sept. 2009 à 23:49, SparkOut a écrit : Jérôme Rosat wrote: Thanks Craig and JB. My problem is not to reload the tray but to stop printing the number (and stop increasing numbers) when the tray is empty. I was probably not clear. Sorry for that but english is not my native tongue. In my company we receive approximately 300' 000 mails during a year. Currently we number each mail with a label preprinted with a number. And we stick the labels to the hand. So, what I want it is to put all mails received during the day in the tray of the printer and print a number on each mail and when the tray is empty, I need to store the last number in my stack and use this number the following day to start again to number mails. Jérôme Ah, I think I get it. You want to print a variable number of serial numbers on the documents received, which you have placed in the paper tray of your printer. The first serial number should be yesterday's last serial number plus 1. So yesterday's range might have been from 19273 to 19411 and today should start at 19412 and go through until the documents are out (say there were 100, then tomorrow's first document will be numbered 19512). Easy (ish) way: 1) Stack your documents in the paper tray and print 1000 serial numbers onto them starting from (say, as above) 19412. 2) In the morning, look at the output from the printer and determine that the print run ran out at 19511. 3) Cancel the outstanding print queue 4) Set rev to store 19512 as the new start serial number of the print run. 5) Collect up today's documents and put them in the print tray. 6) Print 1000 serial numbers onto the documents, starting at the figure recorded in step 4. 7) Go home 8) In the morning look at the output from the printer and determine that the print run ran out at 19643. 9) Cancel the outstanding print queue. 10) Set rev to store 19644 as the new start serial number of the print run. 11) onwards, repeating the appropriate steps as necessary. More technical way - possibly/probably printer/platform dependent: Find out what SNMP/html/scripting methods there are for interrogating the print queues. Some printers have an interface for reporting status, and some OS scripting can be employed. I can't give you any pointers about SNMP at all. It may be worth checking if you could get any information from the given printer by checking in a web browser. If you can, then you could probably use rev to get the url of the printer status page, and parse the data returned to extract information about the paper situation. If you did this in a repeat loop before sending your next serial number print job you could get rev to tell whether it is safe to print the next number or wait for your return to stack the new lot of documents in the paper tray. If the last print job was reported OK and the printer status says paper is not out, then add 1 to the serial number and print, else exit the repeat loop. If on Windows, you could use WMI scripting by getting rev to do a vbscript with WMI interrogation of the printer status to verify that the last print job did not fail and the status is ready and similarly you could put that script in the loop and depending on result returned from the WMI interrogation, either advance the count and print again or exit the loop and wait for you to start again with new documents the next day. If on Mac, I imagine there may be something vaguely similar in Applescript, or Linux maybe some shell scripting, but I have no idea. On Windows, there is some vbscript which you can look at, which shows some WMI interrogation on printing (as well as lots of other stuff) here: http://www.microsoft.com/technet/scriptcenter/guide/sas_prn_overview.mspx?mfr=true I don't know if any of that is useful, but hope it helps. S/O -- View this message in context: http://www.nabble.com/Printing-a-series-of-numbers-tp25351555p25418521.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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 ___ 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: Printing a series of numbers
If I put 250 documents for example in the tray and print 200 numbers, there remain 50 documents. And I need to print a number on these 50 documents, I can't wait a other day to put more sheets in the tray and print 200 numbers again. I'm going to try to use the read from file COM1: and see if there is a specific message when the paper tray is empty. Le 10 sept. 2009 à 21:39, dunb...@aol.com a écrit : Tough one. He needs: repeat until the paperTray is empty As a workaround, let's say you knew that the maximum number of sheets that your printer could hold is 250. Why not print in batches of 200, say, with Rev stopping at that number. In this way you would not use an empty tray as the batch indicator, but rather the fact that you had reached 200 sheets, where Rev would tell you that you needed to move to the next batch. You refill the paper tray, and continue forever. Craig Newman In a message dated 9/10/09 3:24:23 PM, jro...@mac.com writes: I thought of that. But the series start to 1 the first day of the year and finish the last day of the year. I cannot know in advance the number of documents to be printed. And I don't want to count manually pages before to put them in the printer. So, I need to know when the printer stop to print when there is no more page in the paper tray. ___ 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 ___ 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: Printing a series of numbers
Thanks Craig and JB. My problem is not to reload the tray but to stop printing the number (and stop increasing numbers) when the tray is empty. I was probably not clear. Sorry for that but english is not my native tongue. In my company we receive approximately 300' 000 mails during a year. Currently we number each mail with a label preprinted with a number. And we stick the labels to the hand. So, what I want it is to put all mails received during the day in the tray of the printer and print a number on each mail and when the tray is empty, I need to store the last number in my stack and use this number the following day to start again to number mails. Jérôme Le 11 sept. 2009 à 15:27, dunb...@aol.com a écrit : I do not understand. If the fact that the tray is empty can tell you to load new paper, then why can't the fact that you just printed 200 sheets tell you to load new paper? The unused sheets are invisible. They are there only to allow Rev to manage the process, not the printer. They are a buffer. In other words, you want a certain event, the fact that the tray is empty, to signal you to reload. I suggest that a different event, the fact that you just printed 200 sheets, can signal you to reload just as well. That there will always be unused sheets below the continuous batches of 200 working sheets is irrelevant, and it does not matter how many unused sheets sit there. Imagine you had a paper tray that could hold 1,000,000 sheets. You hit a button in your application that prints 200, and you have to hit that button over and over to start each new batch of 200. It does not matter that you never empty the tray. But you get as many sheets as you need, all numbered correctly. And you don't have to count the paper, you just have to make sure that you reload the tray fully. Craig Newman In a message dated 9/11/09 2:57:05 AM, jro...@mac.com writes: If I put 250 documents for example in the tray and print 200 numbers, there remain 50 documents. And I need to print a number on these 50 documents, I can't wait a other day to put more sheets in the tray and print 200 numbers again. ___ 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 ___ 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: Printing a series of numbers
Thanks Jacqueline for your answer. I thought of that. But the series start to 1 the first day of the year and finish the last day of the year. I cannot know in advance the number of documents to be printed. And I don't want to count manually pages before to put them in the printer. So, I need to know when the printer stop to print when there is no more page in the paper tray. Le 10 sept. 2009 à 11:35, J. Landman Gay a écrit : Jérôme Rosat wrote: I need to print a series of numbers on a network printer, one number on each page, until there is no more page in the paper tray of the printer. Then, I must be able to reload pages and the printing begins again with the last number printed + 1. Is it possible to do that with Revolution ? I think I need to communicated with the printer and listen to know if the paper tray is empty. I think it is simpler than that. The printer will cache the print job and if the paper runs out, it will wait until you reload the paper tray and continue printing where it left off. So I think all you need to do is create a print layout and a repeat loop that prints a number and a page break, and then send the whole job to the printer at once. For example, if you need 1000 numbers: repeat with x = 1 to 1000 put x into fld numberFld of card printLayout print cd printLayout print break end repeat I think that should work. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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 ___ 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
Printing a series of numbers
I need to print a series of numbers on a network printer, one number on each page, until there is no more page in the paper tray of the printer. Then, I must be able to reload pages and the printing begins again with the last number printed + 1. Is it possible to do that with Revolution ? I think I need to communicated with the printer and listen to know if the paper tray is empty. Thanks Jérôme Rosat___ 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
How to store a stack in a custom property
Hello Everyone, It's possible to create a new stack from a stack stored in a custom property like this: go stack the uMyStoredStack of stack mainStack in a new window Is it possible to store a stack in a custom property without creating first a file ? The following way doesn't work: set the uMyStoredStack of stack mainStack to stack Test Thank you for your help. Jérôme Rosat ___ 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: How to store a stack in a custom property
Thank you Mark, I hoped that there was a way to do it without having to save the stack. Jérôme Le 26 avr. 09 à 14:30, Mark Schonewille a écrit : You have to save the stack firs ___ 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: How to store a stack in a custom property
Dear Mark, It's exactly the function I was looking for. Thank you. Jérôme Le 26 avr. 09 à 16:28, Mark Smith a écrit : the tempname (see docs) can be useful in these situations: ___ 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: Sad News...
Bonjour, Voici un message du fils d'Eric: Here a message of the son of Eric: Dear Eric collegues and friends, As many of you asked me, you will find here below the information: The ceremony will take place at the Church St Jacques du Haut-Pas. 252 rue St Jacques 75005 Paris France Tomorow on Tuesday January 20th at 10 am. Thank you for your previous answers. Emmanuel Chatonet-Camus Le 18 janv. 09 à 10:31, Frédéric RINALDI a écrit : Just to let the whole Revolution community know, that one of our active and well known member, Eric Chatonnet, just died from a CVA last week. Eric was a long time known buddy, I sadly just got the news yesterday from his son. We surely will miss him and his wise development advices. Frederic ___ 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 ___ 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
La communauté Revolution est en deuil
Bonjour, Je viens d'apprendre que Éric Chatonet est décédé mercredi. Toutes mes pensées vont à son fils et sa famille. Jérôme ___ 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: La communauté Revolution est en deuil
Bonsoir, Neal, Yves, Eric. Malte, Mark, Matthias, René, Richmond, Devin, Viktoras, Jacques, j'ai transmis vos messages de condoléances au fils d'Eric. Neal, Yves, Eric. Malte, Mark, Matthias, René, Richmond, Devin, Viktoras, Jacques, I transmitted your messages of sympathy to the son of Eric. Jérôme Le 17 janv. 09 à 21:19, Jérôme Rosat a écrit : Bonjour, Je viens d'apprendre que Éric Chatonet est décédé mercredi. Toutes mes pensées vont à son fils et sa famille. Jérôme ___ 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 ___ 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: [EN] Answer folder
Thank you Mark for your answer. It would be great if Revolution copy these folders automatically ! Best regads, Jérôme On Monday, August 28, 2006, at 00:37AM, Mark Schonewille [EMAIL PROTECTED] wrote: Hello Jérôme, In the application package of your Revolution application, following the path /Revolution/Contents/Resources you will find folders named French.lproj and German.lproj etc. Copy these folders over to the same location in your standalone application package and it should all work fine. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Convert HyperCard stacks with DIFfersifier. Download it at http:// differsifier.economy-x-talk.com Op 27-aug-2006, om 23:48 heeft Jérôme Rosat het volgende geschreven: Hello, I use Revolution Studio 2.7.3 on a MacBook and with MacOS 10.4.7 in French. I use in the script of a button the function Answer folder. In the environment of development, the buttons of the window are in French. In the standalone application, buttons are in English. How to make them in French? Is it a bug? Thank you for your help. ___ 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 ___ 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
[FR] [EN] Answer folder
Bonjour, J'utilise Revolution Studio 2.7.3 sur un MacBook et avec MacOS 10.4.7 en français. J'utilise dans le script d'un bouton la fonction Answer folder. Dans l'environnement de développement, les boutons de la fenêtre de dialogue sont en français (Nouveau dossier, Annuler,Choisir). Dans l'application, les boutons sont en anglais. Comment faire pour qu'ils soient en français ? S'agit-il d'un bug ? Merci pour votre aide. --- Hello, I use Revolution Studio 2.7.3 on a MacBook and with MacOS 10.4.7 in French. I use in the script of a button the function Answer folder. In the environment of development, the buttons of the window are in French. In the standalone application, buttons are in English. How to make them in French? Is it a bug? Thank you for your help. ___ 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: Problem with revNumberOfRecords
Mark, I gave 5 votes to the bug 1528. revCurrentRecordIsFirst and revCurrentRecordIsLast are not working with MySQL too. Jérôme Rosat Le 14 févr. 05, à 04:19, Mark Wieder a écrit : Jan- Sunday, February 13, 2005, 1:54:00 PM, you wrote: JS This particular problem has been around forever, and JS is appearently a conflict between Access and the revdb JS ODBC driver. Right. For a list of some of the other things that make runrev useless with Access, consider casting some votes to bug #1528. I've had *several* Access projects now that I would have loved to do in runrev, but that forward-only odbc mode is a killer. http://support.runrev.com/bugdatabase/show_bug.cgi?id=1528 -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Jérôme Rosat 13, chemin des Palettes 1212 Grand-Lancy 022 880 20 70 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Problem with revNumberOfRecords
Dear all, I use a stack with a MySQL database. To move through the records in a record set I use this script: revMoveToFirstRecord thisCursor repeat for revNumberOfRecords(thisCursor) times -- bla bla revMoveToNextRecord thisCursor end repeat When I use the same stack with a Access 97 database and a ODBC connection and the same number of records, the revNumberOfRecords function return -1. How to resolve this problem ? Jérôme Rosat ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problem with revNumberOfRecords
Dear Jan Thank you for your answer, but the solution doesn't work. I send this message I few month ago to say that the 'revCurrentRecordIsLast' and 'revCurrentRecordIsFirst' in Dreamcard (and probably in Revolution) doesn't work (see the following message): Any other solution ? Best regards Jérôme Bonjour Jan, Yes I use MySQL. After creating a recordset, I execute: 'revMoveToFirstRecord' (go to the first record). Results: 'revNumberOfRecords' : 3 'revCurrentRecord': 0 'revCurrentRecordIsLast' : false 'revCurrentRecordIsFirst' : false ??? Then I execute 'revMoveToNextRecord' (go to the second record). Results: 'result() : true 'revNumberOfRecords' : 3 'revCurrentRecord': 1 'revCurrentRecordIsLast' : false 'revCurrentRecordIsFirst' : false Then I execute 'revMoveToNextRecord' (go to the third and last record). Results: 'result() : true 'revNumberOfRecords' : 3 'revCurrentRecord': 2 'revCurrentRecordIsLast' : false ?? 'revCurrentRecordIsFirst' : false Then I execute 'revMoveToNextRecord' (just to see). Results: 'result() : false 'revNumberOfRecords' : 3 'revCurrentRecord': 2 'revCurrentRecordIsLast' : true 'revCurrentRecordIsFirst' : false I hope it is clear. Jérôme Rosat Le 6 nov. 04, à 06:25, Jan Schenkel a écrit : --- Jérôme Rosat [EMAIL PROTECTED] wrote: Bonjour tout le monde, In Dreamcard documentation, for the revCurrentRecordIsLast function, it's written that Returns whether the current record is the last record in a record set (database cursor). In my recordset with 3 records, when the cursor is on the first record, revCurrentRecordIsLast return false. It's Ok for me. After moving the cursor with revMoveToNextRecord to the second record, revCurrentRecordIsLast return false. It's still OK for me. If I move the cursor to the third and last record, revCurrentRecordIsLast still return false. With the upper definition, the result should be true. The third record is the last one. But revCurrentRecordIsLast return true only if I use revMoveToNextRecord once again. In short, revCurrentRecordIsLast return true when revMoveToNextRecord return an error. And it is the same for revCurrentRecordIsFirst. Is it a bug or I'm stupid ? Jérôme Rosat Bonjour Jérôme, What does the function 'revNumberOfRecords' return for that result set ? And is this still on MySQL ? Jan Schenkel. = Join us at the European Revolution Conference November 14-16, MALTA. ~ http://TechieTours.com/Rev/ = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Le 13 févr. 05, à 22:54, Jan Schenkel a écrit : --- Jérôme Rosat [EMAIL PROTECTED] wrote: Dear all, I use a stack with a MySQL database. To move through the records in a record set I use this script: revMoveToFirstRecord thisCursor repeat for revNumberOfRecords(thisCursor) times -- bla bla revMoveToNextRecord thisCursor end repeat When I use the same stack with a Access 97 database and a ODBC connection and the same number of records, the revNumberOfRecords function return -1. How to resolve this problem ? Jérôme Rosat Hi Jérôme, This particular problem has been around forever, and is appearently a conflict between Access and the revdb ODBC driver. Your best solution is to use the 'revdb_iseof()' or 'revCurrentRecordIsLast()' functions to determine the end of your loop : -- revMoveToFirstRecord thisCursor repeat forever -- bla bla if revCurrentRecordIsLast() then exit repeat else revMoveNextRecord thisCursor end repeat -- Hope this helped, Jan Schenkel. = Quartam - Tools for Revolution http://www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Jérôme Rosat 13, chemin des Palettes 1212 Grand-Lancy 022 880 20 70 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
How to add a value to an Item of a menu option button
Bonjour à tous, In my database, I've got a table with two fields and many records: Value Name 12 Name1 16 Name2 25 Name3 etc. On a card I created a menu option button with items come from the field Name of my database: Menu Items: Name1 Name2 Name3 etc. But when I select an option, I need to now the value of the item selected, not the item itself. For example, if I select Name2, I need to know the value 16. How to add a value to an Item of a menu option button ? Thanks for your help. Jérôme Rosat ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to add a value to an Item of a menu option button
Ken, Thank you very much. The answer appears so simple. You are a genius. Jérôme Rosat Le 27 déc. 04, à 00:10, Ken Ray a écrit : On 12/26/04 4:51 PM, Jérôme Rosat [EMAIL PROTECTED] wrote: Bonjour à tous, In my database, I've got a table with two fields and many records: Value Name 12 Name1 16 Name2 25 Name3 etc. On a card I created a menu option button with items come from the field Name of my database: Menu Items: Name1 Name2 Name3 etc. But when I select an option, I need to now the value of the item selected, not the item itself. For example, if I select Name2, I need to know the value 16. How to add a value to an Item of a menu option button ? Yes. You can add a custom property (like uMenuValue) to the option button that contains the values, one on each line: 12 16 25 And then do this: on menuPick put line (the menuHistory of me) of the uMenuValue of me into tValue -- gets the corresponding line in the custom property to the line selected -- in the option menu -- do something with tValue end menuPick Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
How to use backgroundColor
Bonjour à tous, I try to change the background color of pair lines in a list field. This is my code: if vLigne/2 = trunc(vLigne/2) then set the backgroundColor of line vLigne of field fListeIcones to lightblue But only the background color of the text in the line change in light blue. Not all the line (for example the background color don't change under tab) and not in all the hight of the line. How to change the background color of an entire line in a list field ? Thanks for your answers. Jérôme Rosat ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use backgroundColor
James, What I'm trying to do is: - line 1 of my list field: background color white - line 2 of my list field: background color light blue - line 3 of my list field: background color white - line 4 of my list field: background color light blue - etc. like a selected line. But the backgroundcolor of line property don't change the color of the entire line, only the background of the text. The foregroundcolor property specifies the color of object text not the background. Jérôme Le 19 déc. 04, à 20:55, James Cass a écrit : Jérôme - I'm not exactly sure what you're trying to do, but have you tried using foregroundcolor instead of backgroundcolor? HTHJames On Dec 19, 2004, at 11:55 AM, Jérôme Rosat wrote: Bonjour à tous, I try to change the background color of pair lines in a list field. This is my code: if vLigne/2 = trunc(vLigne/2) then set the backgroundColor of line vLigne of field fListeIcones to lightblue But only the background color of the text in the line change in light blue. Not all the line (for example the background color don't change under tab) and not in all the hight of the line. How to change the background color of an entire line in a list field ? Thanks for your answers. Jérôme Rosat ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Jérôme Rosat 13, chemin des Palettes 1212 Grand-Lancy 022 880 20 70 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use backgroundColor
Bonsoir Thierry, Thanks for your answer. It's help me a lot. I'm going to try the pattern solution. Jérôme Le 19 déc. 04, à 23:10, Thierry Arbellot a écrit : Bonsoir Jérome, I had the sample problem in one of my app. I used 2 different workarounds: 1. pad the line with enough space characters to make the line have the same width as the field 2. make the field transparent and display a colored rectangle behind each line If your target is just to have white and blue lines alternatively, you can put a pattern in the background of the field. But there are some restrictions on the pattern size, like 16 or 32 pixels. Hope it helps. Thierry On Sunday, Dec 19, 2004, at 21:17 Europe/Paris, Jérôme Rosat wrote: James, What I'm trying to do is: - line 1 of my list field: background color white - line 2 of my list field: background color light blue - line 3 of my list field: background color white - line 4 of my list field: background color light blue - etc. like a selected line. But the backgroundcolor of line property don't change the color of the entire line, only the background of the text. The foregroundcolor property specifies the color of object text not the background. Jérôme Le 19 déc. 04, à 20:55, James Cass a écrit : Jérôme - I'm not exactly sure what you're trying to do, but have you tried using foregroundcolor instead of backgroundcolor? HTHJames On Dec 19, 2004, at 11:55 AM, Jérôme Rosat wrote: Bonjour à tous, I try to change the background color of pair lines in a list field. This is my code: if vLigne/2 = trunc(vLigne/2) then set the backgroundColor of line vLigne of field fListeIcones to lightblue But only the background color of the text in the line change in light blue. Not all the line (for example the background color don't change under tab) and not in all the hight of the line. How to change the background color of an entire line in a list field ? Thanks for your answers. Jérôme Rosat ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Jérôme Rosat 13, chemin des Palettes 1212 Grand-Lancy 022 880 20 70 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution Jérôme Rosat 13, chemin des Palettes 1212 Grand-Lancy 022 880 20 70 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Disappointed by Dreamcard/Revolution
Hello, I have a PowerBook G4 450MHz with MacOS 10.3. I discovered Revolution a few month ago. So I decided to buy Dreamcard to test it. I am very surprised by the reactions of this application: After a few hours of use: - the keyboard shortcuts (copy/past for example) don't work any more - the Inspector button in the toolbar don't work (the inspector palette don't open or twice) - the name of an element (stack or field) change without typing something in the field name in the basic properties so I close the stack without saving and I open it again: the new name is still present - each time I click-right on a word in the script window a new Documentation stack open and appear in the Application Browser: after 1 hour, the Application Browser is full of stacks - I tried to develop a small application for a french environment: I had much problems with the accents. - etc. It's as if the interface was unstable, not finished. If Revolution is the same, I am not certain that it is possible to develop an application for a big company or an official administration. And if you don't understand or write english, you should not hope to obtain any support ! At the beginning I was very exited by Revolution, but finally I'm totally disappointed. Jérôme Rosat 1212 Grand-Lancy / Genève ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How works revCurrentRecordIsLast/revCurrentRecordIsFirst
Bonjour Jan, Yes I use MySQL. After creating a recordset, I execute: 'revMoveToFirstRecord' (go to the first record). Results: 'revNumberOfRecords' : 3 'revCurrentRecord': 0 'revCurrentRecordIsLast' : false 'revCurrentRecordIsFirst' : false Then I execute 'revMoveToNextRecord' (go to the second record). Results: 'result() : true 'revNumberOfRecords' : 3 'revCurrentRecord': 1 'revCurrentRecordIsLast' : false 'revCurrentRecordIsFirst' : false Then I execute 'revMoveToNextRecord' (go to the third and last record). Results: 'result() : true 'revNumberOfRecords' : 3 'revCurrentRecord': 2 'revCurrentRecordIsLast' : false ?? 'revCurrentRecordIsFirst' : false Then I execute 'revMoveToNextRecord' (just to see). Results: 'result() : false 'revNumberOfRecords' : 3 'revCurrentRecord': 2 'revCurrentRecordIsLast' : true 'revCurrentRecordIsFirst' : false I hope it is clear. Jérôme Rosat Le 6 nov. 04, à 06:25, Jan Schenkel a écrit : --- Jérôme Rosat [EMAIL PROTECTED] wrote: Bonjour tout le monde, In Dreamcard documentation, for the revCurrentRecordIsLast function, it's written that Returns whether the current record is the last record in a record set (database cursor). In my recordset with 3 records, when the cursor is on the first record, revCurrentRecordIsLast return false. It's Ok for me. After moving the cursor with revMoveToNextRecord to the second record, revCurrentRecordIsLast return false. It's still OK for me. If I move the cursor to the third and last record, revCurrentRecordIsLast still return false. With the upper definition, the result should be true. The third record is the last one. But revCurrentRecordIsLast return true only if I use revMoveToNextRecord once again. In short, revCurrentRecordIsLast return true when revMoveToNextRecord return an error. And it is the same for revCurrentRecordIsFirst. Is it a bug or I'm stupid ? Jérôme Rosat Bonjour Jérôme, What does the function 'revNumberOfRecords' return for that result set ? And is this still on MySQL ? Jan Schenkel. = Join us at the European Revolution Conference November 14-16, MALTA. ~ http://TechieTours.com/Rev/ = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to create a list of images stored in a MySQL database in a text field
Bonjour Jan, Thank you for your answer. Yes, it helps me a lot. Meilleures salutations. Jérôme Le 5 nov. 04, à 15:56, Jan Schenkel a écrit : --- Jérôme Rosat [EMAIL PROTECTED] wrote: Hi all, I would like to create a list field containing in each row an image, its number and its name. The image size should make 16 X 16 pixels. I imagine I should first: - open a connection to my DB - execute a SQL query to select all rows of the table. I think I should use the imageSource property but I have got no idea how to use it to create the list and fix the size of the images. Does somebody have an idea ? Thank you for you help. Jérôme Rosat Bonjour Jérôme, As I don't recall seeing a reply to this on the list, I thought I'd give you some advice (better late than never, right ?) Text field images are either stored in the stack and refered to by their ID or name, or are external to your stack and refered to by a URL (http or file) So if the data is stored in a MySQL database, you'll have to take two steps to accomplish your goals : 1) get the image data from the database and temporarily store them inside an image control (this control can be offscreen, or hidden) 2) then set the imagesource of a chunk of your field to the ID of the image : set the imageSource of char 1 of line 2 of \ field Foobar to myImageName Hope this helped, Jan Schenkel. = Join us at the European Revolution Conference November 14-16, MALTA. ~ http://TechieTours.com/Rev/ = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How works revCurrentRecordIsLast/revCurrentRecordIsFirst
Bonjour tout le monde, In Dreamcard documentation, for the revCurrentRecordIsLast function, it's written that Returns whether the current record is the last record in a record set (database cursor). In my recordset with 3 records, when the cursor is on the first record, revCurrentRecordIsLast return false. It's Ok for me. After moving the cursor with revMoveToNextRecord to the second record, revCurrentRecordIsLast return false. It's still OK for me. If I move the cursor to the third and last record, revCurrentRecordIsLast still return false. With the upper definition, the result should be true. The third record is the last one. But revCurrentRecordIsLast return true only if I use revMoveToNextRecord once again. In short, revCurrentRecordIsLast return true when revMoveToNextRecord return an error. And it is the same for revCurrentRecordIsFirst. Is it a bug or I'm stupid ? Jérôme Rosat ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How to create a list of images stored in a MySQL database in a text field
Hi all, I would like to create a list field containing in each row an image, its number and its name. The image size should make 16 X 16 pixels. I imagine I should first: - open a connection to my DB - execute a SQL query to select all rows of the table. I think I should use the imageSource property but I have got no idea how to use it to create the list and fix the size of the images. Does somebody have an idea ? Thank you for you help. Jérôme Rosat Genève, Suisse ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How to to recover the automatic number after insertion in a MS Access database
How to recover the value of an automatic number field of a table after inserting a new record in a MS Access database. Best regards, Jerome ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: I speak French, so I think that I can't use Revolution, aaaaargh.
Bonjour François, Après avoir lu ton article sur Revolution je suis à deux doigts de l'acheter. Malheureusement je vois plusieurs points négatifs: - absence de documentation en français - absence d'une version française du programme (je ne parle pas de Transcript) - mes recherches sur le net m'indiquent que la communauté Revolution n'est pas très importante ou alors pas très active - cette liste n'est pas très pratique. Un vrai forum serait bien plus agréable - je constate que les concepteurs de Revolution n'ont pas intérêt à ce que la communauté soit active car les licences n'étant pas très cher, il faut bien vendre du support. Un idée: tu devrais ouvrir une rubrique dans le forum de cuk.ch pour la communauté Revolution Je vais donc encore attendre avant d'acquérir Revolution. Meilleurs messages. Jérôme Le Vendredi, 8 aoû 2003, à 12:15 Europe/Zurich, [EMAIL PROTECTED] a écrit : Message: 7 Date: Fri, 08 Aug 2003 09:24:51 +0200 Subject: I speak French, so I think that I can't use Revolution, argh. From: Fran=?ISO-8859-1?B?5w==?=ois Cuneo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Hello everybody, I'm sorry, but I have asked a lot of questions this last days and I have no answer (just one from Yves) about something that maybe prohibs me to use Revolution. Why? Because I think that's it is impossible to use what all people who speaks French does: use our char in File's names! If you save a file like Save this stack as Révolution.rev I obtain the first time that seems to be e good file. But When I open and I save again the file I obtain R©volution.rev~ that prohibs Revolution to save correctly the stack. So I have asked how to correct that. The answser from Yves (save as Whatever.rev and rename it to Révolution.rev works only if I don't open the stack another time in the same session (the files stays im memory, so it's impossible to open it again) I have asked about UTF8 conversion of the files names (I'm sure that here is the problem, I had exactly the same with RealBasic, and it was corrected with a conversion) but I had no answer. I have asked about how to purge a stack, no answer. So I think that I don't have a solution, and for me (and for all people that use diacritical char), that is a basic necessity. And I'm sorry but I think that Revolution is not for me. The problem, that I have writed a review about Revolution (some thousands have read it) and I say that Revolution is THE solution for all people that have used languages like Hypertalk and maybe for all that whant to begin to write applications. The review is here (http://www.cuk.ch/articles/tests) I think that I have to change something in my review. So maybe it is one of my last messages on this list. For me, it's terrible but it's like that. Friendly François -- François Cuneo Site Web dédié au Macintosh http://www.cuk.ch E-mail: [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution