Re: Script Reporter v1.1 crashes

2010-05-25 Thread JosepM

Hi Sarah,

Still freezing... it's inside the on GetScripts to show all the  
scripts.

on GetScripts
set the itemdelimiter to Tab
put empty into fld AllScripts

-- Sarah: 9th Feb 2009
-- changed to using plain text, not htmltext and then using Rev 3  
script colorization

repeat with i = 1 to the number of lines in fld Display
.
.
.end GetScripts

The the last repeat seems don't work..


Salut,
Josep

El 25/05/2010, a las 4:19, Sarah Reichelt-2 [via Runtime Revolution]  
escribió:

 I don't remember this script, but I suggest adding a check for tScript
 being empty.

repeat while the number of words in line -1 of tScript = 0
delete last line of tScript
if tScript is empty then exit repeat
end repeat

 That might fix it.

 Cheers,
 Sarah


 On Tue, May 25, 2010 at 9:10 AM, JosepM [hidden email] wrote:

 
  Hi,
 
  The same for me, seems that enter into infite loop here:
 
  Â -- Sarah: remove any blank lines at the end  make sure there  
 are enough
  to space entries
  Â  Â  Â  Â repeat while the number of words in line -1 of tScript  
 = 0
  Â  Â  Â  Â  Â  Â delete last line of tScript
  Â  Â  Â  Â end repeat
 
 
  Any idea?
 
  Salut,
  Josep
  --
  View this message in context: 
  http://runtime-revolution.278305.n4.nabble.com/Script-Reporter-v1-1-crashes-tp2228724p2229332.html
  Sent from the Revolution - User mailing list archive at Nabble.com.
  ___
  use-revolution mailing list
  [hidden email]
  Please visit this url to subscribe, unsubscribe and manage your  
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-revolution
 
 ___
 use-revolution mailing list
 [hidden email]
 Please visit this url to subscribe, unsubscribe and manage your  
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution


 View message @ 
 http://runtime-revolution.278305.n4.nabble.com/Script-Reporter-v1-1-crashes-tp2228724p2229415.html
 To unsubscribe from Re: Script Reporter v1.1 crashes, click here.



-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Script-Reporter-v1-1-crashes-tp2228724p2229569.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


Re: Binary files inconsistency

2010-05-25 Thread stephen barncard
Different than other file systems. Pages and keynote documents are not files
but packages with many files inside. MacOS Finder abstracts them as
application or document units but they must be handled differently.
This is also true for complex textedit documents (.rtfd) and some documents
saved by EyeTv, iMovie, etc.



On 24 May 2010 22:44, Bill Vlahos bvla...@mac.com wrote:

 The next version of InfoWallet will support attaching files that are
 compressed and encrypted when stored. I've noticed that it works correctly
 with some files but not others.

 The script below takes a binary file, compresses it, decompresses it, and
 then saves it back to disk. I've skipped the encryption part for this recipe
 because it behaves the same way. It works correctly with .jpg, pdf, and .doc
 files but not .pages or keynote. Make a new stack and put the following
 script in a button.

 on mouseUp
   answer file Select a file:
   if it is not empty then
  put it into lFileToRead
  put URL (binfile:  lFileToRead) into vFile
  put compress(vFile) into vFile
  set the itemdelimiter to tab
  ask file Select destination to save file: with the last item of
 lFileToRead
  if it is not empty then
 put it into vFilePath
 put decompress(vFile) into vFile
 put vFile into URL (binfile:  vFilePath)
 set the filetype to 
  end if
   end if
 end mouseUp

 The saved Pages or Keynote files have zero length. Why is that and how do I
 make this work with any file?


 Bill Vlahos
 _
 InfoWallet (http://www.infowallet.com) is about keeping your important
 life information with you, accessible, and secure.

 ___
 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
San Francisco
___
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: Implementing a library of behavior buttons across multiple applications

2010-05-25 Thread Mark Schonewille

Hi Peter,

No, you don't need to include the operating system's path to the stack  
file. For example, the following is a correct reference for a  
behavior: button id 1015 of stack Untitled 1


You can keep one copy of your stack with parent objects on your hard  
disk and add this stack to the stackfiles property of the mainstack of  
your project. When you build the standalone, the stack will be copied  
into your standalone and above reference will still work.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Economy-x-Talk is always looking for new projects. Contact me for a  
quote http://economy-x-talk.com/contact.html
Download Clipboard Link http://clipboardlink.economy-x-talk.com and  
share the clipboard of your computer over the local network.


On 24 mei 2010, at 22:03, Peter Haworth wrote:

I'm trying to figure out the best way to make a library of behavior  
buttons available to multiple applications.


I originally developed the library as a substack of my application  
but would now like to move it to a separate .rev file and refer to  
it from other applications.  Seems like that gives me a single  
maintenance point - fix any behavior problems in the library and  
it's automatically fixed in all applications.


However, it's feeling like this isn't a practical solution.  As I  
understand it, the behavior property of an object uses the long id  
of the button it refers to and I think the long id includes the  
operating system path to the .rev file that the button is in.


Just for development purposes, I have three different folders I use  
- one for code and test, another for QA, and anther for the final  
application.  SO if I set the behavior to point to my library of  
behaviors in the code and test folder, then move the app's .rev file  
to the QA folder, the behavior properties will still point to the  
behavior library of in the code and test folder.  And so on.


I'm sure there much more experienced users than me out there who  
have run into this problem and hoping they can share how they dealt  
with it.  Only thing I can think of is a script that runs during  
installtion to go find all controls with a behavior property set and  
change it to the correct one.


Pete Haworth


___
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: RevBrowserPrint

2010-05-25 Thread Robert Mann

I am looking for a solution to print pdf files from the browser.

problems

to summit up regarding the limitations of revBrowserPrint command :

1) No background print process : revbrowser systematicaly calls the dialog,
no parameters can be passed and you get no answer about what has been going
on.

In my case, I wanted preset pdf printing and give a file name. Out it goes!
(why are so many basic needs only fullfilled to 90% by runrev
implementation... begining tro drive me nuts and doubtful!) 


2) Not reliable for flash content : doe not seem to print out flash
content... which is a serious problem for a lot of sites.. and revBrowser is
often crashed on intensive flash based sites when revBrowserPrint is called
(my experience on macBook mac os x 10.5.8).

3) Sometimes prints the whole html page, good, but other times only the
visible portion of the browser, like a picture, and that is no good! I did
not quite get the rationale of it (when exacly and why..). it seems it may
be linked with 2) maybe trying to offer an alternate view when not able to
print the flash content!?

to be a little bit positive, I'll have to troddle on and see what can be
done with safari scripting but there goes the windows compatibility away and
the whole point of using runrev as a multi-platform dev tool.. Sometimes I
do have the xTalk blues or is it the runrev blues!?? 



-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/RevBrowserPrint-tp1564242p2229797.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


Re: Editing Text Selections?

2010-05-25 Thread DunbarX
I think I see what you are trying to achieve. But even if Rev supported 
discontinuous selections in an editable field, how would you actually select 
the various chunks? Normally, the current selection is released when you click 
somewhere else in the field.

But if you did it by holding down the commandKey, which also generates a 
mouseUp message, then couldn't you:

on mouseUp
set the textstyle of the selectedChunk to bold
storeHTMLTextSomeWhere
end mouseUp

I am interested to see how the multiple selections are actually made if 
this is a new feature in an upcoming release. CommandKey as in a list field?

Craig Newman
___
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


table cell text wrapping?

2010-05-25 Thread Kee Nethery
Can I configure a table so that if the text for a cell is too long, it will 
wrap within that cell (pushing that row to be taller so that multiple lines of 
text get displayed)?

If so, how? The wrap checkbox appears to be disabled when I'm dealing with a 
table.

Kee___
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: table cell text wrapping?

2010-05-25 Thread Josh Mellicker

Not with the standard table, but you can with a data grid form:

http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagrid/lessons/3787-How-Do-I-Create-a-Form-with-Variable-Line-Heights-


On May 25, 2010, at 8:26 AM, Kee Nethery k...@kagi.com wrote:

Can I configure a table so that if the text for a cell is too long,  
it will wrap within that cell (pushing that row to be taller so that  
multiple lines of text get displayed)?


If so, how? The wrap checkbox appears to be disabled when I'm  
dealing with a table.


Kee___
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: use-revolution Digest, Vol 80, Issue 81

2010-05-25 Thread Peter Haworth
I'm glad to gear such a simple solution!  My concerns were all based  
on the following in the dictionary entry for behavior:


The behavior property is a reference to a button containing the  
script to use. It is in the format of a long ID.


I guess I need to be more careful about believing what the dictionary  
says!


Pete Haworth


On May 25, 2010, at 12:57 AM, use-revolution-requ...@lists.runrev.com  
wrote:



Hi Peter,

No, you don't need to include the operating system's path to the stack
file. For example, the following is a correct reference for a
behavior: button id 1015 of stack Untitled 1

You can keep one copy of your stack with parent objects on your hard
disk and add this stack to the stackfiles property of the mainstack of
your project. When you build the standalone, the stack will be copied
into your standalone and above reference will still work.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Economy-x-Talk is always looking for new projects. Contact me for a
quote http://economy-x-talk.com/contact.html
Download Clipboard Link http://clipboardlink.economy-x-talk.com and
share the clipboard of your computer over the local network.

On 24 mei 2010, at 22:03, Peter Haworth wrote:


I'm trying to figure out the best way to make a library of behavior
buttons available to multiple applications.

I originally developed the library as a substack of my application
but would now like to move it to a separate .rev file and refer to
it from other applications.  Seems like that gives me a single
maintenance point - fix any behavior problems in the library and
it's automatically fixed in all applications.

However, it's feeling like this isn't a practical solution.  As I
understand it, the behavior property of an object uses the long id
of the button it refers to and I think the long id includes the
operating system path to the .rev file that the button is in.

Just for development purposes, I have three different folders I use
- one for code and test, another for QA, and anther for the final
application.  SO if I set the behavior to point to my library of
behaviors in the code and test folder, then move the app's .rev file
to the QA folder, the behavior properties will still point to the
behavior library of in the code and test folder.  And so on.

I'm sure there much more experienced users than me out there who
have run into this problem and hoping they can share how they dealt
with it.  Only thing I can think of is a script that runs during
installtion to go find all controls with a behavior property set and
change it to the correct one.

Pete Haworth




___
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


[OT] Plovdiv . . . / hard CASE

2010-05-25 Thread Richmond Mathewson

 Somebody on this Use-List surmised that Plovdiv, Bulgaria might
be rather like Madison, Wisconsin (or thereabouts).

Going in search of a new PATA 160 GB disk (not that
easy now that everybody except Richmond has
gone SATA) I ended up parking my car next to
this place:

http://www.facebook.com/pages/Plovdiv/backside-cafe/153149382431

Had no time so didn't pop in for a drink; but fell for it
instantly: I mean, with a name like that, who wouldn't . . . :)
 

Tonight I am disciplining myself to work through my CASE problem;
where a CASE loop goes AWOL when the stack becomes a standalone.

Theories so far:

case 101
if the vis of group CONZ is true then
send mouseUp to img 2327k
break
 else
send mouseUp to img f2310.png
break
end if

doesn't hold; so . . .  Perhaps:

case 101
if the vis of group CONZ is true then
send mouseUp to img 2327k
break
   end if
   if the vis of group CONZ is false then
send mouseUp to img f2310.png
break
end if

(err . . . tried that one last night; no joy)

case 101
if the vis of group CONZ is true then
send mouseUp to img 2327k
break
   end if
   if the vis of group VWLZ is true then
send mouseUp to img f2310.png
break
end if

(groups CONZ and VWLZ flip their visibility back and forth)

if this doesn't work I will go for a pair of off-screen images that
VIS in-sync with the groups and pop them into the case statement.

Will keep you posted.

--

May yet end up walking across town to the Backside Cafe if things get 
too, too other . . .  :(


At least I might learn some Turkish; after all, having lived on-and-off 
for over 10 years
in a town that was part of the Ottoman Empire for some 500 years, and 
where 25% of
the population are either Turkish-speaking ethnic Turks or 
Turkish-speaking ethnic

Romanies it is a little bit disgraceful I have not a word of Turkish.

Richmond.
___
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: use-revolution Digest, Vol 80, Issue 81

2010-05-25 Thread Richard Gaskin

Peter Haworth wrote:


I'm glad to gear such a simple solution!  My concerns were all based
on the following in the dictionary entry for behavior:

The behavior property is a reference to a button containing the
script to use. It is in the format of a long ID.

I guess I need to be more careful about believing what the dictionary
says!

Pete Haworth


The docs are kinda correct, but just don't tell the whole story (I'm 
cc'ing support here so the Dictionary entry can be updated to reflect 
the full story):


You can use the long ID of a button to set the value of the behavior 
property for an object, but once it's set it gets stored using only the 
short name of the stack the behavior button is in.


This is explained more fully in the ParentScriptNotes.txt document 
included with the Rev install:



   PARENT SCRIPTS - RESOLUTION

   A control's parent script reference is saved in the stackfile
   as three pieces of information:
 1) button id
 2) stack name
 3) mainstack name (if stack is substack)
   This is the minimum required information to uniquely identify
   a button within a running Revolution environment.

   Immediately after loading a stack file, an attempt is made to
   resolve all parentScript references - the engine acts as if
   it constructs a control reference:
 button id id of stack stack name [ of stack mainstack name ]
   And attempts to access it. Thus, the stackFiles property will be
   searched as appropriate and any needed stacks will be loaded.

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: Remote SQL databases

2010-05-25 Thread Bob Sneidar
All well and good... so long as the database DOING the JOIN knows about the 
database it is joining to. In my case, this is not so. The joining database has 
no access to the related database. Thanks for the help tho. It's still an 
education. 

Bob


On May 24, 2010, at 9:00 PM, Bob Cole wrote:

 I am not a MySQL expert but I have found that it is possible to join 
 different databases, each with various tables. 
 The trick is to use the database name to fully qualify the table and item 
 such as:
   SELECT db1.table1.item1, db2.table2.item1 FROM db1.table1, db2.table2 WHERE 
 ...
 
 Here is a sample that I have used successfully:
   put SELECT  db1.table1.date,  into tSQLcommand
   put db2.table2.type, FORMAT(db2.table2.amount,2),  after tSQLcommand
   put db1.table1.code1  after tSQLcommand
   put FROM db1.table1  after tSQLcommand
   put INNER JOIN db2.table2 ON db1.table1.code1 = db2.table2.code2  after 
 tSQLcommand
   put WHERE db2.table2.amount  1.00  after tSQLcommand
   put ORDER BY db1.table1.date;  after tSQLcommand 
   put revDataFromQuery(tab, return, tConId, tSQLcommand) into tItems
 
 I did not find it necessary to give the databases alias names.
 In my situation, both databases are on the same machine and can be accessed 
 using the same username/password.
 Hope this helps.
 Bob
 
 
 Date: Sun, 23 May 2010 18:19:24 -0300, From: Andre Garzia 
 an...@andregarzia.com
 Subject: Re: Remote SQL databases
 
 I did it on my 6k thousand table database...
 
 It works fine for us.
 
 I have something like
 
 select Database1.* from DatabaseName1.Table1 as Database1,
 DatabaseName2.Table2 ...
 
 On Sun, May 23, 2010 at 4:34 PM, Mark Wieder mwie...@ahsoftware.net wrote:
 
 Bob-
 
 Sunday, May 23, 2010, 12:04:03 PM, you wrote:
 
 Oh hello! You are saying you CAN do a join on a table that is not in
 the same database?
 
 Well, I haven't tried it, bu Mark S. implied that it was possible with
 two different aliases...
 
 --
 -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: Script Reporter v1.1 crashes

2010-05-25 Thread Bob Sneidar
Is Display a keyword now? Try enclosing the field name in quotes. I make it a 
habit to do so to avoid the possibility of getting it confused with a keyword 
or a variable. 

Bob


On May 24, 2010, at 11:37 PM, JosepM wrote:

 
 Hi Sarah,
 
 Still freezing... it's inside the on GetScripts to show all the  
 scripts.
 
 on GetScripts
set the itemdelimiter to Tab
put empty into fld AllScripts
 
-- Sarah: 9th Feb 2009
-- changed to using plain text, not htmltext and then using Rev 3  
 script colorization
 
repeat with i = 1 to the number of lines in fld Display
 .
 .
 .end GetScripts
 
 The the last repeat seems don't work..
 
 
 Salut,
 Josep
 
 El 25/05/2010, a las 4:19, Sarah Reichelt-2 [via Runtime Revolution]  
 escribió:
 
 I don't remember this script, but I suggest adding a check for tScript
 being empty.
 
   repeat while the number of words in line -1 of tScript = 0
   delete last line of tScript
   if tScript is empty then exit repeat
   end repeat
 
 That might fix it.
 
 Cheers,
 Sarah
 
 
 On Tue, May 25, 2010 at 9:10 AM, JosepM [hidden email] wrote:
 
 
 Hi,
 
 The same for me, seems that enter into infite loop here:
 
 Â -- Sarah: remove any blank lines at the end  make sure there  
 are enough
 to space entries
 Â  Â  Â  Â repeat while the number of words in line -1 of tScript  
 = 0
 Â  Â  Â  Â  Â  Â delete last line of tScript
 Â  Â  Â  Â end repeat
 
 
 Any idea?
 
 Salut,
 Josep
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/Script-Reporter-v1-1-crashes-tp2228724p2229332.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 ___
 use-revolution mailing list
 [hidden email]
 Please visit this url to subscribe, unsubscribe and manage your  
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 ___
 use-revolution mailing list
 [hidden email]
 Please visit this url to subscribe, unsubscribe and manage your  
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 View message @ 
 http://runtime-revolution.278305.n4.nabble.com/Script-Reporter-v1-1-crashes-tp2228724p2229415.html
 To unsubscribe from Re: Script Reporter v1.1 crashes, click here.
 
 
 
 -- 
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/Script-Reporter-v1-1-crashes-tp2228724p2229569.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: Script Reporter v1.1 crashes

2010-05-25 Thread Richard Gaskin

Andrew Kluthe wrote:

 Richard Gaskin wrote:
 What do you use that output for?

 There may be other ways to solve the root problem

 I just want to look off of them to use as a guide for doing a re-write.

Thanks.

I ask because I used to write script dumpers for every new xTalk I 
picked up, but over the years I found the workflow involving them less 
effective than looking at the problem sort of inside-out:  rather than 
taking scripts out of their context where they live and where I could 
work on them directly, I've become more interested in exploring ways to 
find what I'm looking for in that native context.


Can you tell us a bit more about this review process and the scope of 
the rewrite?


I wonder if some of my script searching tools may be able to help.

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: Remote SQL databases

2010-05-25 Thread Mark Wieder
Bob-

Monday, May 24, 2010, 9:00:59 PM, you wrote:

 I am not a MySQL expert but I have found that it is possible to
 join different databases, each with various tables. 

Bob S.'s main issue here is that he's trying to join two different
*types* of databases, a MySQL database and a SQLite database. That
can't be done with an SQL statement because the SQL command is
performed by the database itself. So if you send a SQL command to the
MySQL database it's getting executed by the MySQL engine, not by rev.
The MySQL engine has no knowledge of any other databases, and so it
would fail. I think the only way around this is to issue two SQL
commands, one to MySQL, one to SQLite, then take the recordsets and
mangle them yourself, pretending that you're the cross-db-type engine.
Could get ugly.

-- 
-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


Re: [OT] Plovdiv . . . / hard CASE

2010-05-25 Thread J. Landman Gay

Richmond Mathewson wrote:


Tonight I am disciplining myself to work through my CASE problem;
where a CASE loop goes AWOL when the stack becomes a standalone.


There's not enough info to say what's going wrong, but you'd save 
yourself a lot of time if you set a breakpoint near the top of the 
switch structure and step through it line by line. That would show you 
whether a case instance is executing or not, which line of the script 
isn't activating, what the state of the variables are, whether or not 
the engine thinks a group is visible, and so forth. Without that, it's 
just stabbing in the dark trying to guess what's happening.


--
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


Re: [OT] Plovdiv . . . / hard CASE

2010-05-25 Thread Mark Wieder
Jacque-

Tuesday, May 25, 2010, 10:25:49 AM, you wrote:

 There's not enough info to say what's going wrong, but you'd save
 yourself a lot of time if you set a breakpoint near the top of the 
 switch structure and step through it line by line. That would show you

Unless you've got some trick in mind I don't know about, that isn't
going to help Richmond in a standalone...

-- 
-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


Re: Listing available MYSQL databases

2010-05-25 Thread Joe F.
This script would make promysql evaluate to mysqlshow - u  nrl -pnrl1

On May 23, 2010, at 3:36 PM, Glen Bojsza wrote:

 Hello,
 
 Has anyone successfully used either open process or get shell() to list
 the databases available on a machine.
 
 From the command line I do the following and get the results I am looking
 for:
 
 [...@localhost ~]$ mysqlshow -u nrl -p
 Enter password:(I enter the
 password nrl1 here)
 ++
 | Databases  |
 ++
 | information_schema |
 | lab0624|
 | test   |
 ++
 [...@localhost ~]$
 
 My script is as follows:
 on mouseUp
   put mysqlshow - u  nrl -p into promysql
   put nrl1 after promysql
   get shell(promysql)
   put it
   write quit to process promysql
   close process promysql
 end mouseUp
 
 The resulting message is:
 
 mysqlshow: Access denied for user 'nrl'@'%' to database '-'
 
 I am currently logged in as nrl in the Fedora 11 system and running Rev
 under that user name.
 
 open process lead to the same results?
 
 thanks,
 
 Glen
 ___
 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: Implementing a library of behavior buttons across multiple applications

2010-05-25 Thread Peter Haworth
Thanks for the explanation Richard.  This stuff isn't made any easier  
by the fact that there are multiple names available for the same thing  
- behavior=parentScript apparently.


Getting back to Mark's answer and the use of stack files, I see two  
separate places where additional stack files can be specified - the  
stackFiles property of the main Stack (or the equivalent pane in the  
main stack inspector), and the Stacks pane of the Standalone  
Application Settings which gives rise to the question, what is the  
relationship between these two settings? Does one override the other?   
Is stackFiles operative for the development environment only and the  
standalone setting for standalone applications only?


Pete Haworth

On May 25, 2010, at 10:00 AM, use-revolution-requ...@lists.runrev.com  
wrote:



Message: 7
Date: Tue, 25 May 2010 09:33:27 -0700
From: Richard Gaskin ambassa...@fourthworld.com
Subject: Re: use-revolution Digest, Vol 80, Issue 81
To: How to use Revolution use-revolution@lists.runrev.com
Cc: Runtime Revolution Support supp...@runrev.com
Message-ID: 4bfbfbd7.7090...@fourthworld.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Peter Haworth wrote:


I'm glad to gear such a simple solution!  My concerns were all based
on the following in the dictionary entry for behavior:

The behavior property is a reference to a button containing the
script to use. It is in the format of a long ID.

I guess I need to be more careful about believing what the dictionary
says!

Pete Haworth


The docs are kinda correct, but just don't tell the whole story (I'm
cc'ing support here so the Dictionary entry can be updated to reflect
the full story):

You can use the long ID of a button to set the value of the behavior
property for an object, but once it's set it gets stored using only  
the

short name of the stack the behavior button is in.

This is explained more fully in the ParentScriptNotes.txt document
included with the Rev install:


   PARENT SCRIPTS - RESOLUTION

   A control's parent script reference is saved in the stackfile
   as three pieces of information:
 1) button id
 2) stack name
 3) mainstack name (if stack is substack)
   This is the minimum required information to uniquely identify
   a button within a running Revolution environment.

   Immediately after loading a stack file, an attempt is made to
   resolve all parentScript references - the engine acts as if
   it constructs a control reference:
 button id id of stack stack name [ of stack mainstack  
name ]

   And attempts to access it. Thus, the stackFiles property will be
   searched as appropriate and any needed stacks will be loaded.

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv


___
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] Plovdiv . . . / hard CASE

2010-05-25 Thread J. Landman Gay

Mark Wieder wrote:

Jacque-

Tuesday, May 25, 2010, 10:25:49 AM, you wrote:


There's not enough info to say what's going wrong, but you'd save
yourself a lot of time if you set a breakpoint near the top of the 
switch structure and step through it line by line. That would show you


Unless you've got some trick in mind I don't know about, that isn't
going to help Richmond in a standalone...



Oh. Oops. Forgot it was a standalone thing. I guess the only recourse 
then is to sprinkle a bunch of answers into the code, i.e., case 101, 
got here, vis is true, etc. Or better, log all that to a text file.


Richmond: there should be no difference between the visibility of a 
group in a stack and in a standalone, so I think something else is going 
on. My first impression was that running cross-platform would mean that 
the keycodes aren't the same across OSs, but if you're running the 
standalone on the same system you developed in, then that's not it.


--
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


Re: Implementing a library of behavior buttons across multiple applications

2010-05-25 Thread Richard Gaskin

Peter Haworth wrote:


Thanks for the explanation Richard.  This stuff isn't made any easier
by the fact that there are multiple names available for the same thing
- behavior=parentScript apparently.


You can safely ignore parentScript.  That was the name that I used 
when I first proposed this feature many years ago, having picked it up 
from meetings with the SuperCard team years earlier when they were 
considering it.


Rev adopted it for an early beta distribution, but by Beta 2 they had 
come up with behavior instead, and noted in the ParentScript Notes 
that parentScript is deprecated; while it's currently accepted as a 
synonym for behavior to help a few people who started building big 
projects with that early beta, it won't live forever.




Getting back to Mark's answer and the use of stack files, I see two
separate places where additional stack files can be specified - the
stackFiles property of the main Stack (or the equivalent pane in the
main stack inspector), and the Stacks pane of the Standalone
Application Settings which gives rise to the question, what is the
relationship between these two settings? Does one override the other?
Is stackFiles operative for the development environment only and the
standalone setting for standalone applications only?


Two different things:

The Stacks pane in the SB is used for copying separate stack files 
into the file that will become the standalone.


The stackfiles property of a stack is a list which allows the engine to 
easily locate stacks which aren't in the stackfile so that you can still 
refer to them by just their short name in your scripts.


For example, if you have a stack named Behaviors in a stack file named 
Behaviors.rev in a folder named Components which is in the same 
folder as your stack file or standalone, you can set the stackfile's 
property of your stack to:


  Behaviors,Components/Behaviors.rev

...and the engine will then know exactly where to find the stack 
whenever your scripts refer to a stack named Behaviors.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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] Plovdiv . . . / hard CASE

2010-05-25 Thread Richmond Mathewson

 On 25/05/2010 20:25, J. Landman Gay wrote:

Richmond Mathewson wrote:


Tonight I am disciplining myself to work through my CASE problem;
where a CASE loop goes AWOL when the stack becomes a standalone.


There's not enough info to say what's going wrong, but you'd save 
yourself a lot of time if you set a breakpoint near the top of the 
switch structure and step through it line by line. That would show you 
whether a case instance is executing or not, which line of the script 
isn't activating, what the state of the variables are, whether or not 
the engine thinks a group is visible, and so forth. Without that, it's 
just stabbing in the dark trying to guess what's happening.



Thanks so much; you caught me before the time I would
have wasted had I not had your advice.

Richmond.
___
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] Plovdiv . . . / hard CASE

2010-05-25 Thread Richmond Mathewson

 On 25/05/2010 20:30, Mark Wieder wrote:

Jacque-

Tuesday, May 25, 2010, 10:25:49 AM, you wrote:


There's not enough info to say what's going wrong, but you'd save
yourself a lot of time if you set a breakpoint near the top of the
switch structure and step through it line by line. That would show you

Unless you've got some trick in mind I don't know about, that isn't
going to help Richmond in a standalone...


The problem; very simply stated is that the CASE loop works 100% in a stack;
but when built into a standalone does not.

So I will have to muck around with alternative ways of doing the same thing
(and in RunRev . . . Thank the Lord . . .  there are many, many ways) 
and, each time,

build a standalone and see if the thing still works.
___
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] Plovdiv . . . / hard CASE

2010-05-25 Thread Richmond Mathewson

 On 25/05/2010 20:40, J. Landman Gay wrote:

Mark Wieder wrote:

Jacque-

Tuesday, May 25, 2010, 10:25:49 AM, you wrote:


There's not enough info to say what's going wrong, but you'd save
yourself a lot of time if you set a breakpoint near the top of the 
switch structure and step through it line by line. That would show you


Unless you've got some trick in mind I don't know about, that isn't
going to help Richmond in a standalone...



Oh. Oops. Forgot it was a standalone thing. I guess the only recourse 
then is to sprinkle a bunch of answers into the code, i.e., case 101, 
got here, vis is true, etc. Or better, log all that to a text file.


Richmond: there should be no difference between the visibility of a 
group in a stack and in a standalone, so I think something else is 
going on. My first impression was that running cross-platform would 
mean that the keycodes aren't the same across OSs, but if you're 
running the standalone on the same system you developed in, then 
that's not it.



I'm testing on the Mac PPC I'm developing on.

I'm off to have supper (Yup; 9.15 over here in the Wild East) and then 
boogie on
down; shame, though, really, I lost track of my leopard-skin posing 
briefs years

ago: really used to help with the coding . . .  :)
___
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: Remote SQL databases

2010-05-25 Thread Bob Sneidar
Which is why if I pull this off, there are people who may be interested in it. 

Bob


On May 25, 2010, at 10:19 AM, Mark Wieder wrote:

 I think the only way around this is to issue two SQL
 commands, one to MySQL, one to SQLite, then take the recordsets and
 mangle them yourself, pretending that you're the cross-db-type engine.
 Could get ugly.

___
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: Listing available MYSQL databases

2010-05-25 Thread Glen Bojsza
HI Joe,

You are correct and this has help solve my problem.

regards,

Glen

On Tue, May 25, 2010 at 10:32 AM, Joe F. jo...@mac.com wrote:

 This script would make promysql evaluate to mysqlshow - u  nrl -pnrl1

 On May 23, 2010, at 3:36 PM, Glen Bojsza wrote:

  Hello,
 
  Has anyone successfully used either open process or get shell() to
 list
  the databases available on a machine.
 
  From the command line I do the following and get the results I am
 looking
  for:
 
  [...@localhost ~]$ mysqlshow -u nrl -p
  Enter password:(I enter the
  password nrl1 here)
  ++
  | Databases  |
  ++
  | information_schema |
  | lab0624|
  | test   |
  ++
  [...@localhost ~]$
 
  My script is as follows:
  on mouseUp
put mysqlshow - u  nrl -p into promysql
put nrl1 after promysql
get shell(promysql)
put it
write quit to process promysql
close process promysql
  end mouseUp
 
  The resulting message is:
 
  mysqlshow: Access denied for user 'nrl'@'%' to database '-'
 
  I am currently logged in as nrl in the Fedora 11 system and running Rev
  under that user name.
 
  open process lead to the same results?
 
  thanks,
 
  Glen
  ___
  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


Possible Bug

2010-05-25 Thread LunchnMeets
Hi Everyone,

They say when you make something idiot proof all you get are smarter 
idiots. Here's the idiotic thing I did.

I was trying to add a Control-V shortcut to a menuItem in the menu 
manager. Instead of using Shift-V to insert the V I used Command-V it 
added 
the code that was on my clipboard to the menu.

Was that a fluke or did I find a bug?

Joe in Orlando
___
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: Possible Bug

2010-05-25 Thread Bob Sneidar
No bug. You pasted the contents of your clipboard into your menu. I have a 
great saying: Computers do not do what you want them to. They only do what you 
tell them to. ;-)

Bob


On May 25, 2010, at 11:42 AM, lunchnme...@aol.com wrote:

 Hi Everyone,
 
 They say when you make something idiot proof all you get are smarter 
 idiots. Here's the idiotic thing I did.
 
 I was trying to add a Control-V shortcut to a menuItem in the menu 
 manager. Instead of using Shift-V to insert the V I used Command-V it 
 added 
 the code that was on my clipboard to the menu.
 
 Was that a fluke or did I find a bug?
 
 Joe in Orlando
 ___
 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] Plovdiv . . . / hard CASE

2010-05-25 Thread Richmond Mathewson

 On 25/05/2010 20:40, J. Landman Gay wrote:

Mark Wieder wrote:

Jacque-

Tuesday, May 25, 2010, 10:25:49 AM, you wrote:


There's not enough info to say what's going wrong, but you'd save
yourself a lot of time if you set a breakpoint near the top of the 
switch structure and step through it line by line. That would show you


Unless you've got some trick in mind I don't know about, that isn't
going to help Richmond in a standalone...



Oh. Oops. Forgot it was a standalone thing. I guess the only recourse 
then is to sprinkle a bunch of answers into the code, i.e., case 101, 
got here, vis is true, etc. Or better, log all that to a text file.


 You know that sometimes (just sometimes, mind) I am a bit slow to 
think my way

round things . . .

Now in my 'Devawriter' I have the same problem with groups and their VIS 
being flipped;


So: cracked open the stack and found (I mean, how come I am so flaming 
thick that after
a matter of about 3 months I had forgotten how I effected that) that 
there is absolutely no
reference to the VIS of a groups into which my faux buttons (images) are 
grouped; but to
the VIS of an image outwith the group which has its visibility set to be 
the same as the group.


Why?

Probably stupid Richmond encountered the same problem just before 
Christmas . . . . .   :(




Listening to Peter Sarstedt: http://www.petersarstedt.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


Happy Geek Pride Day (OT)

2010-05-25 Thread Jonathan Lynch
May 25 is Geek Pride Day, so, just in case there are any self-proclaimed
geeks on the list (such as myself):

Happy Geek Pride Day :)

A related wired.com article:
http://www.wired.com/geekdad/2010/05/5-reasons-to-be-proud-on-geek-pride-day/


Cheers,

Jonathan

-- 
Do all things with love
___
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: Happy Geek Pride Day (OT)

2010-05-25 Thread Jeff Massung
http://www.imdb.com/title/tt0259446/quotes

Note: I'm not Greek, but this movie made me laugh. ;-)

On Tue, May 25, 2010 at 2:03 PM, Jonathan Lynch jonathandly...@gmail.comwrote:

 May 25 is Geek Pride Day, so, just in case there are any self-proclaimed
 geeks on the list (such as myself):

 Happy Geek Pride Day :)


___
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: Happy Geek Pride Day (OT)

2010-05-25 Thread Jeff Massung
O M G.

I'm a moron... and obviously a geek. ;-)

On Tue, May 25, 2010 at 2:10 PM, Jeff Massung mass...@gmail.com wrote:

 http://www.imdb.com/title/tt0259446/quotes

 Note: I'm not Greek, but this movie made me laugh. ;-)

 On Tue, May 25, 2010 at 2:03 PM, Jonathan Lynch 
 jonathandly...@gmail.comwrote:

 May 25 is Geek Pride Day, so, just in case there are any self-proclaimed
 geeks on the list (such as myself):

 Happy Geek Pride Day :)


___
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: Happy Geek Pride Day (OT)

2010-05-25 Thread Bob Sneidar
Sadly, I only don my Geek Hat on the 24th of May. 

Bob


On May 25, 2010, at 12:03 PM, Jonathan Lynch wrote:

 May 25 is Geek Pride Day, so, just in case there are any self-proclaimed
 geeks on the list (such as myself):
 
 Happy Geek Pride Day :)
 
 A related wired.com article:
 http://www.wired.com/geekdad/2010/05/5-reasons-to-be-proud-on-geek-pride-day/
 
 
 Cheers,
 
 Jonathan
 
 -- 
 Do all things with love
 ___
 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: Happy Geek Pride Day (OT)

2010-05-25 Thread Richmond Mathewson

 On 25/05/2010 22:03, Jonathan Lynch wrote:

May 25 is Geek Pride Day, so, just in case there are any self-proclaimed
geeks on the list (such as myself):

Happy Geek Pride Day :)

A related wired.com article:
http://www.wired.com/geekdad/2010/05/5-reasons-to-be-proud-on-geek-pride-day/


Cheers,

Jonathan


Now that's funny; in my dictionary a geek is a person
who works in travelling circuses by biting the heads of live chickens:

http://en.wikipedia.org/wiki/Geek

Not something I would want to own up to; even if I did it;
which, just in case you're wondering; I don't.
___
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: Happy Geek Pride Day (OT)

2010-05-25 Thread Mark Wieder
Jonathan-

Tuesday, May 25, 2010, 12:03:41 PM, you wrote:

 May 25 is Geek Pride Day, so, just in case there are any self-proclaimed
 geeks on the list (such as myself):

But there's more to 25 May than that: Douglas Adams passed away on 11
May 2001, and 25 May (a fortnight after) was declared Towel Day in his
honor. There's a petition about for Google to recognize Towel Day next
year, the 10th anniversary of Adams' death. I'm looking forward to
search results returned in Vogon:

http://www.daryl.mu/2010/05/21/petition-google-to-recognise-towel-day/

-- 
-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


Re: [OT] Plovdiv . . . / hard CASE

2010-05-25 Thread Richmond Mathewson

 On 25/05/2010 20:40, J. Landman Gay wrote:

Mark Wieder wrote:

Jacque-

Tuesday, May 25, 2010, 10:25:49 AM, you wrote:


There's not enough info to say what's going wrong, but you'd save
yourself a lot of time if you set a breakpoint near the top of the 
switch structure and step through it line by line. That would show you


Unless you've got some trick in mind I don't know about, that isn't
going to help Richmond in a standalone...



Oh. Oops. Forgot it was a standalone thing. I guess the only recourse 
then is to sprinkle a bunch of answers into the code, i.e., case 101, 
got here, vis is true, etc. Or better, log all that to a text file.


Richmond: there should be no difference between the visibility of a 
group in a stack and in a standalone, so I think something else is 
going on. My first impression was that running cross-platform would 
mean that the keycodes aren't the same across OSs, but if you're 
running the standalone on the same system you developed in, then 
that's not it.


I have just tried all possible combinations within the Card script; all 
that work in the stack.

Each time; on building a standalone the script fails.

So; what I shall do, is start a new stack that includes those 2 groups 
and the card script and

see if that works; and build up my stack from that.

Very, very queer indeed.
___
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


Galaga 1990

2010-05-25 Thread Generic Email
So, I am teaching my kids programming. I started with Scratch.
http://scratch.mit.edu/

Our first game was Galaga 1990.
It is available to play here: http://scratch.mit.edu/projects/TheCritic1/1057645

I wanted to teach them Rev as well, so I started recreating the game in Rev.

My code for both the Scratch game and my Rev code so far is here: 
http://drop.io/Galaga_1990

ok, my problem is that the fire coming from my main ship, in the rev game, 
looks like crap.
I have limited it to 5 moving particles, but even so, it crawls.

I am sure it is a newb mistake, but if someone could point me in the right 
direction, it would help.

Thanks!___
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: Stack in memory problem

2010-05-25 Thread Jerry Daniels

If you turn around quickly while reminiscing, you can see the future!

Best,

Jerry Daniels

Use tRev's buy link during your 7 day free trial to get 20% off:
http://reveditor.com/tag/shouldiswitch

On May 22, 2010, at 8:08 PM, Mark Wieder wrote:


Marty-

Saturday, May 22, 2010, 6:02:13 PM, you wrote:


That's it - a Hindsight plug-in for tRev :)


If you build it they have already come...

--  
-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: GLX Application Framework: difference between a resource and a stack

2010-05-25 Thread Trevor DeVore

On May 24, 2010, at 7:44 PM, David Bovill wrote:

Second go digging into this great open source framework: wandering  
the best
way to get a stack loaded as a library on startup. So do I use a  
stack, or
add it as a resource like the suggested route for datagrid the  
library -
wandering what the difference is. The version I have is not teh same  
as the
docs.. will have to check I have the lates... but in the mean time  
does

anyone using the framework know how to best add libraries?


Although your plugin UI might be slightly different the principles are  
the same as described here:


http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5552-How-Do-I-Add-Stacks-to-My-Application-

Standalone Resources are files that need to be included when building  
the app but which aren't explicitly loaded when you open the  
application in Rev.


http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5558-How-Do-I-Include-Supporting-Files-Folders-When-I-Build-My-Application-

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


Re: Remote SQL databases

2010-05-25 Thread Trevor DeVore

On May 21, 2010, at 6:31 PM, Bob Sneidar wrote:

I'm wondering if the Relational aspect of Trevor's sqlYoga would be  
able to do this, but again, I think I have to be working with two  
tables in the same database for that to work. Trevor?


That is correct. SQL Yoga will only work with relationships between  
tables in the same database.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


Re: [Data Grid] set the dimmed hilite color

2010-05-25 Thread Trevor DeVore

On May 14, 2010, at 1:48 PM, zryip theSlug wrote:


It seems that there is no way to set the (effective) dimmed hilite
color property of a Data Grid.
I checked the setProp handler of the Data Grid library and found
nothing to set this property. Plus the getProp of this property seems
to return always the kDefaultDimmedHiliteColor constant.


Hmm, 'dimmed hilite color' is indeed missing from the setProp handler.  
I just updated the library. If you want to add it to the dgProps  
setProp put it below hilite color


case hilite color
  case dimmed hilite color
 if pValue is a color or pValue is empty then
lock messages
set the dgProps[pProp] of me to _ColorToRGB(pValue)
unlock messages
...

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


Hard CASE: not what it seems.

2010-05-25 Thread Richmond Mathewson

 Oh, Blast: I got the wrong end of the stick completely . . .

There was nothing wrong with my CASE script at all !

The problem seems to be that standalones have a problem with
the second part of a script that runs like this:

on mouseUp
   set the useUnicode to true
   if fld fBUILT is empty then
  set the unicodeText of fld fRESULT to the unicodeText of fld 
fRESULT  numToChar(2311)

   else
   do fld fMAHA
   if fld fPROC is empty then
  --do nix--
   else
  set the unicodeText of fld fRESULT to the unicodeText of fld 
fRESULT  numToChar(2367)
  set the unicodeText of fld fRESULT to the unicodeText of fld 
fRESULT  the unicodeText of fld fPROC

  put empty into fld fPROC
  end if
   end if
  do fld fARSE
put empty into fld fBUILD
put empty into fld fBUILT
select after fld fRESULT
end mouseUp

i.e. from the first ELSE onwards.

---
fld fARSE (it concerns 'r') contains the following script:

if fld fRRR is empty then
   --do nix--
  else
  set the unicodeText of fld fRESULT to the unicodeText of fld 
fRESULT  numToChar(58107)

  put empty into fld fRRR
  end if

[i.e. post-positions Devanagari 'r' in a conjunct consonant]

---

Why do I get a tingly feeling (err . . . probably called wishful 
thinking) that RunRev 4 is not

going to allow execution of a script in a fld in a standalone??

---

What I still don't understand (and this is the sticking point) is why 
this all works in the

stack but not in the standalone . . .

So, only marginally wiser . . . :)
___
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 deal with unplug from the LAN

2010-05-25 Thread Sivakatirswami
I'm working on an app that requires a remote volume to be mounted (Mac 
OS X 10.6)


I use several basic connectivity tests like

put hostAddressToName (11.11.11.11:) into the server

# If I get DNS from the XServe box I know the user is at least plugged 
in or has his Airport connection uup and running..


# next, get a ping file which is a little file containing the word true

command CheckForServerIs Mounted
   put url file:/volumes/XServer/Sites/public_html/ping.txt into 
tPingTest

 if tPingTest is True then
  set the enabled of button connected to true (small animated gif 
that show a live connection

  put true into gConnectedToLanServer # a global for later testing.
 else
  answer Sorry, the server is not mounted.. shall I mount it for 
you?  with No or Yes

 # run afp apple script here to mount the remote volume.

 end if

end CheckForServerIsMounted


OK the above works fine if the user is a Tidy Boy and is careful to 
dismount the volume, but if he just up and pulls the ethernet cable out 
with the remote volume mounted and runs off to the dentist with his lap 
top... if he has my app open and tries anything, it goes into a 3 minute 
wait...( this is actually a long standing nuisance with Apple's API to 
the network framework... and can happen with pretty much any other app 
and not just RunRev) *finally* after  3 minutes, the system seems to 
realize he's cut off, gives up, and gives the CPU back to RunRev...my 
dialog pop's up to offer the user the option to mount. But because he's 
unplugged, his is informed he is off line and he's gracefully left to 
work off line...


So, this all works well, but the part where I am unable to test for if 
the user just pulled out his ethernet cable with the volume still 
mounted, without this long hang up...


Any ideas?

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


Re: [Data Grid] get the header text color

2010-05-25 Thread Trevor DeVore

On May 14, 2010, at 7:05 PM, zryip theSlug wrote:


2010/5/14 zryip theSlug zryip.thes...@gmail.com:

It seems same for the Text color property.


I've fixed getProps for text color, effective text color, header  
text color and effective header text color.


Entries in the getProp dgProps handler are as follows:

 case effective text color
 return the effective textColor of group dgList of me
 break

  case text color
 return the textColor of group dgList of me
 break

 case header text color
 return the textColor of group dgHeader of me
 break

  case effective header text color
 return the effective textColor of group dgHeader of me
 break

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


Re: Happy Geek Pride Day (OT)

2010-05-25 Thread David C.
 Now that's funny; in my dictionary a geek is a person
 who works in travelling circuses by biting the heads of live chickens:

 http://en.wikipedia.org/wiki/Geek


From the wikipedia link:
Formerly, the term referred to a carnival performer often billed as a
wild man whose act usually includes biting the head off a live
chicken, bat, snake or bugs.

Sounds much more like a '70's era rock band. ;-)

-David C.
___
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: Happy Geek Pride Day (OT)

2010-05-25 Thread Richmond Mathewson

 On 25/05/2010 23:22, David C. wrote:

Now that's funny; in my dictionary a geek is a person
who works in travelling circuses by biting the heads of live chickens:

http://en.wikipedia.org/wiki/Geek


 From the wikipedia link:
Formerly, the term referred to a carnival performer often billed as a
wild man whose act usually includes biting the head off a live
chicken, bat, snake or bugs.

Sounds much more like a '70's era rock band. ;-)

I think Ozzy Osbourne used to go in for that sort of thing when I was a 
spotty

teenager (i.e. mid '70's);

Hey; do you remember when Alice Cooper faked his own guillotining
in Paris?

Ooooh; tooo late at night; reaching for my juju beads for a spot of
psychedelic meditation . . . .

Peter Sarstedt is singing where's my semi-precious plastic Easter egg?

Right on!

I dunno; right here there is a wild RunRev programmer who is
going spare over some of his own funny code (see earlier posting);

I think I'll just pop to the fridge and bite the head off a live . . . . 
. carrot . . . :)

___
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 grid] can't hide one of the scrollbar

2010-05-25 Thread Trevor DeVore

On May 13, 2010, at 10:45 AM, Andre.Bisseret wrote:


-
on mouseUp
  local DGRef,
  ---
  copy group DataGrid of group Templates of stack  
revDataGridLibrary to this card

  put it into DGRef
  set the dgProp[show hScrollBar] of DGRef to false
  set the dgProp[show vScrollBar] of DGRef to false
end mouseUp
-
then, the V scroll bar remains visible

If I invert the order of the 2 last lines then it is the H scroll  
bar which remains visible


In other words, the last line is not executed

What am I doing wrong?


Nothing. There was an unbalanced lock messages call in one of the  
handlers that repositioned columns. I've fixed this for the next  
release. If you want to fix it in your own copy of the library find  
the ned of the handler _table.RepositionColumns and add 'set the  
lockmessages to msgsAreLocked' above the unlock screen call.


===
   ...

   set the lockmessages to msgsAreLocked
   unlock screen
end _table.RepositionColumns


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


Re: How to Dial Using Rev ?

2010-05-25 Thread Douglas

Hi Jaque,
Surely Gary must have a phone line and relatively old iMac with built-in 
modem, or at least a modem, or he wouldn't be wanting to use what he 
assumes to be a dial-up routine to an external device?


It's over 15 years since I did anything with at AT codes, but I can 
remember the pain of having to look them up every time I went to a 
service call where I didn't know the hardware.


AT is the required prefix to initiate any command.
The AT does not have to be repeated for each command and one string can 
contain many commands.
S7 is the number of seconds to wait for carrier signal when the other 
end answers

Ln is the Loudness of the modem speaker (usually 0-3)
DT is Dial using Tone

So in this case, the command is ATS7=1L0DT followed by the number and 
a Carriage Return

meaning :
Wait 1 second for carrier when the other end answers. (ie it must start 
quickly after picking up.)

Set speaker level to lowest.
Dial the number using Tones.

So, if you are reading this Gary:-
Please tell us what you are actually wanting to do and if you have a 
built-in or USB modem.
ie. Why do you want to use this routine, when you don't really know what 
it is?


Douglas

On 23/05/2010 05:48, J. Landman Gay wrote:

gary_aitcheson wrote:

   put *67 before theNumber
   open file com3: for write
   write ATS7=1L0DT  theNumber  cr to file com3:
   wait 5 secs
   close file com3:

I do not understand much of this, but it appears that it's usual 
function is to dial a fax machine in order to transmit letters etc.
I'm not sure what it's dialing, but what the script does is this, line 
by line:


prefix the phone number with *67
open a connection to the com3 port on the PC, which is a serial port 
where presumably a modem is attached
send the phone number digits and an end-of-line carriage return 
through the serial port to the modem

wait a bit for the modem to get the data and start dialing
close the connection to the port


My problem is that I want to use this dialing program on my iMac 
running OS X but unfortunately it does not function there.  I imagine 
the dialing code is similar, but figuring it out is beyond my 
expertise. Does anyone have any suggestions at to what to do, where 
to look, who to ask, etc ?


The equivalent on a Mac would be identical, except instead of com3 
you'd want to use modem as the port specifier. Both the PC com3 
port and the Mac modem port are serial ports. Rev can write to those 
just fine, but the problem you will find on your iMac is that it won't 
have any serial ports; Macs haven't supported those for some years, 
nor do they ship any longer with internal modems. You can buy USB 
modems, but unfortunately Rev can't read or write to USB ports.


So if you have an older Mac that has a real serial modem port, you can 
dial with the above script by substituting modem for the port. But 
on your iMac, no go.



___
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: Hard CASE: not what it seems.

2010-05-25 Thread Scott Rossi
Maybe because standalones have an (editable) script limit of 10 lines, meaning 
you can't build scripts dynamically in standalones that exceed 10 lines.  There 
is no such limit in the IDE.

Scott Rossi
Creative Director
Tactile Media, UX Design

On May 25, 2010, at 1:15 PM, Richmond Mathewson richmondmathew...@gmail.com 
wrote:

 Why do I get a tingly feeling (err . . . probably called wishful thinking) 
 that RunRev 4 is not
 going to allow execution of a script in a fld in a standalone??
 
 ---
 
 What I still don't understand (and this is the sticking point) is why this 
 all works in the
 stack but not in the standalone . . .
___
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


Reverse Intersect

2010-05-25 Thread Bob Sneidar
Hi all. 

I know the Intersect command removes keys in array-1  that don't exist in 
array-2. What I need however is a command that removes keys in array-1 that DO 
exist in array-2, so that array-1 contains all the keys I need to add. Why you 
ask? Why not just use the Union command? Because I need to find all the records 
in table-a that need to be added to table b. And since I am paging through 
table a a limited number of records at a time, (to prevent Rev memory overflow 
for large tables) I cannot simply use an SQL query join, and as I said in a 
prior post the tables are in disconnected databases. 

So what I am doing is getting 100 records from table-a as a string, massaging 
it a bit to form a comma delimited list, then using the SQL IN operator to get 
what records there are in table-b that are already in table-a. At that point I 
need to eliminate the table-b keys from the table-a keys, and what I will have 
left are the keys that need to be inserted into table-b. Simple. See? ;-) 

So is there any way to do this without a repeat loop? I can always do a repeat 
loop, but they weary me. sigh ;-)

Bob


___
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: Reverse Intersect

2010-05-25 Thread stephen barncard
if you want to remove duplicate keys - put the imported data immediately
into an array. Duplicates are automatically eliminated.

On 25 May 2010 14:45, Bob Sneidar b...@twft.com wrote:

 Hi all.

 I know the Intersect command removes keys in array-1  that don't exist in
 array-2. What I need however is a command that removes keys in array-1 that
 DO exist in array-2, so that array-1 contains all the keys I need to add.
 Why you ask? Why not just use the Union command? Because I need to find all
 the records in table-a that need to be added to table b. And since I am
 paging through table a a limited number of records at a time, (to prevent
 Rev memory overflow for large tables) I cannot simply use an SQL query join,
 and as I said in a prior post the tables are in disconnected databases.

 So what I am doing is getting 100 records from table-a as a string,
 massaging it a bit to form a comma delimited list, then using the SQL IN
 operator to get what records there are in table-b that are already in
 table-a. At that point I need to eliminate the table-b keys from the table-a
 keys, and what I will have left are the keys that need to be inserted into
 table-b. Simple. See? ;-)

 So is there any way to do this without a repeat loop? I can always do a
 repeat loop, but they weary me. sigh ;-)

 Bob


 ___
 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
San Francisco
___
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: Reverse Intersect

2010-05-25 Thread Mark Wieder
stephen-

Tuesday, May 25, 2010, 3:08:33 PM, you wrote:

 if you want to remove duplicate keys - put the imported data immediately
 into an array. Duplicates are automatically eliminated.

I was going to suggest something similar, but then thought this seems
like a long way to go around for the desired result. Why not take the
recordsets from the two database queries and use them on the fly to
populate tables in a new database? Then you can run your sql matching
statement on the new tables and delete the temporary database when
you're done.

-- 
-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


Re: Reverse Intersect

2010-05-25 Thread Bob Sneidar
Thanks for the reply Stephen. 

What I want to end up with is an array of ONLY the keys that exist in the first 
array that do NOT exist in the second. Otherwise I simply end up with identical 
arrays that both contain all the keys from the first and the second arrays. 

I should mention that it is the nature of the data that the second array is 
some subset of the first, and the goal is to find the records in the first 
array that are not in the second. 

Bob


On May 25, 2010, at 3:08 PM, stephen barncard wrote:

 if you want to remove duplicate keys - put the imported data immediately
 into an array. Duplicates are automatically eliminated.

___
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


[ANN] revIgniter v1.3.2b has been released

2010-05-25 Thread Ralf Bitter

revIgniter now follows a simple, easy to memorize,
naming convention to reduce potential name conflicts
to a minimum.
While maintaining the deprecated set of handler names
it will be phased out in a later version, so all users
are asked to replace those names over time.
Please read about Reserved Names in the User Guide.
Furthermore this version includes bug fixes.

Of course, there are new revIgniter / irev TextMate bundles
respecting the new naming convention.

Info and download at: http://revigniter.com/

Ralf
___
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: Reverse Intersect

2010-05-25 Thread Bob Sneidar
Hi Mark. Thanks for the interest. 

My apologies to everyone for the length of this post. 

First, remember that I am working with paged data. The reason is this: 

Let's say the source database has a million records. Since I cannot use a join 
due to the fact they are dissimilar databases that are not connected in any 
way, I am going to have to query both databases seperately, yes? If I query the 
destination database for all it's keys I want to use to find records in the 
source database, on the first pass with an empty destination database I am 
going to return every single record! Huge dataset, Revolution crashes! 

But let's say I get away with it and Revolution does not crash (yet). Now I 
have to issue an SQL statement to the destination database something like 
SELECT sw_id FROM devices WHERE IN (insert huge million item comma delimited 
string here). If I don't kill the SQL server, I will probably kill Revolution 
this time with yet another 1 million record data set! 

You may say I could use WHERE NOT IN (insert huge million item comma delimited 
string here), but it doesn't solve my huge dataset and query problem. If I am 
paging through the data, then I will get every record not in the page, even if 
they exist in both databases. 

The solution? Page through the source database a reasonable number of records 
at a time, say 100 or 1000 or 10,000 depending on what the limits of Revolution 
and SQL are. Now my second query will return a dataset with matching records, 
excluding the records that haven't been added yet. At this point I have a 
dataset with all the records in my page, and another dataset with all the 
records in my destination database with matching keys, a subset of my paged 
data. 

Now I need to find out what those keys are that are in my page dataset that are 
not in my destination dataset. Hence my need for a reverse intersect command. 
My strategy of working with one record at a time proved to be cumbersome, 
especially with a remote SQL server where internet lag plays a part. Whether I 
use a temporary table or memory variables to work with the data seems 
irrelevant, except that the SQL database is remote, remember? Lag issues. The 
less individual queries I make, the better the performance will be. 

Bob



 
On May 25, 2010, at 3:18 PM, Mark Wieder wrote:

 stephen-
 
 Tuesday, May 25, 2010, 3:08:33 PM, you wrote:
 
 if you want to remove duplicate keys - put the imported data immediately
 into an array. Duplicates are automatically eliminated.
 
 I was going to suggest something similar, but then thought this seems
 like a long way to go around for the desired result. Why not take the
 recordsets from the two database queries and use them on the fly to
 populate tables in a new database? Then you can run your sql matching
 statement on the new tables and delete the temporary database when
 you're done.
 
 -- 
 -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: Reverse Intersect

2010-05-25 Thread Jim Ault

In the time it took to write the original email you could have


put the keys of array1 into keysOne
combine array2 using cr and tab
set the itemDel to tab
repeat for each line LNN in array2
  if item 1 of LNN is not among the lines of keysOne then put LNN   
cr after newArray2

end repeat
filter newArray2 without empty
split newArray2 using cr and tab

--
and of course -

put getResidualArray(array2, array1) into array2

function getResidualArray array2, array1
   code 

   return newArray2
end getResidualKeys


Hope this helps

J
On May 25, 2010, at 2:45 PM, Bob Sneidar wrote:


I know the Intersect command removes keys in array-1  that don't  
exist in array-2. What I need however is a command that removes keys  
in array-1 that DO exist in array-2, so that array-1 contains all  
the keys I need to add. Why you ask? Why not just use the Union  
command? Because I need to find all the records in table-a that need  
to be added to table b. And since I am paging through table a a  
limited number of records at a time, (to prevent Rev memory overflow  
for large tables) I cannot simply use an SQL query join, and as I  
said in a prior post the tables are in disconnected databases.


So what I am doing is getting 100 records from table-a as a string,  
massaging it a bit to form a comma delimited list, then using the  
SQL IN operator to get what records there are in table-b that are  
already in table-a. At that point I need to eliminate the table-b  
keys from the table-a keys, and what I will have left are the keys  
that need to be inserted into table-b. Simple. See? ;-)


So is there any way to do this without a repeat loop? I can always  
do a repeat loop, but they weary me. sigh ;-)


Bob



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


Re: GLX Application Framework: difference between a resource and a stack

2010-05-25 Thread David Bovill
On 25 May 2010 20:59, Trevor DeVore li...@mangomultimedia.com wrote:

 Standalone Resources are files that need to be included when building the
 app but which aren't explicitly loaded when you open the application in Rev.


 http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5558-How-Do-I-Include-Supporting-Files-Folders-When-I-Build-My-Application-


So why do you add the Datagrid library as a Resource in the other tutorial?
NB - how do I check that I have the latest version?
___
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] revIgniter v1.3.2b has been released

2010-05-25 Thread David Bovill
Thanks for that :)

On 25 May 2010 23:29, Ralf Bitter ra...@dimensionb.de wrote:


 revIgniter now follows a simple, easy to memorize,
 naming convention to reduce potential name conflicts
 to a minimum.
 While maintaining the deprecated set of handler names
 it will be phased out in a later version, so all users
 are asked to replace those names over time.
 Please read about Reserved Names in the User Guide.
 Furthermore this version includes bug fixes.

 Of course, there are new revIgniter / irev TextMate bundles
 respecting the new naming convention.

 Info and download at: http://revigniter.com/

 Ralf
 ___
 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: Implementing a library of behavior buttons across multiple applications

2010-05-25 Thread Peter Haworth
Thanks Richard.  So the SB pulls in ALL the stack files defined to it  
int the application and I don;t have to send any of them out with the  
app, right?


Pete Haworth








http://www.mollysrevenge.com
http://www.sonicbids.com/MollysRevenge
http://www.myspace.com/mollysrevengeband








On May 25, 2010, at 1:15 PM, use-revolution-requ...@lists.runrev.com  
wrote:



Two different things:

The Stacks pane in the SB is used for copying separate stack files
into the file that will become the standalone.

The stackfiles property of a stack is a list which allows the engine  
to
easily locate stacks which aren't in the stackfile so that you can  
still

refer to them by just their short name in your scripts.

For example, if you have a stack named Behaviors in a stack file  
named

Behaviors.rev in a folder named Components which is in the same
folder as your stack file or standalone, you can set the stackfile's
property of your stack to:

  Behaviors,Components/Behaviors.rev

...and the engine will then know exactly where to find the stack
whenever your scripts refer to a stack named Behaviors.


___
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

Datagrid border colour setting?

2010-05-25 Thread Terry Judd
Does anyone know if there is a setting to change the border colour (both the
header and the 'body') of a datagrid? Trevor?

Terry...

___
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: revWeb - revlet - examples please

2010-05-25 Thread Richard K. Herz
A few days ago I asked for links to web pages with revlets - here is my 
list so far:


# Link 4 Game http://www.gemetest.ihouse.on-rev.com/ by John Dixon
# Guess game http://jacque.on-rev.com/guess/guess.irev by Jacqueline 
Landman Gay
# Chance lab and physics impulse lab 
http://gcb.luceatlux.com/teachablemoments/teachablemoments.irev by 
George Brackett
# Color puzzle http://berndniggemann.on-rev.com/colorpuzzle/ by Bernd 
Niggemann
# K12 educational example 
http://jperryl.ecs.fullerton.edu/Rev/Plurals.html by Judy Perry
# Language and History http://lkirkhagen.com/portfolio.htm educational 
revlets by L. Kirk Hagen

# RGB Music RENGA http://www.kenjikojima.com/rgbmusicrenga/ by Kenji Kojima
# University staff database http://mobile.kangaroo.on-rev.com/ by Rolf 
Kocherhans, - click allow once to allow network communication to 
database, then revlet opens as iPhone emulator, click on slider button 
(don't drag), type rolf without return, etc.
# Developer's examples 
http://www.troz.net/rev/index.irev?category=Revlets#stacks by Sarah 
Reichelt

# Chemical reactors http://simzlab.com/revlets/ by Rich Herz

Thanks to everyone who sent their own links, or recommendations. One 
thing I learned is that my graphics aren't up to par - the others are 
beautiful!


The speed at which graphics are updated in a revlet, as displayed in a 
browser, is slower than in a desktop app, not surprisingly. But that is 
the only limitation I have encountered so far in converting stacks to 
revlets, and that may only affect a relatively large number of objects 
updating rapidly.


I hope that the number of web pages with revlets grows fast. Revlets 
seem to have a lot of potential.


Rich Herz






___
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: Galaga 1990

2010-05-25 Thread Scott Rossi
Hi Generic:

I took a look at your stack and you've done everything right from a
conceptual standpoint.  All your code makes sense.  The problem you're
running into is Rev's real world behavior and performance -- Rev is not
multi-threaded and is not suited to managing lots of sub-second messages
simultaneously.  The practical way to do what you want is to use a single
master repeat loop that handles all animation, movement, key tracking etc.
This may seem counterintuitive to what you're trying to teach, but it's
really the only way to get any smooth performance out of Rev that's suitable
for a game.

I modified your stack as an example of one way to enhance performance.
Execute the following in your Rev message box:
go url http://www.tactilemedia.com/download/Galaga_1990_mod.rev;

All the code is at the stack level.  Shots are limited to one at a time on
screen, which of course you can change.  Given what you've built so far, I
think you'll be able to easily grasp what's going and modify as needed.

Good luck.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




Recently, Generic Email wrote:

 So, I am teaching my kids programming. I started with Scratch.
 http://scratch.mit.edu/
 
 Our first game was Galaga 1990.
 It is available to play here:
 http://scratch.mit.edu/projects/TheCritic1/1057645
 
 I wanted to teach them Rev as well, so I started recreating the game in Rev.
 
 My code for both the Scratch game and my Rev code so far is here:
 http://drop.io/Galaga_1990
 
 ok, my problem is that the fire coming from my main ship, in the rev game,
 looks like crap.
 I have limited it to 5 moving particles, but even so, it crawls.
 
 I am sure it is a newb mistake, but if someone could point me in the right
 direction, it would help.
 
 Thanks!___
 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: Listing available MYSQL databases

2010-05-25 Thread Bob Cole
If you put SHOW DATABASES; in a text file on the target 
machine then you can execute the following statements
(watch for line breaks):
 put /usr/local/mysql/bin/mysql -u username -ppassword  
'/usr/local/ShowDatabases.txt' into myCommand
 put shell(myCommand) into message box
That works for me on my Mac with OS X 10.6.3
Bob


Tue, 25 May 2010 11:41:21 -0700, Glen Bojsza gboj...@gmail.com wrote:
HI Joe,
You are correct and this has help solve my problem.
regards,
Glen

On Tue, May 25, 2010 at 10:32 AM, Joe F. jo...@mac.com wrote:
 This script would make promysql evaluate to mysqlshow - u  nrl -pnrl1
 On May 23, 2010, at 3:36 PM, Glen Bojsza wrote:
 
 Hello,
 Has anyone successfully used either open process or get shell() to list
 the databases available on a machine.
[...snip...]
___
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: Happy Geek Pride Day (OT)

2010-05-25 Thread Jeff Reynolds

jeff,

now that made me really laugh!!!

another jeff

On May 25, 2010, at 4:15 PM, use-revolution-requ...@lists.runrev.com  
wrote:




O M G.

I'm a moron... and obviously a geek. ;-)


___
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