Making Real Stack invisible

2008-09-22 Thread Joe Lewis Wilkins
Yeah, I'm a nuisance! (smile) Now that I have a Splash Screen stack as a standalone, I'd like to make the real stack that it will open invisible so the user is not even aware that there is one. I know there used to be a way to may files invisible from the Finder, but I no longer find this

Re: Making Real Stack invisible

2008-09-22 Thread Terry Judd
Hi Joe - do you mean that the file is invisible to the user and the stack is visible or vice versa? If it's the former then the filename should begin with a period (.) If it's the latter then just use... open inv stack myStack HTH, Terry... On 22/9/08 4:23 PM, Joe Lewis Wilkins [EMAIL

Re: Making Real Stack invisible

2008-09-22 Thread Joe Lewis Wilkins
Thanks, Terry, Yeah, I wanted it to be invisible to the user, and I forgot about the period thing, but that probably doesn't work on PCs anyway. And it changes the name of the file, so I doubt it would work. Hmn! I wonder, if the user doesn't have Revolution would clicking on the real

Port Number for MYSQL - using MAMP

2008-09-22 Thread Stephen Barncard
Quick question. I've been using a local MySQL distribution on my machine (G5 dual tower running 10.5.5) and it's worked ok . It was harder on Leopard to install (had to 'make' it) but I've worried about dealing with it in the future and at the current time, I can't shut it down, the server

Re: Port Number for MYSQL - using MAMP

2008-09-22 Thread Mark Schonewille
Hi Stephen, The server control panel didn't work on my Mac Intel with Leopard either. I re-installed the 64-bit version of MySQL and the latest version of the control panel and everything worked fine again. Without error message, there is little I can say about the inability to connect.

Re: Port Number for MYSQL - using MAMP

2008-09-22 Thread Malte Brill
Hi Stephen, I use a MAMP server to test one of my applications here. Though I do not use trevors lib, but do it all by hand. This line of code lets me connect to the machine: put revOpenDatabase(tDBType,tIP:tPort,tDBName,tUser,tPass) into sDBID - sDBID now holds an integer that can be

Re: Making Real Stack invisible

2008-09-22 Thread Terry Judd
You can always store the 'invisible' stack in a location that isn't obvious to the user (check out the specialFolderPath function) having either cloned and saved an existing substack or written out and saved a stack that you have stored in a custom property. Terry... On 22/9/08 5:05 PM, Joe

Re: Windows Version using Splash Screen

2008-09-22 Thread Sarah Reichelt
It just dawned on me, as I start finalizing things, that my Studio Rev 3.0 will produce a Windows XP compatible standalone of the Splash screen stack, but then I have a problem with having a Windows compatible stack to use with it. How do I get that except by using the Enterprise version of

Re: Windows Version using Splash Screen

2008-09-22 Thread Joe Lewis Wilkins
Thanks, Sarah, but then why do we need the Enterprise Version? Or is it just that you can't work in the IDE under XP unless you have a Windows version of Revolution? This has got me confused once again. Actually, when I made a standalone for Windows of my real stack, before trying the

Re: Making Real Stack invisible

2008-09-22 Thread Joe Lewis Wilkins
Thanks for your suggestions, Terry, I still haven't wrestled with the concept of custom property yet. It seems to be very useful, but I've yet to spend enough time with it to understand what it really is. Something like a pointer in other languages, perhaps? I just find the name

Re: Rev 3.0.0 Bulid Standalone fails

2008-09-22 Thread camm29
It's very similar to BUG 3960 on Max OSX. It happens on Windows now ! Regards J. Landman Gay [EMAIL PROTECTED] wrote: Camm29 wrote: Cannot delete the answer dialog and ask dialog stacks that appears from no where ? Ok, try this instead in the message box: put there is a

Re: Rev 3.0.0 Bulid Standalone fails

2008-09-22 Thread camm29
It's very similar to BUG 3960 on Max OSX. It happens on Windows now ! Regards J. Landman Gay [EMAIL PROTECTED] wrote: Camm29 wrote: Cannot delete the answer dialog and ask dialog stacks that appears from no where ? Ok, try this instead in the message box: put there is a

A bit OT: handling multiple users in DB

2008-09-22 Thread Klaus Major
Hi all, this is a bit off topic, but maybe someone can give me some helpful hints. Is someone of you working with databases with multiple users? If yes, how do you handle concurrent transactions? I mean how do you solve the possible overwriting of data when both users work with cursors

Re: Making Real Stack invisible

2008-09-22 Thread Terry Judd
Hi Joe - you could start with the User Guide, which is accessible from the Help menu in Rev. There is a pretty good section on custom properties starting on page 220. Section 7.8.9 explains how to store files in custom properties. Regards, Terry... On 22/9/08 6:24 PM, Joe Lewis Wilkins [EMAIL

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Sarah Reichelt
On Mon, Sep 22, 2008 at 7:46 PM, Klaus Major [EMAIL PROTECTED] wrote: Hi all, this is a bit off topic, but maybe someone can give me some helpful hints. Is someone of you working with databases with multiple users? If yes, how do you handle concurrent transactions? I mean how do you solve

Re: Making Real Stack invisible

2008-09-22 Thread Robert Brenstein
On 22/09/08 at 01:24 -0700 Joe Lewis Wilkins apparently wrote: Thanks for your suggestions, Terry, I still haven't wrestled with the concept of custom property yet. It seems to be very useful, but I've yet to spend enough time with it to understand what it really is. Something like a pointer

AppleScripting RunRev

2008-09-22 Thread Dave
Hi All, I've written a Mac only Stack to make building Standalones Easier. I have the need to build many different applications using the same core stack files but with different UI elements. This works well, except when I come to Script Revolution. I can bring up the Save as

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Stephen Barncard
MySQL will do what you want. It's a black box to store an manupulate data. Most of the time the transactions are so fast, it doesn't matter. In the case of mySQL, it's multi user by design and if one is really worried about it, there's COMMIT and ROLLBACK. SQL Lite is not multi-user. Hi

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Klaus Major
Hi Sarah, On Mon, Sep 22, 2008 at 7:46 PM, Klaus Major [EMAIL PROTECTED] wrote: Hi all, this is a bit off topic, but maybe someone can give me some helpful hints. Is someone of you working with databases with multiple users? If yes, how do you handle concurrent transactions? I mean how

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Luis
Hiya, If you are using SQLite, check Item 5 in: www.sqlite.org/faq.html Cheers, Luis. On 22 Sep 2008, at 10:46, Klaus Major wrote: Hi all, this is a bit off topic, but maybe someone can give me some helpful hints. Is someone of you working with databases with multiple users? If yes,

Re: Making Real Stack invisible

2008-09-22 Thread Stephen Barncard
Just remember the naming rules apply for custom properties as they do for variables. Don't use a word that is used in the Rev environment. Joe, I'd suggest you read Dan Shafer's Scripting conference stack on the topic of custom properties , perhaps you'll look at the whole set.

Re: returning result from a function when the number of items in the result varies

2008-09-22 Thread Trevor DeVore
On Sep 22, 2008, at 12:26 AM, Ken Ray wrote: Has an element in an array been defined yet? put key is among the lines of (the keys of arrayVariable) - true if it has been defined, false if it has not been defined One additional

Re: AppleScripting RunRev

2008-09-22 Thread Scott Rossi
Recently, Dave wrote: Hi All, I've written a Mac only Stack to make building Standalones Easier. I have the need to build many different applications using the same core stack files but with different UI elements. This works well, except when I come to Script Revolution. I can bring up the

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Klaus Major
Hi Stephen, looks like my questions were not clear enough! MySQL will do what you want. Not really ;-) It's a black box to store an manupulate data. Most of the time the transactions are so fast, it doesn't matter. Not really, see below ;-) Scenario: 2 users (A and B) are browsing

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Klaus Major
Hi Luis, Hiya, If you are using SQLite, check Item 5 in: www.sqlite.org/faq.html Thanks, I should have mentioned that I mean MySQL and all other multiuser databases. Cheers, Luis. Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Luis
Hiya, I suppose you could have a column for each, and each entry tagged with the user ID and time. If both values need to be shown you could display the data for both on a table showing the change and the time it was committed. Cheers, Luis. On 22 Sep 2008, at 15:22, Klaus Major

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Klaus Major
Hi Luis, Hiya, I suppose you could have a column for each, and each entry tagged with the user ID and time. If both values need to be shown you could display the data for both on a table showing the change and the time it was committed. Yes, I found a similar solution on the net, but I

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Luis
Hiya, It depends on what your concern is: Do you want to allow them both write access? If they both have the ability to write, then the last to write will be the one visible - This is the standard behaviour. If you want to ensure only one is able to update a field then you lock down

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Klaus Major
Hi Luis, Hiya, It depends on what your concern is: Do you want to allow them both write access? Yep. If they both have the ability to write, then the last to write will be the one visible - This is the standard behaviour. If you want to ensure only one is able to update a field then you

Re: returning result from a function when the number of items in the result varies

2008-09-22 Thread william humphrey
Thanks again. I'm going to fool with. Does an element in an array have a value? -- put arrayVariable[key] is not empty - true if it has a value, false if it does not So far the array is doing exactly what I wanted it to. And it is also

As programming environments get more powerful programers get lazy

2008-09-22 Thread william humphrey
I wonder if it is really bad that the very powerful programming environments let us do stuff we (or at least I) could never have imagined possible before. I'm only saying this because in other forums sometimes people say oh scripting that's not programming. My answer to them is usually Why aren't

Quit Application Menu item problem

2008-09-22 Thread Joe Lewis Wilkins
Hi Gang, Don't know if this is a new issue with 3.0 or not, but when I insert an answer dialog in the Quit menu item, it does not get implemented either in the IDE or the standalone when transfered to the Application Menu. I know I've forgotten something here, but haven't the foggiest

Re: Quit Application Menu item problem

2008-09-22 Thread Stephen Barncard
Once again, the docs are your friend: on shutdownRequest -- confirm with the user: answer question Are you sure you want to quit? with Yes or No if it is Yes then pass shutdownRequest -- allow to quit end shutdownRequest Handle the shutdownRequest message if you want to prevent the user

Re: Quit Application Menu item problem

2008-09-22 Thread Joe Lewis Wilkins
Thanks, Stephen. Dictionary describes it, but not found in the User Guide when search for Shutdown is done, or even Quit where it tells you something, but doesn't explain the shutdownRequest concept which is needed by most I would think. Joe Wilkins On Sep 22, 2008, at 9:53 AM, Stephen

Re: Making Real Stack invisible

2008-09-22 Thread Joe Lewis Wilkins
Thanks, Sarah, Terry and Stephen for all the great help/guidance. Much appreciated. I'm making excellent progress, now! (smile) Joe Wilkins On Sep 22, 2008, at 7:10 AM, Stephen Barncard wrote: Just remember the naming rules apply for custom properties as they do for variables. Don't use a

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Josh Mellicker
One way is to put a dateTimeLastModified column in every table, and make it a timestamp data type so it automatically gets updated when the record does. Then, when you query data, make sure you get that value and save it locally. Then, when the user goes to Save, check the local and

Re: Making Real Stack invisible

2008-09-22 Thread Joe Lewis Wilkins
Ooops, Robert - forgot to thank you as well. Great stuff. Joe Wilkins On Sep 22, 2008, at 10:16 AM, Joe Lewis Wilkins wrote: Thanks, Sarah, Terry and Stephen for all the great help/guidance. Much appreciated. I'm making excellent progress, now! (smile) Joe Wilkins -- Please avoid sending

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Klaus Major
Hi Josh, One way is to put a dateTimeLastModified column in every table, and make it a timestamp data type so it automatically gets updated when the record does. Then, when you query data, make sure you get that value and save it locally. Then, when the user goes to Save, check the local

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Andre Garzia
Klaus, if you just want to track changes, like, hey, my cursor is outdated, need to fetch again!, use a table for revisions, this table has at least three fields, user who made the change, SQL used for the change, hash or unique id for the revision. When anyone is trying to write, read, or

Re: Quit Application Menu item problem

2008-09-22 Thread Stephen Barncard
I agree, it should be called quitRequest. Shut down to me means shutting down the computer. I can't tell you how scared I was at first of something called destroystack in Transcript, (er...Revolution). Thanks, Stephen. Dictionary describes it, but not found in the User Guide when search

Re: Quit Application Menu item problem

2008-09-22 Thread Joe Lewis Wilkins
I'm with you. Destroy? Wow! I'm quivering in my boots! Joe Wilkins On Sep 22, 2008, at 10:24 AM, Stephen Barncard wrote: I agree, it should be called quitRequest. Shut down to me means shutting down the computer. I can't tell you how scared I was at first of something called destroystack

Re: AppleScripting RunRev

2008-09-22 Thread Ian Wood
On 22 Sep 2008, at 14:28, Dave wrote: Hi All, I've written a Mac only Stack to make building Standalones Easier. I have the need to build many different applications using the same core stack files but with different UI elements. This works well, except when I come to Script Revolution.

Re: AppleScripting RunRev

2008-09-22 Thread Andre Garzia
I always thought go to folder was CMD+SHIFT+G that is what I use... it works the same! On Mon, Sep 22, 2008 at 2:35 PM, Ian Wood [EMAIL PROTECTED] wrote: On 22 Sep 2008, at 14:28, Dave wrote: Hi All, I've written a Mac only Stack to make building Standalones Easier. I have the need to

Re: As programming environments get more powerful programers get lazy

2008-09-22 Thread Andre Garzia
William, I was one of those that kept loosing my code. The guideline I use these days is: * Utility code that is related to the application goes into the stack script * Generic code that can be used by any application goes into a library stack * Cards and controls only got event code, like

Re: As programming environments get more powerful programers get lazy

2008-09-22 Thread Richard Gaskin
william humphrey wrote: I wonder if it is really bad that the very powerful programming environments let us do stuff we (or at least I) could never have imagined possible before. I'm only saying this because in other forums sometimes people say oh scripting that's not programming. My answer to

Re: Uncomment in 3.0

2008-09-22 Thread Devin Asay
On Sep 21, 2008, at 4:53 PM, James Hurley wrote: On 9/20/08 10:38 PM, James Hurley [EMAIL PROTECTED] wrote: Anyone else having this problem? Command/Shift - does not uncommnent the selected lines as in RR 2.x, at least on the Mac. The associated menu item does function, i.e.

Re: As programming environments get more powerful programers get lazy

2008-09-22 Thread william humphrey
I can't wait to read your piece on structure. I imagine it will take a while to write as you will need a simple explanation on how to make a library. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe,

Re: As programming environments get more powerful programers get lazy

2008-09-22 Thread william humphrey
*on* controlKeyDown pKey *switch* pKey *case* s answer s was selected *break* *case* c *answer* c was selected *break* *end* *switch* *end* controlKeyDown ___ use-revolution mailing list

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Klaus Major
Hi Andre, Klaus, if you just want to track changes, like, hey, my cursor is outdated, need to fetch again!, use a table for revisions, this table has at least three fields, user who made the change, SQL used for the change, hash or unique id for the revision. When anyone is trying to write,

on controlkeydown very slow

2008-09-22 Thread william humphrey
I'm doing the following and it is slow (takes a noticeable second or two) *on* controlKeyDown pKey *switch* pKey *case* s answer s was selected *break* *case* c *answer* c was selected *break* *end* *switch* *end* controlKeyDown Also it

Re: As programming environments get more powerful programers get lazy

2008-09-22 Thread Mikey
Man, if you think that the flexibility to put code all over the message hierarchy causes problems (which, by the way, can be overcome by using the Find function - at least it's never been any more of a problem for me than that), you ought to try to read the monolithic CODE (there's a reason why

Re: As programming environments get more powerful programers get lazy

2008-09-22 Thread william humphrey
I use BBedit and love it. The other complaint I get is that RunRev doesn't have libraries of code to use. I believe that those libraries are gradually being built though. I tried Scripter's scrapbook once and I should probably try it again as that sounds like it could be a repository of re-usable

Re: Windows Version using Splash Screen

2008-09-22 Thread Sarah Reichelt
On Mon, Sep 22, 2008 at 6:16 PM, Joe Lewis Wilkins [EMAIL PROTECTED] wrote: Thanks, Sarah, but then why do we need the Enterprise Version? Or is it just that you can't work in the IDE under XP unless you have a Windows version of Revolution? This has got me confused once again. Actually, when I

Re: A bit OT: handling multiple users in DB

2008-09-22 Thread Bob Sneidar
I use a technique I learned from a well known dBase application called SBT. I add a numeric signature field (usually 2 digits) to every master table (defined as any table that is always updated whenever a transaction occurs). When a user opens a record for the purposes of editing, I get

RE: As programming environments get more powerful programers get lazy

2008-09-22 Thread Randall Reetz
I understand and appreciate object/script binding in a message based environment. But why cant the script editor list all of the scripts for easy access and comparison? -Original Message- From: william humphrey [EMAIL PROTECTED] To: How to use Revolution use-revolution@lists.runrev.com

Placing and removing Groups with 3.0

2008-09-22 Thread Joe Lewis Wilkins
Hi Gang, I'm having no success placing a group or removing a group using the place and remove commands from the msg box. Going to each blankety- blank card and choosing the menu items does work, however, but no command key equivalents and a card at a time. Tedious. Would have been better

Re: on controlkeydown very slow

2008-09-22 Thread Stephen Barncard
Not sure what you're trying to do here, but I'm assuming that you're experimenting with some rev parts in your lab stack. Answer is not so great for testing -- slow-- in this case as it launches a new stack every time (the Answer Stack in the IDE). Why not just use the message box or a field

User Guide definitions combine to produce a splitting headache

2008-09-22 Thread Jim Lambert
From 'Revolution User Guide 3.0' page 183 combine convert text to an array using delimiters that you define ... split converts an array into text, placing delimiters you separate between the elements The definitions are reversed, right? Jim Lambert

Re: User Guide definitions combine to produce a splitting headache

2008-09-22 Thread Joe Lewis Wilkins
Hi Jim, I hate to rain on your parade; but, IMHO, I think they have it correct as you've shown them. Joe Wilkins On Sep 22, 2008, at 3:52 PM, Jim Lambert wrote: From 'Revolution User Guide 3.0' page 183 combine convert text to an array using delimiters that you define ... split converts

Re: User Guide definitions combine to produce a splitting headache

2008-09-22 Thread -= JB =-
The definitions have it reversed on my computer. -=JB=- On Sep 22, 2008, at 3:52 PM, Jim Lambert wrote: From 'Revolution User Guide 3.0' page 183 combine convert text to an array using delimiters that you define .. split converts an array into text, placing delimiters you separate between

A bit OT: handling multiple users in DB

2008-09-22 Thread Kurt Kaufman
Bob Sneidar wrote: ...Sorry for the lengthy post. Not at all! This is a fascinating discussion. I was under the false impression that the automatic record-locking mechanisms would handle everything for me. Thanks for setting me straight! Looks like I have a lot more to learn before

Re: Placing and removing Groups with 3.0

2008-09-22 Thread Sarah Reichelt
I'm having no success placing a group or removing a group using the place and remove commands from the msg box. Going to each blankety-blank card and choosing the menu items does work, however, but no command key equivalents and a card at a time. Tedious. Would have been better had I created

Re: Placing and removing Groups with 3.0

2008-09-22 Thread Joe Lewis Wilkins
Sarah, I had tried that earlier, but since I've got everything fixed now, I probably won't check it out again very soon. (smile) However, I was using a card number in a repeat loop instead of a name, so maybe it didn't like that. Thanks, as usual, for your consistent patience, Joe

Re: User Guide definitions combine to produce a splitting headache

2008-09-22 Thread Jim Ault
The definitions are reversed, right? Yes, the split command creates the array and the combine command converts an array to text put vanilla' tab ice cream into banana put chocolate tab ice cream into line 2 of banana put dairy tab whipped cream into line 3 of banana put strawberry tab

Re: User Guide definitions combine to produce a splitting headache

2008-09-22 Thread Chipp Walters
I sure wish they would allow network aware annotations on those help files. There are many times a quick note or example would make something much clearer. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to

Re: User Guide definitions combine to produce a splitting headache

2008-09-22 Thread Jim Ault
Whoops, sorry, line numbers were copied and not updated correctly put vanilla' tab ice cream into banana put chocolate tab ice cream into line 2 of banana put dairy tab whipped cream into line 3 of banana put strawberry tab ice cream into line 4 of banana put fudge tab topping into

Re: User Guide definitions combine to produce a splitting headache

2008-09-22 Thread Joe Lewis Wilkins
No Doubt you're right, Jim; but sure not very intuitively worded. Seems like it should be the way the Guide now says it is. I guess it depends on what you think the words split and combine imply. Joe Wilkins On Sep 22, 2008, at 5:25 PM, Jim Ault wrote: The definitions are reversed, right?

Re: Placing and removing Groups with 3.0

2008-09-22 Thread Chipp Walters
Joe, check out my recent announcment about altGroupManager. It should do what you want. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

[ANN] Group Manager plugin (beta)

2008-09-22 Thread Chipp Walters
This is a rework of an older plugin with new interface and removal of frontscripts. Some other GUI features have been added such as auto-hiliting and scrolling of the Groups List. It only does one thing, but it does it well. It allows you to see all the groups which exist in a stack, and whether

Re: [ANN] Group Manager plugin (beta)

2008-09-22 Thread Joe Lewis Wilkins
Says no such card when pasted into msg box. Joe Wilkins On Sep 22, 2008, at 7:16 PM, Chipp Walters wrote: This is a rework of an older plugin with new interface and removal of frontscripts. Some other GUI features have been added such as auto- hiliting and scrolling of the Groups List. It

re. Repeat structure

2008-09-22 Thread [EMAIL PROTECTED]
Context: I am trying to make a repeat structure that deals with an unknown number of images located along a given line. The line is the diagonal of a currently selected group. How can I define that line and does it have to be actually be drawn before referring to it? Thank you Colin,

Re: [ANN] Group Manager plugin (beta)

2008-09-22 Thread Chipp Walters
OOPS. Try: go to URL(http://www.gadgetplugins.com/altplugins/altGroupMgr.rev;) On Mon, Sep 22, 2008 at 9:55 PM, Joe Lewis Wilkins [EMAIL PROTECTED] wrote: Says no such card when pasted into msg box. Joe Wilkins ___ use-revolution mailing list

Stopping A Stack From Starting Up in the IDE

2008-09-22 Thread Len Morgan
I'm trying to debug a stack and I'd like to stop not have it come up running when I open it from the IDE. Other than setting a breakpoint in the preOpenStack script, is there a way to keep it from executing code when it's loaded? len morgan ___

Re: User Guide definitions combine to produce a splitting headache

2008-09-22 Thread Jim Ault
I guess I have always thought of it as.. Split a text block into compartments of keys and values (an array) Combine all the compartments of an array into one text block, and now you can use Rev chunking commands such as word 2 of line 5 of textBlockLines put the number of lines in

Re: User Guide definitions combine to produce a splitting headache

2008-09-22 Thread Joe Lewis Wilkins
Whereas I thought that splitting was breaking up the array into separate items; and combine was building the array from a bunch of items. Tomato, Tomahto, etc. One of the reasons that I hate the English language - maybe all of them - is our propensity to use the same word differently