ejecting a disk after using "the files" funtion
In the last edition of the Runtime Revolution Newsletter there was an article on “Listing and Sorting Files in Revolution”. The article included a demonstration stack “File Lister.rev”. I took that stack and wrote a snippet of code to save the file lists it creates. I have been trying to use it to catalog my back-up CDs. It works great for creating the file lists, but I have a problem: When I try to eject the CD I just cataloged so I can go to the next CD, I get this message, “The disk (here it puts the name of the disk,) is in use and could not be ejected.” I find that if I then use the function “the files” on a different disk it allows me to eject the disk I just cataloged. How can I get the function “the files” to let go of me CD so I can eject it and go on to the next CD? Thanks, Rich Lague___ 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
can't open stackfile
I keep making standalones that will not save data. The setup in the standalone setting dialog appears fine. When I put in a result checking script in my save routine I get a consistent message: "can't open stackfile" Does this happen to others? Is there a solution? Thanks, Rich Lague ___ 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
open standalone with field selected?
I have been trying to create a standalone that will open with a field already selected. I also want the stack to open to a random card. The application is the kind with a 'splash screen' main stack. I have tried several approaches between putting commands in preOpenStack or in openStack. The script below opens the Rev stack to a random card, but once it is compiled into a standalone app it only opens to the first card. It also does not put "find" into the find field, and the text is not selected. I have put "select the text of field "find"" in the openCard handler of the stack. So, when a new card is opened the text of the find field is selected. But it does not work when the standalone is opened. What am I doing wrong? Thanks so much! Rich Lague on openStack -- lock screen put random(the number of cds) into aNum go cd aNum -- go cd (aNum + 1) put "find" into field "find" select the text of field "find" -- unlock screen end openStack ___ 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
touch screen?
The clinic where I work is converting to an electronic medical record. We will be using touch screen tablet computers. Is it possible to make revolution created applications work with touch screens? If possible -- How? Thanks, Rich Lague ___ 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: list field-a race to the bottom
On Sunday, October 2, 2005, at 02:47 PM, Sarah Reichelt wrote: I have made a list field for jumping to different cards in the stack-- and it works fine. But I do have a small interface annoyance because the click-on-line in the list field then jumps to the bottom of the list field. The only time this does not happen is when the list field is scrolled all the way to the top. When a line in the list field is clicked it opens the corresponding card. (The lines in the list field are card names.) There is an openCard handler that sets the highlighted line of the list field to the line for the just opened card. Is there some way to stop this jumping and just have the list field stay put when a card name is clicked on? Setting the hilitedLine of a field will always cause it to scroll so that the hilited line is visible. If you don't want this to happen, you can check the vScroll of the field before you set the hilitedLine, then set it back afterwards. Sarah Thanks Sarah, I'm not sure that is exactly my problem. The hilited line is already visible-- it was just clicked on. It jumps the hilited line from wherever it is in field to the very bottom line of the field. However, I can see that your suggestion will work for what I want. I'll give it a go. Rich Lague ___ 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
list field-a race to the bottom
I have made a list field for jumping to different cards in the stack-- and it works fine. But I do have a small interface annoyance because the click-on-line in the list field then jumps to the bottom of the list field. The only time this does not happen is when the list field is scrolled all the way to the top. When a line in the list field is clicked it opens the corresponding card. (The lines in the list field are card names.) There is an openCard handler that sets the highlighted line of the list field to the line for the just opened card. Is there some way to stop this jumping and just have the list field stay put when a card name is clicked on? Thanks, Rich Lague ___ 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: add menu-background vanishes
Thanks Jacqueline, I finally got it to work when I reduced the number of cards in the stack. It was a stack with more than 500 cards. When I deleted all but 9 cards and created a menu, I saw my background moved about halfway down the screen. Does the menu builder move the existing objects down further when there are more cards in the stack? Rich Lague On Thursday, September 22, 2005, at 11:50 AM, J. Landman Gay wrote: Rich Lague wrote: I have an intermittent problem with the menu builder: When I go to create a menu bar, on a stack that does not yet have one, my card background (and all the controls on it), disappears. I have not been able to figure out how to get it back. I end up 'reverting to saved'. It doesn't seem to happen to all stacks. The cards go blank the second I click OK to create a new menu. Anyone know what's going on? Just guessing, but it might be due to the way Rev pushes all existing objects downward to make room for the new menu bar group. If your stack is very short, it could look like the objects disappeared when really they have just been pushed below the visible portion of the window. If you resize the stack to be taller do your objects appear? -- Jacqueline Landman Gay | [EMAIL PROTECTED] 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
Re: add menu-background vanishes
I just tried it with a new simple stack, and my background group did not disappear. So, it must be something about my stack. And it must be something I put in a variety of stacks because this is not the first time I have had this problem. When it happens the Application Browser shows the background and all the controls as still present. I have suspected that it is a layer problem, but when I try to change the layer of my background (layer 1) the arrows are greyed out in the size & position inspector box. I'm using Rev 2.6 in system 10.2.8 on a Mac. Thanks! Rich On Thursday, September 22, 2005, at 11:10 AM, MisterX wrote: that's a new twist! what version of rev? platform/OS? please try to help us help you out... can you replicate it in a new simple stack? I haven't seen this one yet! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich Lague Sent: Thursday, September 22, 2005 8:05 PM To: How to use Revolution Subject: add menu-background vanishes I have an intermittent problem with the menu builder: When I go to create a menu bar, on a stack that does not yet have one, my card background (and all the controls on it), disappears. I have not been able to figure out how to get it back. I end up 'reverting to saved'. It doesn't seem to happen to all stacks. The cards go blank the second I click OK to create a new menu. Anyone know what's going on? Thanks, Rich Lague ___ 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
add menu-background vanishes
I have an intermittent problem with the menu builder: When I go to create a menu bar, on a stack that does not yet have one, my card background (and all the controls on it), disappears. I have not been able to figure out how to get it back. I end up 'reverting to saved'. It doesn't seem to happen to all stacks. The cards go blank the second I click OK to create a new menu. Anyone know what's going on? Thanks, Rich Lague ___ 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
save dialog problem
I have been trying to set up a “do you want to save” dialog in an application that will run on both Macs and Windows. I get a result that don’t really work from both shutdownRequest and closeStackRequest. First I tried closeStackRequest: [in the stack script of the substack where data is stored.] on closeStackRequest if the changedProp of this stack is true then answer “Do you want to save” with “yes” or “no” [more stuff here] pass closeStackRequest end closeStackRequest When I tested this in Revolution (before building a standalone,) it did not work when I quit or closed the subsatck. But it did work if I put closeStackRequest in the message box. I went ahead and made standalone apps. In windows my dialog appeared if I quit by clicking the “X” in the upper right hand corner of the window. It did not appear if I selected “quit” from the menu. On the Mac much the same thing was true: No dialog if I quit from the menu, but it does appear if I click the little red “close” button in the upper left hand corner of the window. So, I looked in the list archives and in the documentation and came up with the idea of using shutdownRequest instead of closeStackRequest. I kept everything the same but I substituted shutdownRequest for closeStacckRequest. On Windows the result was the same-- I get me dialog only by clicking the “X”, and I do not get it if I pick “quit” from the menu. On the Mac (system 10.2.8) I nolonger get the dialog from clicking the little red button, but I do get it when I quit. (This is OK because this substack is the main window and the natural thing to do is quit rather than click the red button in the upper left hand corner.) Finally, my question--- How do I get a windows standalone that displays the dialog when it quits either from clicking the “X” or from selecting quit? Should I use both handlers? (shutdownRequest and closeStackRequest.) Or, would that just make the dialog appear twice? Thanks! Rich Lague___ 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
empty marked cards?
I want to let the user know that there are no marked cards when the user packs "go to next marked card." This script does not work: on testMarkFind go next marked card if it is empty then answer "none found" end if end testMarkFind What does work? Thanks, Rich Lague ___ 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
Standalone - substack save problem
I’m trying to make an application that saves to a substack. I have made at least one application that does this correctly, but I can’t seem to do it again. I can make a application that saves data in a sub stack if I do it in a particular folder. If I try to copy that revolution file to another folder, or ‘save as’ it to another folder, it no longer makes a standalone that saves to it’s sub stack. If I put the revolution file in a sub folder of the folder it works in, it stops working. Currently, I can only make standalones that save to a sub stack in this one folder. If I make a new revolution file in a new folder from scratch it will not save to a sub stack. I think I have the settings right: I checked “Move substacks into individual stackfiles”. I think I must be missing something very basic, but I'm stumped. Rich Lague___ 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
custom icons-- ?
I’m trying to put a custom icon on an app I have made for Mac X and Windows. I made an icon in Iconographer X 2.5 and selected it in standalone settings dialog, but I still ended up with a generic icon on my app. I then carefully read the directions for Iconographer. It says that you still have to open them in “Iconographer, Icon Composer, or another icon tool” if you want to be able to see your icon. (I had even less success with Windows. When I try to select the icon in the standalone settings dialog it refuses to select it because I don’t have the 9 required sizes.) I re-opened the icon in Iconographer-- no change in the result. I would like to try opening it in Icon Composer, but I can’t find the program. I found posts on the Apple site that says Icon Composer is included with system X, but I can’t find it. (I searched my startup drive and looked at the install cds, system 10.2.8) So, my main question: Is there an easy way to create and add a custom application icon to a program made in Revolution? If there is not an easy way, where can I get Icon Composer? Thanks, Rich Lague___ 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: sorting zip codes
Thanks Dar, Your suggestion was the easiest. All I had to do was remove "numeric". Rich On Sunday, July 10, 2005, at 08:30 PM, Dar Scott wrote: On Jul 10, 2005, at 5:45 PM, Sarah Reichelt wrote: I’m trying to set up a sort of a stack of address cards by zip code. Some of the zips are only the first 5 numbers and some of them are in the form “x-”. The script, “sort cards numeric by field "zip"“ sorts all the 9 number zips first, then sorts the 5 number zips-- not what I want. Untested but worth a try: set the itemDelimiter to "-" sort cards of this stack numeric by item 1 of field “zip” I wonder if 'sort cards text by field "zip"' would do what is needed. I would think it would sort like this: 00234 00234-1234 00235 Dar -- ** DSC (Dar Scott Consulting & Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ 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
sorting zip codes
I’m trying to set up a sort of a stack of address cards by zip code. Some of the zips are only the first 5 numbers and some of them are in the form “x-”. The script, “sort cards numeric by field "zip"“ sorts all the 9 number zips first, then sorts the 5 number zips-- not what I want. I tried “sort cards of this stack numeric by chars 1 to 5 of field “zip”” I go a “bad factor” error. Then I tried “sort cards of this stack numeric by first 5 chars of field “zip”” Another “bad factor”. I also tried, “sort cards of this stack numeric by (chars 1 to 5 of field "zip")” -- Bad factor still. Is there a way? Thanks, Rich___ 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
add menu and controls vanish?
I have one particular stack project that behaves strangely. It is a simple membership directory with data about the members in a bunch of different fields. When I try to add a menu all my buttons and fields vanish when I say OK to creating a new menu in the Menu Builder. After that I am not able to make the content of my cards visible again. The back ground group's Visible property is checked. ?? What am I doing wrong? Thanks, Rich Lague ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
How?- is the chunk a date?
I'm trying to check if a certain chunk in a line is a date. All the dates will be in the short date format. I have been able to do it with this -- if (char -3 of item -2 of tCurrentRec) = "/" then But it doesn't seem very elegant. Is there a better way? ? Can I do something like: if item -2 of tCurrentRec is a date then... Thanks, Rich ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
how to remove blank lines from table
How do you get rid of extra lines at the end of a list when that list comes from a table field? I’m working on an app where the user puts a bunch of stuff in a table field. The list that is generated is then used in a variety of ways, and to make it very readable I have a script that puts a dash inbetween the items from each of the table fields. So you get this kind of thing: thing1-thing2-thing3 Everything worked but at the end of my list I got many lines of: - - - - - - - - - - - - So, it appeared that I had a bunch of extra lines after my list that were coming from my table field. First I tried this on the table field: filter field “tTable” with "?*" That didn’t work. So, next I tried putting the table field into a varible: put fld "daTable" into tList Then I tried the filter trick on that: filter tList with "?*" Again, it did not work. The “filter with “?*” works on other containers, why not table fields? What is the correct way to remove blank lines, (particularly at the end,) of table fields? Thanks! Rich Lague___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
highlighting the foundText
I have a "find" field that finds the string in text file using the offseItem command. The item that contains the search string is then displayed in a field. I would like the search string to be highlighted in the field after the find. I have tried using this script after I get everything into the field: --- find thingToFind in field "card-name" set the highlight of the foundText to true - The search string is in thingToFind. (I checked with the message box.) But I can't make the text I'm look for highlight. What is a better way to do this? Thanks, Rich Lague ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
which item contains the foundText?
I’m making an application that keeps it’s data in a text file and I’m trying build in a find field. So, I set up a script for the field: on returnInField global tVar -- contains the text file global itemNum -- a handler in the stack script uses this to display the current record if me is empty then beep -- nothing to find find the text of me in tVar -- now I need to get the item number that the text was found in. -- the script below does not work. I also tried “is within”--also doesn’t work. set the itemDelimiter to "|" repeat with i = 1 to the number of items in tVar if i contains the foundText then put i into itemNum exit repeat end if end repeat put itemNum goRecord end returnInField So...How do I determine which item my foundText is in? Thanks! Rich Lague___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: selectedText from a palette?
Thanks David, your solution works! Rich Lague On Thursday, September 9, 2004, at 08:13 AM, [EMAIL PROTECTED] wrote: Rich Layne wrote: I trying to make an application that has most of its functionality on a palette-- a bunch of different buttons that will do different stuff to the main data stack. Most things work, but handlers that involve the selectedText dont seem to make it to the main stack, (which is the topStack.) My experience using Metacard 2.5 is that when you click on a palette the selection in the topStack is lost, so the selectedText is empty. I use these handlers in my palette's script as a way of recording and restoring the selection: on mouseEnter global chunkStore get the selectedChunk if it is empty then put empty into chunkStore else put it && "of" && word -2 to -1 of the long id of the selectedField into chunkStore end mouseEnter on mouseDown global chunkStore if chunkStore is not empty then do "select" && chunkStore end mouseDown So on mouseUp, the selection is where you want it and references to it should work properly. There is a slight flashing associated with the selection being lost and restored, so I'd be interested to hear other methods. David Epstein ___ 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: selectedText from a palette?
Thanks Paul-- But I can't seem to make that work either. I put this handler in the stack script of my main stack, (which is also the topStack): on testQ put the selectedText into field "card-name" of the current card set the name of the current card to the selectedText end testQ It works when called from a button in the topStack. But calling the testQ handler from a button on the palette does not seem to work. I tried this script in a button on the palette: on mouseUp set the defaultStack to the topStack send mouseUp to button "tester" of current card end mouseUp But, it doesn't work either. Functionally, I can get it to do everything I want. But I will have one button on my main stack, and all the other buttons on the palette... kind of clunkly. Rich On Wednesday, September 8, 2004, at 07:36 PM, [EMAIL PROTECTED] wrote: I think the problem might be the "this card" reference. It probably should be "set the name of the current card to the selectedText" - this card is refering to the card containing the script. Paul ___ 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
selectedText from a palette?
I’m still having problems with using the “selectedText” from a palette. I trying to make an application that has most of it’s functionality on a palette-- a bunch of different buttons that will do different stuff to the main data stack. Most things work, but handlers that involve the “selectedText” don’t seem to make it to the main stack, (which is the topStack.) One thing I would like it to do is allow the user to highlight some text in one of the fields on the current card and then click a button on the palette and have the text put into a field. It will also set the name of the card to that “selectedText”. My other buttons on the palette work, for example: on mouseUp set the defaultStack to the topStack delete this card end mouseUp However, this does not work: on mouseUp set the defaultStack to the topStack put the selectedText into field "card-name" set the name of this card to the selectedText end mouseUp So, I tried doing my data-moving in the script of the main stack. This script works when called from a button on the current card of the main stack: on testO put the selectedText into field "card-name" set the name of this card to the selectedText end testO But it does not work to call the above script from a button on the palette. I tried: on mouseUp set the defaultStack to the topStack testO end mouseUp I also tried: on mouseUp send “testO” to stack “compareLists” end mouseUp So, is there a way to get the “selectedText” to work from a palette? Thanks! Rich Lague___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
palette question
If I run the following script from a button that is on the stack I'm working with it works. However, if I try to run it from a button on a palette it does not work. The stack I'm trying to work on is the topstack, right under the palette. Why? Thanks, Rich Lague --- on mouseUp set the name of this card to the selectedText put the selectedText into field "resultFld" end mouseUp ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
getting past OutLook?
I'm trying to send my new application to the people I work with -- I work at a university health clinic. The whole university is run on Windows, which I don't know much about. OutLook will nto let me send it to any of the computers of my co-workers. It objected to the ".exe" tag at the end of the file name. So, I tried changing the tag to ".edb", (the ending used in the turtorial,) but OutLook still called it an ".exe" and refused to deliver the attachment. Is there some simple way around this? Thanks! Rich Lague ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: next repeat problem
Thanks Klaus (and Jan!), Yes, adding the complete descriptor for i did allow my 'next repeat' to run. However, I'm still having problems getting rid of the extra lines in my global variable. I have also been trying your suggestion of using 'repeat for each'. I get an error when I try to 'apply' this script-- --- set the itemdel to tab repeat for each line i in fld "daTable" if i = empty then delete line i of fld "daTable" else put item 1 of field "daTable" & return after theList end if end repeat -- The error I get is "Chunk: error in chunk expression" and it highlights the line "put item 1 of field "daTable" & return after theList" -- this is a line of the script that worked before... Rich On Tuesday, August 17, 2004, at 09:28 AM, Klaus Major wrote: Hi Rich, I'm trying to get rid of blank lines in a global variable by using the "next repeat" control structure to stop them from being put into the variable in the first place. I keep getting errors-- but only when I include the "next repeat" line. Here is the script: on upDateTopicsRequest global theList, order, theListPlus, currentListNam put empty into theList ask "Would you like to save your current list?" if it is empty then beep else put it into field "listName" put it into currentListNam set the itemDelimiter to tab repeat with i = 1 to the number of lines in field "daTable" ## if line i is empty then next repeat ## Does this work? if line i of field "daTable" = empty then next repeat ## Need the complete descriptor for i... put item 1 of line i of field "daTable" & return after theList end repeat put the number of lines of theList into order put field "daTable" into theListPlus --extract the descriptors in productEval stack end if end upDateTopicsRequest "daTable" is a table field. If I exclude the "next repeat" line I do not get an error, but I get a lot of blank lines in the global variable "theList". This, in turn, causes other problems down the line. The error I get when I hit the "Apply" button is "if missing 'then'. Is there a better way of excluding the blank lines in the field "daTable" from my global variable? If you have MANY lines you could save some time using "repeat for each..." ... set the itemdel to TAB repeat for each line i in fld "daTable" if i <> empty then put item 1 of i & CR after theList end if end repeat ... Insanely fast :-D Hope that helps... Thanks, Rich Lague Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ 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
next repeat problem
I'm trying to get rid of blank lines in a global variable by using the "next repeat" control structure to stop them from being put into the variable in the first place. I keep getting errors-- but only when I include the "next repeat" line. Here is the script: on upDateTopicsRequest global theList, order, theListPlus, currentListNam put empty into theList ask "Would you like to save your current list?" if it is empty then beep else put it into field "listName" put it into currentListNam set the itemDelimiter to tab repeat with i = 1 to the number of lines in field "daTable" if line i is empty then next repeat put item 1 of line i of field "daTable" & return after theList end repeat put the number of lines of theList into order put field "daTable" into theListPlus --extract the descriptors in productEval stack end if end upDateTopicsRequest "daTable" is a table field. If I exclude the "next repeat" line I do not get an error, but I get a lot of blank lines in the global variable "theList". This, in turn, causes other problems down the line. The error I get when I hit the "Apply" button is "if missing 'then'. Is there a better way of excluding the blank lines in the field "daTable" from my global variable? Thanks, Rich Lague ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
table field clearing
I have a table field that I want the users of my application to use to make a list. If they decide they don't like their list I want them to be able to start over. The problem is that I can't seem to delete things from the table field and have them stay deleted. I put this in the message box: delete line 3 of field "daTable" Line 3 of the field went blank when I hit return. However, when I went to type something new into line 3 of the field the old contents suddenly returned when I clicked in the cell. When I hit the arrow key to go to the next cell in the line, the rest of the previous contents of the line reappeared. How can I clear this field so I can put a new text file in it, (with just column headers?) Thanks! Rich Lague ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
save as for text file?
I'm trying to create an application in which the user will fill in a table field. I would then like to let the user save that field as a text file under a name they chose. This was my first attempt: on mouseUp ask "Save list as..." set the defaultFolder to "/Users/rlague/Documents/Revolution-iB/RFP projecto/7.2i" put field "daTable" into URL "file:it.txt" end mouseUp This script did work-- it saved the file, but the file name was "it.txt" For my second attempt I copied most of a script from Dan Shafer's book (page 218,)-- on mouseUp ask "Save list as..." set the defaultFolder to "/Users/rlague/Documents/Revolution-iB/RFP projecto/7.2i" open file it write card field "daTable" to file it close it end mouseUp This worked to the extent that a file was created with the correct name, but the file was empty. For my third try I copied Dan Shafer's script very carefully-- on mouseUp ask file "Save list as..." with "Temp" open it write card field "daTable" to file it close it end mouseUp With this script I get an error message: "Chunk: error in object expression" and no file is created. If I make a slight change in this script-- on mouseUp ask file "Save list as..." with "Temp" open it write card field "daTable" to file it close file it end mouseUp I do not get the error message, but no file is created. So, is there a way to do what I'm trying? Thanks! Rich Lague ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
retrieving data from a sub-stack?
I'm trying to get information from one sub-stack from another. The script below is from the sub-stack "productEvals". I want it to retrieve data from either the stack "RFP Importer-rich" or "RFP Importer-clean". It should involve a lot of going back and forth between the "productEvals" stack and one of the "RFP Importer" stacks. I can get it to go to the "RFP Importer" stack but I don't think it is coming back to the "productEvals" stack. What is the best way to get this working? Thanks! Rich Lague - answer "Which topic list did you use?" with "Rich's topics" or "My own topics" if it is "Rich's topics" then go invisible stack "RFP Importer-rich" else go invisible stack "RFP Importer-clean" end if repeat for the number of cards if field "topic" is empty then go next card else put field "topic" into tTopicsfld put field "Number" into tNumber put field "feature" into tFeature repeat for each line thisLine in tTopicsfld go card thisLine of stack "productEvals" put tNumber && tFeature & return after field "fromRFP" end repeat end if end repeat ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: answer buttons incorporating a varible
Thanks Thierry! It works. This list is a wonderful resource! I ask a question and get an immediate answer... :) Rich On Sunday, May 30, 2004, at 12:05 PM, Thierry Arbellot wrote: Hi Rich, Try to put the expression in brackets. on makeChoices put "someProduct" into tProduct answer "What's your pleasure?" with "new eval of another product"\ or "open old evaluation" or ("Evaluate" && tProduct) end makeChoices Thierry. On Sunday, May 30, 2004, at 20:50 Europe/Paris, Rich Lague wrote: I'm trying to get the answer command to give a button with quoted text and a variable in it. The following script results in 4 buttons: "What's your pleasure?", "new eval of another product", "Evaluate" and "someProduct". on makeChoices put "someProduct" into tProduct answer "What's your pleasure?" with "new eval of another product"\ or "open old evaluation" or "Evaluate" && tProduct end makeChoices I want 3 buttons with the last button reading "Evaluate someProduct". I have also tried it like this: on makeChoices put "someProduct" into tProduct answer "What's your pleasure?" with "new eval of another product"\ or "open old evaluation" or "Evaluate && tProduct" end makeChoices This script returns three buttons, but the last button reads "Evaluate && tProduct". Is there a way? Thanks! Rich Lague ___ 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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
answer buttons incorporating a varible
I'm trying to get the answer command to give a button with quoted text and a variable in it. The following script results in 4 buttons: "What's your pleasure?", "new eval of another product", "Evaluate" and "someProduct". on makeChoices put "someProduct" into tProduct answer "What's your pleasure?" with "new eval of another product"\ or "open old evaluation" or "Evaluate" && tProduct end makeChoices I want 3 buttons with the last button reading "Evaluate someProduct". I have also tried it like this: on makeChoices put "someProduct" into tProduct answer "What's your pleasure?" with "new eval of another product"\ or "open old evaluation" or "Evaluate && tProduct" end makeChoices This script returns three buttons, but the last button reads "Evaluate && tProduct". Is there a way? Thanks! Rich Lague ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
putting data into a table
Can I just somehow paste a tab-delimited text file, (saved that way in Excel), into a table field? When I try this all the data goes into the first cell--there is no recognition of the tabs so that data is put into different cells on the same line. There is also no recognition of the returns so that new records are placed on the next line. Is there a manual way to paste the file? Is there a way to do this with a script? Thanks! Rich Lague ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: basic put URL question-more
I think I have found what makes the difference here: Revolution doesn't like folder names with a fancy ƒ at the end. I have tried the basic import script that Klaus sent me, (See below,) on a bunch of different text files. The script does not work if the file I'm trying to "put" is a folder with one of these fancy "f"s at the end. (You make it on the Mac by pressing opt-f.) If I remove the ƒ at the end of the folder name the script works. Is it supposed work this way, or is this a bug? Thanks, Rich On Sunday, April 18, 2004, at 12:18 PM, Rich Lague wrote: Thanks Klaus, I had tried this script before and it didn't work. (I tried every import text variation I could find in the documentation.) So, I tried it again, and it still didn't work. On a hunch I tried opening a test file that I put in my Applications folder, and it worked! So, I then tried moving the same file I had just managed to open to the folder where I have my rev projects-- and it does not work. The path on the successful attempt: /Applications/test.3 The path on the unsuccessful attempt: /Users/laguer/Documents/Revolutioní/test.3 It seems that this script works for files one place on my hard drive, but not another? I'm using OSX 10.2.8 on a G4 Mac and Rev 2.2 Is there a rule that limits how many folders away a file can be? Rich Lague On Sunday, April 18, 2004, at 10:15 AM, Klaus Major wrote: answer file "Import text from what file:" of type "TEXT" if it is empty then put "Bingo!" into field "Field 1" exit to top else put URL("file:" & it) into field "Field 1" end if ___ 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: basic put URL question
Thanks Klaus, I had tried this script before and it didn't work. (I tried every import text variation I could find in the documentation.) So, I tried it again, and it still didn't work. On a hunch I tried opening a test file that I put in my Applications folder, and it worked! So, I then tried moving the same file I had just managed to open to the folder where I have my rev projects-- and it does not work. The path on the successful attempt: /Applications/test.3 The path on the unsuccessful attempt: /Users/laguer/Documents/Revolutioní/test.3 It seems that this script works for files one place on my hard drive, but not another? I'm using OSX 10.2.8 on a G4 Mac and Rev 2.2 Is there a rule that limits how many folders away a file can be? Rich Lague On Sunday, April 18, 2004, at 10:15 AM, Klaus Major wrote: answer file "Import text from what file:" of type "TEXT" if it is empty then put "Bingo!" into field "Field 1" exit to top else put URL("file:" & it) into field "Field 1" end if ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
basic put URL question
I can't seem to make Rev retrieve text and put it in a field. When I use: [put URL "file:/Users/laguer/Documents/Revolutioní/exp í/test.2" into field "Field 1"] All I get is a blinking cursor in Field 1. I checked the path file by using the "answer file" cmd: answer file "Import text from what file:" of type "TEXT" if it is empty then put "Bingo!" into field "Field 1" exit to top else put it into field "Field 1" end if When I use this and select the file "test.2", I get the path to the file "test.2" in Field 1, not the contents of the file. It doesn't work the other direction either. When I try to use the script: put "Bingo!" into URL "file://Users/laguer/Documents/Revolutioní/exp í/test.2.txt" There is no change in the file test.2. So, I suspect that I'm doing something very basic wrong...but what? Thanks, Rich Lague ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution