AW: experience with VBScript on Vista needed

2009-06-03 Thread Tiemo Hollmann TB
Hi Ken and Jim,
thanks for your advices, very helpful.
Tiemo

 -Ursprüngliche Nachricht-
 Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
 boun...@lists.runrev.com] Im Auftrag von Ken Ray
 Gesendet: Dienstag, 2. Juni 2009 23:52
 An: Use Revolution List
 Betreff: Re: experience with VBScript on Vista needed
 
 
 Hey, Tiemo...
 
  My questions are not going to my code, but to some principles with
 calling
  the shell wscript.exe
 
 Are you using Rev 2.9 or later? If so, you don't need to call the shell()
 command for VBScript; you can do script as VBScript.
 
  1.  I tried to catch any error from the get shell() command with the
  result, the syserror, try -catch, but got never any error back from
 the
  shell, even if I have a wrong syntax in the VB, where the VB fails, the
 rev
  doesn't gets noticed. Which is the correct way to catch an error from a
  VBScript on the shell?
 
 It should come back from the shell command. Here's an (old) example of
 activating an application and trapping the result:
 
 on VBS_AppActivate pTitle
   put format(set WshShell = WScript.CreateObject(\WScript.Shell\))
 into
 tVBS
   put tVBS  cr  WshShell.AppActivate  quote  pTitle  quote into
 tVBS
   put C:\vbs_temp.vbs into tVBSPath
   put tVBS into url (file:  tVBSPath)
   set the hideConsoleWindows to true
   get shell(cscript.exe //nologo  tVBSPath)
   put it into tResult
   if there is a file tVBSPath then
 send delete file  quote  tVBSPath  quote to me in 1 second
   end if
   if tResult   then return Error:   tResult
 end VBS_AppActivate
 
 Here's how it would be done in Rev 2.9+:
 
 on VBS_AppActivate pTitle
   put format(set WshShell = WScript.CreateObject(\WScript.Shell\))
 into
 tVBS
   put tVBS  cr  WshShell.AppActivate  quote  pTitle  quote into
 tVBS
   put tVBS  cr  result = Err.number into tVBS
   do tVBS as VBScript
   put the result into tResult
   if there is a file tVBSPath then
 send delete file  quote  tVBSPath  quote to me in 1 second
   end if
   if tResult   then return Error:   tResult
 end VBS_AppActivate
 
 
  2. Do I have to return explicity any error from the script back to rev,
 or
  will they passed to rev anyway? If yes, how and where?
 
 See above...
 
  4. Are there any experiences of windows installations without the
 scripting
  host? Perhaps the Home edition? If yes, how to check for that?
 
 Well, according to my informaton, some form of Windows Script Host has
 been
 included on all versions of Windows since Windows 98. You should check to
 make sure that the VBScript you're calling is supported in the various
 versions of Windows you need to support.
 
  5. If every Vista version should have the windows scripting host, can it
  somehow be deactivated, so that my updater runs without result? If yes,
 how?
 
 Not AFAIK.
 
  6. If the user clicks cancel while Vista is asking to allow this
 process,
  how can I get aware of this cancel in my rev app? Is there a chance to
  catch a cancel down from Vista level in my rev app?
 
 I don't know, but I'd assume that the request happens *before* the script
 is
 actually run, so you'd need to find a way to determine if your VBScript
 runs
 or not. One way to do this might be for your Rev app to create a file and
 have the VBScript change its contents or delete it. That way you could
 detect after the script has run if the original file was still
 there/unchanged. If so, the VBScript didn't run.
 
  7. Are you aware of any other VBScript gotchas?
 
 Yes - Some anti-virus software will bring up an alert dialog to the user
 letting them know of a potential malicious activity if you try to
 manipulate the file system with VBScript (basically any use of the
 FileSystemObject), so that may make #6 above even more difficult.
 
 Ken Ray
 Sons of Thunder Software, Inc.
 Email: k...@sonsothunder.com
 Web Site: http://www.sonsothunder.com/
 
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Popup menu bug?

2009-06-03 Thread Josep

Hello Jaqueline,

So, from the button search mouseup I call on search and from menu pick
call on markOption, isn't?

Every control call custom handler that share some local variables.
Maybe this is best that every control have her code, with this way is more
easy of mantain the code, but is good for performance of the app?


Salut,
Josep

local sMenuChoice -- this goes at the top of the script

on markOption pMenuChoice -- option_button calls this
  put pMenuChoice into sMenuChoice -- store it in the script local
  -- set checkmark here if you want
end markOption

on search -- search button calls this
  put sMenuChoice into tSearchTerm
  -- etc
end search

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



-- 
View this message in context: 
http://www.nabble.com/Popup-menu-bug--tp23814764p23846318.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: OT: Rev to Flash translation

2009-06-03 Thread Dave Cragg
As others have said, ActionScript is quite different from Rev. But if  
your client is going the Flex route, it may be possible to translate  
the interface components. Flex uses XML for component layout, and in  
theory at least, it should be possible to map Rev components to the  
Flex equivalent. (It may even be possible to create placeholders for  
script elements.) Whether the result would be of practical use is  
another question. If your interface is simple, it's probably not worth  
the trouble. (And if it's complex, I guess the results may be less  
useable.)


An interesting project, even if just to prove it's impractical. Has  
anyone tried this before?


Cheers
Dave


On 2 Jun 2009, at 15:25, George C Brackett wrote:

How close is ActionScript (Flash) scripting to Rev scripting?  I'm  
doing prototyping in Rev for a client that uses only Flash and Flex  
to publish.  My prototypes so far are pretty simple, with no fancy  
graphic stuff, a little manipulation on-screen and mainly buttons to  
check answers, reveal hints, or move on.  Is there enough  
commonality between the two systems to hope for a relatively easy  
translation?  Or would a total Flash re-write be the only reasonable  
option?


George

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

2009-06-03 Thread Beat Cornaz

Hi Trevor,

thanks a lot for your very useful answers.


 2. How do I set the number of columns by script?



Set the columns property. It is listed on the properties page.

I have overlooked this one at least 20 times, as I have looked in  
that section. I must have been looking for 'Number of' and overlooked  
the 'columns'. I am glad I found it and it works great.


Greetings,  Beat


___
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 : Datagrid again

2009-06-03 Thread Beat Cornaz

on june 1 Trevor wrote :

I'm not familiar with this problem but if you put together a simple
test stack and send it to me offlist I can take a look.


I have mailed you a test stack off list.

Regards, Beat

___
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


On-Rev file Transfer

2009-06-03 Thread Francis Nugent Dixon

Hi from Paris,

Developing my site is put into second priority.
I need time to ingurgitate DreamWeaver 
And I am still light years away from adding
/rev commands to my existing HTML files
But, I also want to use the 100 GB platform to
upload and download some .aiff music files which
we develop in France, mix in the States, and
then make available to a limited set of users.

I tried using the upload/download mechanism in cPanel.
I realize that it wasn't designed for VOLUME, so I ran
a few tests

After a few hours - It was extremely rapid on all files
up to about 1 MB, then things go so slow that I pulled
the plug. Pretty normal, if you consider that it is
usually for Web pages ... ! There also seems to be
a brake after a certain data volume. Transferring a
100 KB file after several 1 MB files took forever.

I am ready to accept any input from On-Rev experts, but
don't worry, I have no qualms - It's OK for me.

However, FileZilla FTP's to accounts defined in cPanel
zip through in no time - perfectly acceptable for
big (50 MB aiff files). So I am happy 

On-Rev looks good .
From cPanel, menus easy to use - watch the videos if
you are in doubt - no problems so far . so far !!

FWIW

-Francis

___
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


[On-Rev] traversing file path in on-rev

2009-06-03 Thread Devin Asay
I want to be able to use common libraries for all subdomains in my  
domain. Right now all of my subdomains point to folders within my  
public html root directory.


/
includes/
mylib.irev
mysubdomain/
index.irev
index.irev

I want to access mylib.irev from mysubdomain/index.irev.  I would  
think I should be able to do


include ../includes/mylib.irev

But that doesn't work, and produces an error message saying

	FTP error: File /mysubdomain/../includes/mylib.irev not present on  
server. Cannot download.


Shouldn't this work? Or is the bug in my brain? (Wouldn't be the first  
time.)


Devin

___
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


WorkGroup Manager

2009-06-03 Thread Dan Friedman
Greetings,

This is a little obscure, but I have a client who is using Apple's WorkGroup
Manager who is claiming that they (admin) set the permissions of my
[Revolution] application to read/write.  Then, when the user logs in they
don't have permissions to run the application.  They claim this is not an
issue with any other application they have.

Is there a issue with Rev apps and WorkGroup Manager?  Is there a bug in
WorkGroup Manager?  I did a Google search and can't find anything on this
issue.

Anyone have any thoughts/advice?


Thank you!

Dan Friedman
CEO, ClearVision Technologies, Inc.
Voice: 909/484-2052
Fax: 866/620-4796
http://www.clearvisiontech.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: WorkGroup Manager

2009-06-03 Thread Devin Asay


On Jun 3, 2009, at 2:03 PM, Dan Friedman wrote:


Greetings,

This is a little obscure, but I have a client who is using Apple's  
WorkGroup

Manager who is claiming that they (admin) set the permissions of my
[Revolution] application to read/write.  Then, when the user logs in  
they
don't have permissions to run the application.  They claim this is  
not an

issue with any other application they have.

Is there a issue with Rev apps and WorkGroup Manager?  Is there a  
bug in
WorkGroup Manager?  I did a Google search and can't find anything on  
this

issue.

Anyone have any thoughts/advice?


I don't think it would be a Workgroup Manager problem. It doesn't do  
anything special; it would be just like doing a chmod from the command  
line.


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


WorkGroup Manager

2009-06-03 Thread Dan Friedman
Devin,

Got any ideas what could cause this?

-Dan


 I don't think it would be a Workgroup Manager problem. It doesn't do
 anything special; it would be just like doing a chmod from the command
 line.
 
 Devin
 
 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University


___
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: WorkGroup Manager

2009-06-03 Thread Devin Asay


On Jun 3, 2009, at 2:53 PM, Dan Friedman wrote:


Devin,

Got any ideas what could cause this?


I don't know much about your user's setup, but in our labs we install  
Revolution-based applications with the owner account, which has admin  
status. Anyone that logs in, regardless of which user account they  
use, has access to those apps, and they run without problems. The unix  
permissions for the .app bundle and its contents are rwxr-xr-x. Maybe  
they should make sure that all users have at least read and execute  
permissions.


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: WorkGroup Manager

2009-06-03 Thread Bill Andersen
 This is a little obscure, but I have a client who is using Apple's
WorkGroup
 Manager who is claiming that they (admin) set the permissions of my
 [Revolution] application to read/write.  Then, when the user logs in they
 don't have permissions to run the application.  They claim this is not an
 issue with any other application they have.

Dan,

  Shouldn't that be read/execute?  They don't need to write to it - as you
  can't write to the rev application - as I found out this week :()

Bill


___
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: [On-Rev] traversing file path in on-rev

2009-06-03 Thread Alex Tweedly

Devin Asay wrote:
I want to be able to use common libraries for all subdomains in my 
domain. Right now all of my subdomains point to folders within my 
public html root directory.


/
includes/
mylib.irev
mysubdomain/
index.irev
index.irev

I want to access mylib.irev from mysubdomain/index.irev.  I would 
think I should be able to do


include ../includes/mylib.irev

That does work for me. (to be precise, usinginclude 
../subfolder/xxx.irev
  (I didn't have a folder called 'includes', but had one imaginatively 
called 'subfolder' :-)


(Sadly, I can't get the equivalent to work for an add-on domain at the 
root level, but that's not too surprising).

But that doesn't work, and produces an error message saying

FTP error: File /mysubdomain/../includes/mylib.irev not present 
on server. Cannot download.


Why would you get an FTP error ?Are you sure this was while running 
index.irev ?
Or is there some other part of your workflow that is doing ftp of these 
files ?


Is the error message from the on-rev client debugger ?  If not - give it 
a try and see what it says.


-- Alex.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [On-Rev] traversing file path in on-rev

2009-06-03 Thread Devin Asay


On Jun 3, 2009, at 4:59 PM, Alex Tweedly wrote:


Devin Asay wrote:

I want to be able to use common libraries for all subdomains in my
domain. Right now all of my subdomains point to folders within my
public html root directory.

/
   includes/
   mylib.irev
   mysubdomain/
   index.irev
   index.irev

I want to access mylib.irev from mysubdomain/index.irev.  I would
think I should be able to do

include ../includes/mylib.irev


That does work for me. (to be precise, usinginclude
../subfolder/xxx.irev
  (I didn't have a folder called 'includes', but had one imaginatively
called 'subfolder' :-)


How odd. I'm pretty sure that I had everything right--I even had the  
path printed to the web page to make sure. What finally worked for me  
was setting the defaultFolder to the includes folder then doing the  
'include' call as a relative file path.


   include includes/mylib.irev


(Sadly, I can't get the equivalent to work for an add-on domain at the
root level, but that's not too surprising).

But that doesn't work, and produces an error message saying

   FTP error: File /mysubdomain/../includes/mylib.irev not present
on server. Cannot download.

Why would you get an FTP error ?Are you sure this was while  
running

index.irev ?
Or is there some other part of your workflow that is doing ftp of  
these

files ?

Is the error message from the on-rev client debugger ?  If not -  
give it

a try and see what it says.


Right, I should have been more specific: it was from the debugger.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


Tab in datagrid

2009-06-03 Thread Hershel Fisch
Hi, I feel a bit bad for everybody getting bombarded questions regarding
datagrid, 
But it is a very important feature and needs to be understood properly.
So I¹m sorry for it BUT we got to get it to work.
Question, How do I achieve a fld identification e.g. Line 3 fld 4 or a name
or whatever  via the tab key and then by leaving that particular fld
triggering a closeField?
Thanks, Hershel
___
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