Dividing Line in Button

2010-08-11 Thread Dan Friedman
Greetings...

You can add a dividing line in a option menu (a button who's menuMode is set to 
"option") on the Mac by simply putting a "-" into a line in the button's text.  
How do you get a dividing line on Windows?  All I get is the dash.

Thanks in advance,

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


New Stack crash

2010-06-22 Thread Dan Friedman
Greetings!

I have the following script in a button:

on mouseUp
  put 0 into i
  repeat 3
add 1 to i
put ("testStack_" & i) into sName
new stack sName
delete stack sName
  end repeat
end mouseUp

Two questions:

(1) Why would this start to slow down?  It starts off quite fast, then it 
beings to slow down.  It gets so that it takes 5, or 6 seconds to complete one 
repeat.  This happens in both in REV and as a standalone.  Is this because of 
the "add 1 to i"?  Is this no better than "repeat with i = ...", which is known 
to be slow?

(2) Rev will eventually crash.  In my testing, it seems random and crashes 
sometime after about 1700.  Shouldn't the "delete stack" call completely remove 
the stack?  So, why crash?

Any thoughts?___
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: Deleted Files

2010-06-02 Thread Dan Friedman
Bob,

I am using the "put" because I am writing to a ftp web server.   So I need to 
pass a username and password.

How would I rename the file on a remote server?  Also, how would you suggest I 
go about this?  I could end up in a endless error check...

rename the original file
write the data
if error then
  rename the original file back
  if error then
then what?

What do you think?

-Dan


> After reading a bit more of your original post, I think I understand that you 
> are creating an XML file each time you do a PUT? If so, are you "PUTTING" to 
> the same file name each time? If so, then if the command fails for some 
> reason the file system would delete the original, and then the new file, 
> having failed would never get to the server. It might be better to rename the 
> original, "PUT" the new XML file, verify the existence of the file after 
> "PUTTING" it, then delete the old one. 
> 
> I'm curious why you are using this command and not the low level file 
> commands:
> open file
> read from file
> write to file
> close file
> 
> Bear in mind I'm not an expert on low level file commands. I am simply 
> curious about your method. 
> 
> Bob
> 
> 
>> Thank you VERY much for the insight.  I really need some help resolving this 
>> problem.  However
>> 
>>> Volume Corruption
>> 
>> On one file only?  I suppose that possible, but I think it's pretty unlikely.
>> 
>>> File was not saved where you thought it was saved. 
>> 
>> Then why would the original file have been deleted?
>> 
>>> User or app appears to have saved the file but in reality, didn't. 
>> 
>> Again, why would the original file have been deleted?
___
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: Deleted Files

2010-06-02 Thread Dan Friedman
Bob,

Thank you VERY much for the insight.  I really need some help resolving this 
problem.  However

> Volume Corruption

On one file only?  I suppose that possible, but I think it's pretty unlikely.

> File was not saved where you thought it was saved. 

Then why would the original file have been deleted?

> User or app appears to have saved the file but in reality, didn't. 

Again, why would the original file have been deleted?


-Dan 





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

> Too little information. I can think of at least one way: Volume Corruption. I 
> can think of another way: File was not saved where you thought it was saved. 
> Yet another way: User or app appears to have saved the file but in reality, 
> didn't. 
> 
> Bob
> 
> 
> On Jun 2, 2010, at 9:02 AM, Dan Friedman wrote:
> 
>> Hey...
>> 
>> I am writing compressed XML data to file on a server using the put command.  
>> Every now and then, I get a report from a user that when they go to read the 
>> data, they are getting an error.  When I look on the server, the file is 
>> gone!  Not empty, not zero K... just gone - nonexistent!
>> 
>> Let's assume for a moment that the file was there to begin with, and there 
>> is no one messing with the data and secretly deleting things.  It must be 
>> something in my app that is causing this.  But, what could it be?  Nowhere 
>> am I deleting a file.
>> 
>> Can anyone think of a way you could delete a file without actually deleting 
>> it?
>> 
>> I tried:
>> 
>>  put compress("") into url x
>> 
>> I thought that compressing "empty" might do something funny.  But it didn't, 
>> it just wrote some gargly-goop.
>> 
>> 
>> ANY thoughts out there??
>> 
>> Thank you in advance,
>> Dan

___
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


Deleted Files

2010-06-02 Thread Dan Friedman
Hey...

I am writing compressed XML data to file on a server using the put command.  
Every now and then, I get a report from a user that when they go to read the 
data, they are getting an error.  When I look on the server, the file is gone!  
Not empty, not zero K... just gone - nonexistent!

Let's assume for a moment that the file was there to begin with, and there is 
no one messing with the data and secretly deleting things.  It must be 
something in my app that is causing this.  But, what could it be?  Nowhere am I 
deleting a file.

Can anyone think of a way you could delete a file without actually deleting it?

I tried:

put compress("") into url x

I thought that compressing "empty" might do something funny.  But it didn't, it 
just wrote some gargly-goop.


ANY thoughts out there??

Thank you in advance,
Dan___
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


FTPeS

2010-03-24 Thread Dan Friedman
The server I am using that currently MANY, MANY, MANY of my users are writing 
to via ftp (in my standalone), changed this morning to FTPeS.  I am now getting:

 error 421 Sorry, cleartext sessions are not accepted on this server.

Can rev support FTPeS??  I am about to get a few thousand phone calls from 
angry clients!

HELP!

Thank you,
Dan___
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


Confusing Errors

2010-03-16 Thread Dan Friedman
Mark (and others),

Thanks for the info.   Here's some more...

The stack is not password protected.  I did use normal quotes (it wouldn't 
compile if I hadn't), the debugger presents quotes as single-quotes in it's 
errors.  And, currentTarget is a valid pointer to a field.  The stack wouldn't 
have opened if it wasn't.  Here is the snippet:

on mouseUp
  global activeRCMStudentIDNum
  global currentReportIDNum
  global currentTarget
  global GlobalModeOption
  global gStudentXML
  global pMode
  
  set cursor to watch
  lock screen
  
  put the IDNumber of currentTarget into fPane  --this is where it's tripping
  .
  .
  .

As you can see, it's the first [evaluated] line in the script.  If it matters, 
this is a modal dialog.  Also noteworthy, is that I can't repeat this error.  
These reports are coming from users.  Also, they are coming from <1% of my 
users.  So for more than 99% of my clients, this isn't failing!

Are you as confused as me yet?   :)

-Dan



> Hi Dan,
> 
> The Line Num may be zero because your stack is protected by a  
> password. Sometimes the debugging tools just don't work properly and  
> can't find the offending line. It also happens that the actual error  
> occurs in a Revolution script library, which the debugger can't figure  
> out.
> 
> Looking at the error message, I wonder whether you really put single  
> quotes about stack names. If so, this is probably a cause of errors.
> 
> Something might be wrong with the variable currentTarget. Perhaps, you  
> need to include something like:
> 
> if there is a currentTarget then
>-- your script
> else
>beep
>answer error "Error: can't find" && currentTarget with "OK"
> end if
> 
> It might help if you posted your script.
> 
> --
> Best regards,
> 
> Mark Schonewille

> >  
> > -
> >
> > Executing at 5:44:49 PM on Monday, March 15, 2010
> > Type: Object: does not have this property
> > Object: button 'Save' of card 'card id 1002' of stack 'EditComment'
> > Line: put the IDNumber of currentTarget into fPane
> > Line Num: 0
> > Hint: field id 1104880 of group id 1104445 of card id 1002 of stack
> > 'ReportWindow'
> >
>  
> -
___
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


Confusing Errors

2010-03-16 Thread Dan Friedman
Greetings,

My standalone is is throwing some errors that I can't seem to figure out.   The 
errors are being thrown because I included the "Bug Reports" option when I 
generated the standalone.   Here is the error:

-

Executing at 12:10:02 AM on Tuesday, March 16, 2010
Type: Handler: error in source expression
Object: button 'Save' of card 'card id 1002' of stack 'EditComment'
Line: if the hilite of btn 'Lang1' of stack 'reportWindow' = true then
Line Num: 0
Hint: field id 1106932 of group id 1106552 of card id 1002 of stack
'ReportWindow'

Comments: 

-

Why would the "Line Num" be zero?  The "if" is valid so I don't understand why 
there would be an "error is source expression".

Here is another one:

-

Executing at 5:44:49 PM on Monday, March 15, 2010
Type: Object: does not have this property
Object: button 'Save' of card 'card id 1002' of stack 'EditComment'
Line: put the IDNumber of currentTarget into fPane
Line Num: 0
Hint: field id 1104880 of group id 1104445 of card id 1002 of stack
'ReportWindow'

-

Object does not have this property?  It's a custom property.  In my experience, 
if a custom property doesn't exist, the value is empty.  So, why an error?  
Notice that "Line Num" is zero again.


ANY thoughts would be appreciated.

Thanks in advance,
Dan___
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


error message format

2010-03-11 Thread Dan Friedman
Ola...

I am reading a stack from a website in a standalone application.  99.99% of my 
clients are fine.  However, every now and then, they report this error (which 
is "the result"): 

socket timeout ###.###.###.##:80|6924

Now, I get everything ([IP]:[port]) except, what does the 6924 refer to?

Hope I'm not being to stupid!Thanks in advance...

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


Button Icon Placement

2010-02-23 Thread Dan Friedman
Hello...

Is there a way to have an icon on a button and have the label centered, but not 
under the button?  I know if you set the textStyle to left or right, then the 
icon is centered.  But, if you set the textStyle to centered, then the text 
lies below the icon.

My goal is to use a custom button graphic (up and down states) and the button 
name (label) would display normally, over the icon.

Any insight would be appreciated.

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


revWeb User Guide?

2010-01-31 Thread Dan Friedman
Greeting!

Is there a revWeb user guide?   I can't seem to find one in the Docs or online. 
 I have experimented with it and there are some things you can't do (or I am 
doing wrong) in revWeb that you can in a standalone.  It would be nice to have 
some documentation, or at least a list of "things you can't do in revWeb".

Thank you in advance,
-Dan___
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


Put Put

2009-12-07 Thread Dan Friedman
Hiya...

Isn't the "put" command blocking?  I find that if I call a 'put' to write to a 
server twice in fast succession, the second 'put' is handled BEFORE the first 
one is complete.  For example:

I made a new stack with this script:

on doSave
  put "ftp://admin:passw...@123.456.789.012/UploadTest.txt"; into ftpPath  --use 
a valid path
  put "This is a test" into url ftpPath
  if the result <> "" then
answer the result
  end if
end doSave

Then, I added a menu with a Command-S "Save" option with this script:

on menuPick pWhich
  switch pWhich
  case "Save"
doSave
break
  case "Quit"
--Insert script for Quit menu item here
break
  end switch
end menuPick

Then, type Command-S twice - quickly.  POOF!  You get "error Previous request 
not complete".  Shouldn't the first Save complete before the second one is even 
dealt with?  What am I doing wrong?

Thanks in advance,
-Dan___
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


Unknown error

2009-11-30 Thread Dan Friedman
Greetings!

I have a standalone that opens stacks that are posted on a website.  Most of 
the time it works great!  But, sometimes I get an error like this:

error 624,664,1
490,662,1
253,661,1

Anyone have a clue as to what this means?

Thank you in advance,

-Dan___
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: [Ticket#2009112510001138] Re: Technical support query: revLibURL Error

2009-11-28 Thread Dan Friedman
Dave,

Jacque suggested that I contact you directly for assistance.  Many of my users 
are reporting a error in my standalone.  See this post for details:


http://lists.runrev.com/pipermail/use-revolution/2009-November/131050.html

Jacque suggested that it's caused by the user stopping the script by typing 
command-period and that I simply set the allowInterrupts to false to prevent 
this.  Given the number of reports that I have gotten, while it possible, it's 
unlikely that ALL of them are manually halting the script.  And, if they are 
halting the script, it's because something is taking to long.  

So, my question is what EXACTLY is going on during this wait?  Is it waiting 
for a response while attempting to connect?  Is it waiting for a response after 
writing data?  


Thank you!

Dan Friedman
CEO, ClearVision Technologies, Inc.
Voice: 909/484-2052
Fax: 866/620-4796
http://www.clearvisiontech.com





On Nov 26, 2009, at 6:42 AM, Runtime Revolution Support wrote:

> Dear Dan,
> 
> Dave Cragg supports libURL, so I'd need to pass your request on to him. You 
> will
> probably get faster results if you write him directly. I do remember seeing 
> your
> post to the list, and he said the error typically occurs if a user aborts the
> script. Did you try setting the allowInterrupts to false? That may solve 
> things,
> on the off chance your users are hitting Cmd-period.
> 
> Would you like me to contact Dave for you? Or you can write directly to him at
>  if you'd rather.
> 
> Jacque
> 
> 11/25/2009 09:09 - d...@clearvisiontech.com wrote:
> 
>> Received from: Dan Friedman
>> 
>> My standalone is getting an error in revLibURL.  I can't find a description 
>> of
> the error.  I have searched the documentation and posted the question on the 
> forum.
>> 
>> Details here:
>> http://lists.runrev.com/pipermail/use-revolution/2009-November/131050.html
>> 
>> ANY assistance or guidance would be GREATLY appreciated.  My clients are not 
>> happy.
>> 
>> 
> 
> 
> 
> Jacqueline Gay
> --
> Runtime Support Team ~ http://www.runrev.com 
> Runtime Revolution ~ User-Centric Development Tools
> --
> 
> 

___
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


Error: wait aborted

2009-11-24 Thread Dan Friedman
Greetings!

Many of my users are reporting that my application is throwing this error (I 
have the debug options on when I created the standalone):

Type: wait: aborted
Object: button 'revLibURL' of group 'revLibraries' of card 'card id 
1002'
of stack '/Users/teacher/Downloads/myApp.app/Contents/MacOS/myApp'
Line: wait for messages
Line Num: 720
Hint: ulStartRead

This comes from "revLibURL", so it's not something I wrote.  I can't repeat 
this (and I've tried!) as I believe it's probably a local network timeout 
issue.  However, I'd like to know what this means.  Anyone know?  My 
application reads and writes data to a server.  So, it's coming from a read 
that's formatted like this:

put url ("http://www.myServer.com/folder/file.txt";) into dataToWrite

Or a write like this:

put dataToWrite into url 
("ftp://uName:pw...@xxx.xxx.xxx.xx/folder/file.txt";)

Any thoughts?  Thank you in advance for you time...

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


Move and Resize

2009-07-20 Thread Dan Friedman

Hello...

How do you move and object and resize it at the same time?  I want to  
do this with multiple objects at the same time.


For example, I want to move an image from point A to point B while  
increasing the size along the way.  I know the "move" command will  
take care of the move, but how does one resize it while it's moving?


Any insight will be helpful!

Thank you in advance,

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


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: Do I use encrypt?

2009-02-23 Thread Dan Friedman
Bernard,

You said "if you must use ftp"... Is there another choice that provides a
secure transfer that REV does support?

-Dan


> Hi Dan,
> I think you are out of luck when it comes to securing FTP.  We've had
> several discussions on the list about this (and I believe there is an
> enhancement request to support sftp).  The encrypt command is more for
> encrypting chunks of data rather than adding security to ftp transfers.
>  Securing ftp requires the use of a server that provides a security layer
> and on Rev supporting that form of ftp security.  Currently Rev does not
> support any kind of ftp security.
> Your best bet at the moment (if you must use ftp), is probably to use curl,
> and shell to that if it is available on your client platform (e.g. Linux or
> OS X, I think on Windows you might be able to package your own curl
> executable along with your Rev app).
> 
> Bernard
> 
> On Mon, Feb 23, 2009 at 6:42 PM, Dan Friedman  clearvisiontech.com>wrote:
> 
>> Greetings!
>> 
>> Currently, my application writes data to a server using the put command:
>> 
>>put someData into url ("ftp://uName:pw...@123.45.6.78/folder/file.txt";)
>> 
>> A client is requesting that I not use clear text for the username/password.
>> To do this, do I use the encrypt command?  If so, how is this done?  There
>> is no sample in the docs.
>> 
>> Thank you in advance!
>> 
>> -Dan


___
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


Do I use encrypt?

2009-02-23 Thread Dan Friedman
Greetings!

Currently, my application writes data to a server using the put command:

put someData into url ("ftp://uName:pw...@123.45.6.78/folder/file.txt";)

A client is requesting that I not use clear text for the username/password.
To do this, do I use the encrypt command?  If so, how is this done?  There
is no sample in the docs.

Thank you in advance!

-Dan


___
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


Rev Crash on HP Printer

2008-11-20 Thread Dan Friedman
Greetings.

If I type "answer printer" in the message box with the default printer set
to a HP LaserJet 1022n, Revolution 3.0 crashes.  Rev 2.5.1 does not.

Anyone experience this or know of a workaround?


Thank you in advance,

Dan


___
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


OS 10.5 character issue

2008-11-03 Thread Dan Friedman
Robert,

Sorry, I should have quoted the entire thread.  This is custom font where
the ellipsis is replaced with a check.  So, the absence of the ellipsis is
correct.

The issue is that on 10.5, the character is showing up in the wrong place!

-Dan



>> The check came on line 195
>> The ellipse came on line 201
>> 
>> I then ran the SAME routine on a 10.4 Mac:
>> 
>> The check came on line 201 AND 195!  The ellipsis character was not listed
>> at all.  Which it shouldn't be - it's where our check is.
>> 
>> 
>> Any thoughts?
>> 
>> Dan
> 
> Sounds like Apple fixed a bug. There is no reason to have checkmark
> twice and no ellipsis...


___
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


OS 10.5 character issue

2008-11-03 Thread Dan Friedman
Mark,

Thanks for the response.  Here's what I did (on 10.5):

repeat with i = 1 to 256
  put i &tab& numToChar(i) into line i of tempData
end repeat
put tempData into field 1 --set to my custom font

The check came on line 195
The ellipse came on line 201

I then ran the SAME routine on a 10.4 Mac:

The check came on line 201 AND 195!  The ellipsis character was not listed
at all.  Which it shouldn't be - it's where our check is.


Any thoughts?

Dan



> Hi Dan,
> 
> Have you run a numToChar(number) inside a repeat loop, to see what
> character and number the check mark is?
> 
>  
> 
> Regards,
> 
> Mark Stuart


___
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


OS 10.5 character issue

2008-11-03 Thread Dan Friedman
Greetings,

My [rev] application uses custom fonts.  We use the ellipsis character as a
check mark.  This has been working fine for many years.  However, with MAC
OS version 10.5, the character is being displayed as an actual ellipsis "Š",
not a check mark.  However, if I enter a check mark (control-v), I get the
correct check mark.

If I repeat the same scenario on OS 10.4, it all works correctly.

Looks like 10.5 is remapping the characters??  Does this make sense?  If so,
does anyone know a way to get the OS (or rev) to display the correct
character?

Thanks,
Dan


___
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


Is this a memory issue?

2008-10-01 Thread Dan Friedman
Greetings!

I have an standalone application that I am importing data into.  The data is
being imported into an array.  The data is just text - formatted as XML.
Each record being imported is pretty small - about 20 lines containing [on
average] about 365 characters.

The application processes the data [creating a new key in the array] VERY
fast until it hits about the 415th record.  Then, it begins to slow down.
With each new record it gets slower and slower.  It will eventually finish
without error.

This is happening on Windows only.  On a Mac, it whizzes through all the
records with no problem.

Is this memory?  Is there something that I can do?  Anyone got any
suggestions?

Thank you in advance!
-Dan


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


Standalone Settings ­ Bug Reports

2008-06-08 Thread Dan Friedman
Greeting!

Does anyone know how to use the "Bug Reports" section of the "Standalone
Application Settings" window?

I am testing a new application and I have the "Include Error Reporting
Dialog" option checked in my standalone, but all it's displaying is
"Execution Error".  Is there a way to get more information out of this error
dialog so I can track down the error?

Thank you in advance,
-Dan


___
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


SocketTimeoutInterval

2008-06-03 Thread Dan Friedman
Question

Does the socketTimeoutInterval effect the "Get" or "Put" commands when
reading/writing to an ftp/http url?  If not, is there a way to adjust the
timeout length of these commands?

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


Strange URL Behavior

2008-06-02 Thread Dan Friedman
Anyone got any ideas on this...

Within one of my rather long routines, I am doing a simple "get" of a text
file off my website.  When I run this routine, rev (2.9.0) seems to hang on
this line of code.  It's not locked up... And I can command-period to get
out of it.  It also acts this way in a standalone.

OK... Here's the strange part, if I put a breakpoint on this line, and click
"Run" when it breaks, it works fine.  If I put an "answer" before the get,
it works fine.

Anyone have any thoughts?  I only have a few hairs left to pull out!

Thank you in advance,
Dan 


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

2008-04-04 Thread Dan Friedman
I read that Valentina is a single user database.  From page 251 of the
Revolution user guide:

Valentina is a fast, efficient single-user database engine for
Mac OS X, and Windows systems.

I went to Valentina's web site, but yicks!  I can't make heads or tails out
of any of it!

-Dan


> Not at all! for starters:
> 
> OPEN SOURCE: PostGreSQL http://www.postgresql.org/
> FAST: Valentinahttp://www.paradigmasoft.com/

 
>> Greetings!
>> 
>> If I'm using Revolution standalones on a series of clients, and I want to
>> store semi-large to large amounts of data on a server and allow multiple
>> users access to this data simultaneously, is my ONLY choice MySQL - on a
>> server that allows remote SQL data access?  Are there any other options?
>> 
>> Thank you in advance,
>> -Dan


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


Data Storage

2008-04-04 Thread Dan Friedman
Greetings!

If I'm using Revolution standalones on a series of clients, and I want to
store semi-large to large amounts of data on a server and allow multiple
users access to this data simultaneously, is my ONLY choice MySQL - on a
server that allows remote SQL data access?  Are there any other options?

Thank you in advance,
-Dan


___
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: Rev on Web?

2008-04-03 Thread Dan Friedman
Devin,

No, no... Not a stack, an application!  Basically, we're replicating a web
app with no install.

On Windows, I can put "http://www.mydomain.com/myapp.exe"; in a web browser
and run it (ya have to click "run").  Can you do something similar for the
Mac - where no install is needed, or "player".

Thanks,
-Dan



> Dan,
> 
> Can you explain more about what you mean by "run it from the
> internet"? There should be no difference between the way this works
> for Mac vs. Windows. The most common way to do this, Mac or Windows,
> is to create a small standalone that simply opens a stack that is
> stored on a web server with the command:
> 
>go to stack URL "http://myserver.domain.com/mystack.rev";
> 
> If it's working for you in Windows but not in Mac, the most likely
> culprit is that the internet libraries are not being packaged with
> the standalone. In the standalone applications settings window, make
> sure that the Internet library is selected under Script libraries.
> (You'll have to Select Inclusions manually to be able to do this.)
> 
> Let us know if it works out.
> 
> Regards,
> 
> 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


Rev on Web?

2008-04-03 Thread Dan Friedman
You can make a Rev standalone and run it from the internet on Windows, no
problem!  Is there a way to do this on a Mac?

Thanks,
Dan


___
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


Using the "do" command

2007-12-12 Thread Dan Friedman
Greetings!

My goal is to get information/data from iTunes.  (i.e. the current song, the
next song, current song's album artwork, etc.)  On the Mac, this is a snap
with the "do tScript as appleScript" command.  However, on Windows (Rev
version 2.9) I am having trouble

The VB Script I am using is this:

set iTunes = createObject("iTunes.Application")
set currSong = iTunes.currentTrack
Wscript.Echo currSong.Name

If I save this script to a file named "getSongName.vbs" then double-click
the file, it works.  If I put the script in a field and do this:

do field 1 as VBScript;put the result &cr& it

All I get is "execution error".  My guess is the problem is the
"Wscript.Echo" command.  But, how do you get a variable/parameter to return
using VBScript?


Thank you in advance!

-Dan


___
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


Opening a PFD - What am I doing wrong??

2007-10-22 Thread Dan Friedman
Ken,

I was using Windows Vista and it was failing.  So, after reading your
response, I tried the "launch document" with Windows XP - and it worked.
Frustrated and tired, I shut everything off and called it a night.  This
morning, with a fresh cup of coffee, I sat down in front of my computer to
duke it out with Vista.  But, for no apparent reason (except for restarting
the computer) it started working!

Ah, I love Windows.  Especially Vista.  :~

Thanks again,
Dan


> Odd, your script works for me with "launch document" under 2.8.1... is
> it possible the path to the PDF may be an issue? Try renaming the pdf
> to something simple and putting it on your desktop... does it work now?


___
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


Opening a PFD - What am I doing wrong??

2007-10-21 Thread Dan Friedman
Does anyone know why this doesn¹t work?  I can¹t seem to get a PDF to open
(in Acrobat) on Windows.  Rev is doing it successfully in their docs (they
have a revGoPFD command that I can¹t trace into.  They are calling it from
mouseUp in the script of card ³User Guide² of stack ³revdocumentation.rev².
I have tried a bizillion variations of the script below.  I can get Acrobat
to launch, but if I supply a document, it fails ­ I get a hour glass for a
moment, and then nothing.  And the result is empty.  UG!

on mouseUp
  answer file "Select PDF:"
  put it into fPath
  
  --launch document fPath ‹ This doesn¹t work either!

  put 
queryRegistry("HKEY_CLASSES_ROOT\AcroExch.Document\shell\open\command\")
into acroPath
  put word 1 to -2 of acroPath into acroPath
  put char 2 to -2 of acroPath into acroPath
  
  --launch acroPath  --THIS WORKS
  launch fPath with acroPath  --THIS FAILS!!
end mouseUp


Thank you in advance,
Dan
___
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


AppleScript on Windows?

2007-09-02 Thread Dan Friedman
Greetings!  This isn't really a "revolution" question, but...  It's easy to
get the album art from iTunes on a Mac with AppleScript.  Anyone know how to
get the album art from iTunes on a Windows computer?

Thank you in advance,
-Dan


___
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


Unicode Wrapping

2007-08-24 Thread Dan Friedman
Hello -

I have some Unicode text (Vietnamese) in a field.  The characters are
displaying and printing correctly.  The textFont is set to ",Unicode".
However, when Revolution wraps this text, it is splitting the words in half.
An English equivalent would be:

|---|
| This is a test.  This is only a test.  If this had be |
| en an actual emergency, you would have been informed  |
| where to tune in your area for official information a |
| nd news.  This concludes this test.   |
|---|

Do I have to somehow tell Revolution that the field contains Unicode text so
it wraps correctly?  Any thoughts will be helpful!

Thank you in advance,

Dan


___
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


Referencing a stack that is not open

2007-07-13 Thread Dan Friedman
Hello!

Can anyone tell me what exactly happens when you ask for information about a
stackfile that is not open?  For example, say on your desktop you have a
stackfile named "testStack.rev" and you call this:

put the customKeys of stack "/Users/Jimbo/Desktop/testStack.rev"

Rev WILL report the correct data.  However, the stack doesn't appear to have
actually been opened.  What actually happens?  Did Revolution read the
entire stack file, get the requested data, then flush it from memory?  Did
it read only what it needed?

Any insight would be appreciated.

Dan


___
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


Rev with Office 2007

2007-06-05 Thread Dan Friedman
Anyone experienced anything like this...  I have a client that claims ever
since he upgraded to Office 2007 (on his WindowsXP computer), my application
(a Revolution Standalone) crash when you issue a "answer file", "answer
folder" or "ask file" command.  Perhaps Office 2007 has modified the OS's
dialog box and rev is confused?

I have had him try standalones generated with Rev 2.6.6 and 2.8.1.

Anyone have any thoughts, suggestions or workarounds?

Thank you in advance,
-Dan


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


Printing Crash

2007-03-29 Thread Dan Friedman
Greetings...

CRASH!  Anyone have any thoughts??

I have one field on a stack.
I have set the textFont of the field to ",Unicode".
I have pasted some Vietnamese text into this field.

The text looks perfect on screen.  I choose "Print", and CRASH!  Any
thoughts?

Mac OS 10.4.9
Rev 2.7.4 (and 2.8.0)

If you want to see for yourself, I have posted this stack on revOnline under
user "ClearVision".  Stack name "Unicode Printing".

I hope you see something I don't!!

Thanks in advance,
Dan


___
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


Installing a Standalone on Windows

2007-03-26 Thread Dan Friedman
Greetings!

Has anyone found a good solution for installing full applications on
Windows?  My app has multiple file types, file extensions and icons.  I have
fonts to install as well and adding the application to the Start menu and
file associations.

In the past I have used InstallShield.  Ug... just typing the phrase
"InstallShield" makes me a little dizzy!

What are you using??

Thanks in advance,
Dan


___
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


Comparing Strings

2006-11-14 Thread Dan Friedman
In case your interested, here is the work-around I came up with for the
problem:

---

put equalStrings("078e-16703","084E-11702")

function equalStrings string1,string2
  if length(string1) = length(string2) then
if string1 is in string2 then
  return true
end if
  end if
  return false
end equalStrings

---

Pretty simple, I know... But it works  :)

-Dan



> How is this possible?  Put this in the message box:
>
>   put "078e-16703" = "084E-11702"
>
> Revolution (2.6.1) returns "true".  Any advise?
>
>
> Thank you in advance,
> Dan

___
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


Comparing Strings

2006-11-14 Thread Dan Friedman
How is this possible?  Put this in the message box:

  put "078e-16703" = "084E-11702"

Revolution (2.6.1) returns "true".  Any advise?


Thank you in advance,
Dan

___
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: Send Menupick?

2006-01-23 Thread Dan Friedman
Sivakatirswami,

Try this...

send "menuPick" && "Working Guide" to btn "Help"

Hope that helps.

-Dan


> I would  like to have a script in one menu button  on one card (A),
> take the user to another card  (b) and trigger a menu choice on a
> button on Card B
> 
> This seemed to be obvious enough:
> 
> --> pull down menu on Card A
> on menuPick pitem
>  switch pItem
>  case "User Guide"
>go to card "User Guide"  # Card B
>send menupick ("Working Guide") to btn "Help" # a tabbed menu on
> card B
>break
>  end switch
> end menuPick
> 
> 
> but I get an error for this line:
> 
> send menupick ("Working Guide") to btn "Help"
> 
> and the script error is saying it thinks this is a function call and
> not an attempt to send a msg?
> 
> Send MouseUp  works, but  send Menupick doesn't? (of course it
> probably does, I'm just doing something wrong...
> 
> Insights?
> 
> 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: what to do after a Get URL?

2005-08-18 Thread Dan Friedman
Jon,

When you use the statement:

 get url "ftp://a.b.c/d.txt";

The url is placed into the local variable "it".  Therefore you can access
the contents by simply getting "it" (put it into tUrlData).  Or, just put
the url into your own variable.  For example:

 put url "ftp://a.b.c/d.txt"; into urlData.

To put the data into your local computer as a file, try this:

 on getURLText
   put url "ftp://a.b.c/d.txt"; into tUrlData
   ask file "Save As:"
   put it into fPath
   if fPath = "" then
  exit getURLText
   end if
   put tUrlData into url ("file:" & fPath)
 end getURLText

Hope that helps...

-Dan


> I understand how to write the statement
> 
> get url "ftp://a.b.c/d.txt";
> 
> or some such.  OK, so now the file is somehow "in" the computer, with
> the Get.
> 
> What I don't "get" (so to speak) is how to put that data into my local
> computer as a file.  I assume it is something like
> 
> put url "file://something"
> 
> but I'm not sure about the "something".  "file://c:/dir/filename.txt"?
> "file://c/dir/filename.txt"?  And I'm not sure how to specify the data
> to "put" in the Put statement: is it implicit (one of those magic words
> like "it" or "this" or something)?
> 
> I'm sure this is simple/obvious, but only if you know it...
> 
> :)
> 
> Jon

___
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: Endless ranting and rude insults

2005-06-29 Thread Dan Friedman
function endlessRanting revUserAction
  switch revUserAction
  case "Whining"
put 20 into minutesWasted
put 0 into amountLearned
put 0 into numFriendsMade
break
  case "Ranting"
put 10 into minutesWasted
put 0 into amountLearned
put 0 into numFriendsMade
break
  case "Rude"
put 20 into minutesWasted
put 0 into amountLearned
put -10 into numFriendsMade
break
  default
put random(100) into amountLearned
put random(the number of lines in revUserBase) into numFriendsMade
put 0 into minutesWasted
break
  end switch
  
  return minutesWasted,amountLearned,numFriendsMade
end endlessRanting

___
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


Piracy

2005-06-13 Thread Dan Friedman
Greetings!

Has anyone come up with a decent way to deal with piracy?  I'm getting ready
to release a commercial application and wondered if there is anyway to stop
someone from just giving it to a friend.

[I would like my application to function off-line.  So, doing a look-up via
the web is out.]

Any thoughts, ideas or solutions out there?

Thank you in advance,
Dan

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Windows ICOs

2005-06-09 Thread Dan Friedman
Hi all!

Anyone got a handle on making an icon file (ico) for use when making a
standalone in Rev 2.5?  It would seem easiest to simply edit the
"genericapp.ico" in the "Sample Icons" folder.   But, what application do
you use to edit it?

Thank you in advance,
-Dan

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Windows ICOs

2005-06-09 Thread Dan Friedman
Hi all!

Anyone got a handle on making an icon file (ico) for use when making a
standalone in Rev 2.5?  It would seem easiest to simply edit the
"genericapp.ico" in the "Sample Icons" folder.   But, what application do
you use to edit it?

Thank you in advance,
Dan

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Unicode

2005-05-06 Thread Dan Friedman
Thomas,

I don't know what your project is, but thought you might want/need to know
that Rev does NOT print unicode text.  I have spoken with Jacqueline and she
tells me "they are working on it".

Hope this doesn't ruin your day...

-Dan

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Is this true? Rev doesn't print Unicode?

2005-04-27 Thread Dan Friedman
Hello...

Does Revolution not print unicode text?

I recently upgraded Rev to version 2.5.1 and spent 2 weeks updating my
application to support Unicode.   I went to test the printout and nothing
printed!!  Does anyone know if there is a way to print Unicode?  Or, is this
a bug?  If so, anyone know the status of printing Unicode?

Thanks in advance,
Dan

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Continued Help with Unicode Text

2005-03-29 Thread Dan Friedman
Hello again...

I've been fiddling with this for days now.  If you remember, my goal was to
save unicode text in a single line - while preserving returns.   This is the
only way I could get it to work.  Obviously, this creates a larger file on
disk.  Do you see any problems with this method that will kill me down the
road?  Do you see a better way to do this?


-- save the unicode text from a field to a file

  set the useUnicode to true
  put field 2 into jText --contains single or multi-lingual text
  put 0 into L
  put 1 into charNum
  repeat until charNum > the number of chars in jText
add 1 to L
if char charNum of jText = cr then
  put "" into item L of textToWrite
  add 1 to charNum
else
  put charToNum(char charNum to charNum+1 of jText) into \
  item L of textToWrite
  add 2 to charNum
end if
  end repeat
  
  put textToWrite into url ("file:/Users/aUser/Desktop/jappTest2.txt")


-- read the file and restore the text

  put url ("file:/Users/aUser/Desktop/jappTest2.txt") into tText
  set the useUnicode to true
  
  repeat for each item tChar in tText
if tChar = "" then
  put numToChar(10) after jText
else
  put numToChar(tChar) after jText
end if
  end repeat
  
  set the unicodeText of field 2 to jText

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Help with Unicode Text

2005-03-28 Thread Dan Friedman
Hi folks...

Anyone know how to replace a return char in a unicode string?  If you do
this:

put field 2 into jData --field 2 contains Japanese text
replace cr with "" in jData
put jData into url ("file:/Users/user1/Desktop/jappTest.txt")

Then, do this:

put url ("file:/Users/user1/Desktop/jappTest.txt") into jData
replace "" with cr in jData
set the unicodeText of field 2 to jData

It puts in incorrect data.  If you don't do the replace stuff, it works
fine.  The purpose of this is that I want my data saved in single lines.  If
I don't change the cr's, I'll end up with multi-line data written to disk.

Thanks in advance,
Dan

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Is this possible...

2005-03-22 Thread Dan Friedman
Got a question...

Is it possible to update the Rev engine in a standalone without doing a
reinstall.  Let me explain:

I have a stack that I have made into a standalone.  The standalone, when
launched, opens other stacks that contain the workings of my application.
Now, whenever I make changes to my application, I can update the other stack
files without having to have my clients reinstall.  In fact, I do this via
the web.  I have a "Check for Updates" in my "Help" menu that can check my
web site for updates and download newer versions automatically.

Now that the Rev Engine has been changed, I need to update the standalone.
Is there any way to do this in script?  Or, do I have to have my clients
manually download the new engine (the standalone)?  I don't think you can
write over a running application... Or can you?

Any thoughts or insight would be appreciated.

-Dan

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Random #'s

2005-01-27 Thread Dan Friedman
Dwayne,

I'm sure there's a better way to do it, but how about this...

function makeRandomNumberList maxNumber
  put 0 into i
  repeat
put random(10) into thisNum
if thisNum is among the items of fNumbers then
  next repeat
end if
add 1 to i
put thisNum into item i of fNumbers
if i = 6 then
  exit repeat
end if
  end repeat
  return fNumbers
end makeRandomNumberList


> Hi All, 
> I am using the following code to generate a field of 6 random numbers.
> 
> repeat 5 times --generate list of 5 random numbers between 1-10
> put random(10) & "," after tRnum
> end repeat
> delete last char of tRnum --delete last comma
> put tRnum into fld "numbers"
> 
> this works fine but some numbers are repeated in the field, e.g (1,2,3,1,5)
> How can I include only unique numbers?
> 
> Cheers..Dwayne

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Printing Hell

2005-01-24 Thread Dan Friedman
I don't know if this will help, or if this even pertains to the issues you
are experiencing, but here's what solved my Windows printing problems in
REV...

When developing my applications, I had nothing but problems when printing on
Windows.  Font substitutions, misalignments, and general "odd looking"
results were more common than not.  If I fiddled with the printer's settings
long enough, I could eventually get it to print - on that printer!

Over the course of a couple of years (and MANY headaches and disgruntled
customers), it is my belief that Revolution does NOT properly load the print
driver when the application [standalone] launches.  As you may or may not
know, opening the printer dialog in Windows loads the print driver to the
application.  So, simply calling a "answer printer" before a print command
solved the problem.  Ever since I started issuing the "answer printer"
command before printing, the printing problems have ceased.

I only have to call "answer printer" once.  Subsequent print commands (in
the same application instance) don't require the "answer printer" command to
be called again.  So, here is my standard printing routine:

on doPrint
  global didPrintSetUp
  
  -- do your stuff here
  
  if not didPrintSetUp then
answer printer
if the result <> "Cancel" then
  put true into didPrintSetUp
else
  exit doPrint
end if
  end if
  
  print this card
end doPrint


Hope that helps.

-Dan

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Installers

2004-07-30 Thread Dan Friedman
Dan,

I don't actually use rev as my installer.  I wouldn't trust Rev (or my
coding) to touch someone's system... to many things could go wrong
(especially on Windoz!)

To install on OS 7/8/9, I use "StuffIt InstallerMaker" from Aladdin Systems,
Inc.  For OSX, I use Apple's "PackageMaker".  For Windows, I use
InstallShield Express (www.installshield.com).

Not only do I get clean installs, these are "standard" installers.  Just
about everyone who's ever used a computer is familiar with the look and feel
of the install -- makes my products look like the "big boys".

Hope that helps.

-Dan


> Dan
> 
> How do you install them with a Rev app? If that were possible, I think
> one could do that with other fonts.
> 
> Dan
> (nice name, BTW).
> 
> :-D

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Cross-platform fonts...what is everyone else doing? -and- More font woes

2004-07-30 Thread Dan Friedman
Greetings...

A couple of years ago, I dealt with all this cross-platform font stuff.  I
got so tired of trying to work it out that I finally came up with a solution
that has worked perfectly ever since.  What did I do you ask?  Well, it
wasn't cheep, but I hired a fontographer to build two font families (plain,
bold, italic, bold-italic) for me.  A serif, and a san-serif.  They look a
lot like a subset of Helvetica and Times.  They are specifically designed
(spacing, kerning, height, bitmaps and all the other properties) to be
IDENTICAL on both Macs and Windows computers.  I've tested them on Mac 7.1
to 10.3 - Win 95 to XP and have had no complaints from my clients.  I just
install them with my software and *POOF*, all my font issues are gone!

Just thought I would share what I did.

-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: anyone here implemented an answerList function?

2004-07-23 Thread Dan Friedman
Andre,

Yeah... I made one.  It's in the "User Contributions" section.  Look for
"askList"

-Dan


> Date: Fri, 23 Jul 2004 00:57:08 -0300
> From: Andre Garzia <[EMAIL PROTECTED]>
> Subject: anyone here implemented an answerList function?
> To: How to use Revolution <[EMAIL PROTECTED]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=MACINTOSH; format=flowed
> 
> Hi Folks,
> 
> did anyone here implemented an answerList function, like the answer
> function and give ir an array and it returns the selected choice, all
> in a nice modal dialog?
> 
> cheers

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Demo Show Stopper - Save File Dialog

2004-04-26 Thread Dan Friedman
Dave,

Your absolutely right - without question, RR should fix this issue.  I guess
I'm more lenient about small issues like this.  I get upset about the big
issues.  Several years ago there was a bug in the toolTip property.  If you
had a toolTip assigned to ANY object, the standalone would crash when you
issued a quit command on Macintosh systems.  This got me to stand up and
shout.  Not so much because there was a bug, but because the bug wasn't
documented anywhere.  At the time, I was not skilled enough to track down
the problem.  I ended up hiring an outside consultant to track down the
problem - which they did.  RR fixed the problem in the next release.  And,
RR is getting better about fixing problems and it's support policy.  Then
again, this list is better than ANY support you'll find anywhere!!!

Let's not forget that no application is 100% bug free.  Not WindowsXP, not
OSX, not Word, not Photoshop, not RR, and certainly not my applications!
But, we all continue to do our best and hammer out the bugs.

I have used RR for 3 years now.  I know it well enough to know it's
stability.  And, I can tell you, in my experience, it's pretty strong.  I'll
admit that RR's IDE is a bit quirky.  There are some things (like the save
prompt) you just have to let go by [until RR fixes them].  In my case, I'm
not so concerned about RR's IDE as I am my final product.  I deploy all my
products as standalones.  So, I test as a standalone, not in the IDE.  If it
works as a standalone, then I move on to the next thing I can make money
with.

I used to work in C++.  The problems I ran into with Metrowerks' IDE and
their libraries (Not to mention C++ builder - Jeez!!) are FAR more
devastating and catastrophic than I have ever seen in RR.  And, as an added
bonus, I write way less code, in literally a fraction of the time!

All the best,
Dan


 
> Well it isn't actually "solved" by a single click is it? Really it's
> swept away under the carpet by a "single click". If something as
> simple as this doesn't work relaibly, then what else doesn't work?
> What else has been swept under the carpet?
> 
> It's not so much that this problem exists that is worrying, but
> rather that know one seems to know how to even start to know where to
> look to even try and fix it!  And your advice is to ignore it!
> Jeez
> 
> This is supposed to be a "Professional" software development package
> - I don't think that ignoring a problem like this is in any way
> "professional".
> 
> And you are right, it's not "worth" spending 12 hours on, it's not
> worth spending even 10 minutes on, but if I can't make it work then I
> there will be no confidence in RR as development tool and there will
> be no confidence that there is any support to get problems like this
> resolved.
> 
> Sorry to be sound tetchy but I am, I just cannot beleive that we have
> paid over $400 for something that has basic problems like this in it.
> I mean if you can't save reliably (and then know you have saved) then
> what's the point?
> 
> All the Best
> Dave


>> Dave,
>> 
>> I have this very same problem.  Here's what I do...  When I get the "Do you
>> want to save this Stack?" dialog, I simply click "Save" and move on.  It may
>> be a little annoying, but in my opinion, it's not worth spending over 12
>> hours on.  Revolution is an amazing product!  I certainly hope you don't
>> stop using it over something that can be solved by a single click.
>> 
>> -Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Demo Show Stopper - Save File Dialog

2004-04-26 Thread Dan Friedman
Dave,

I have this very same problem.  Here's what I do...  When I get the "Do you
want to save this Stack?" dialog, I simply click "Save" and move on.  It may
be a little annoying, but in my opinion, it's not worth spending over 12
hours on.  Revolution is an amazing product!  I certainly hope you don't
stop using it over something that can be solved by a single click.

-Dan



> Hi,
> 
> Ok more information on this!
> 
> In the Stack that brings up the Save Dialog, I have taken out the
> preOpenStack handler (well dummied it, I now just have a beep in it),
> so no Properties (or anything else) get set at all. The dialog still
> appears when the Close Box is pressed.
> 
> I tried this:
> 
> Enter Browse Mode.
> Call up the dialog in question.
> In the "Application Browser", select the Stack and Control+Click to
> get the Menu up and then Save the Stack in question. Saves ok.
> Now without doing anything else and without having pressed any
> controls in the Stack, I hit the Close Box and I STILL get the "Do
> you want to save this Stack?" dialog.
> 
> I just cannot beleive that RunRev is so buggy and so hard to work
> with! Surely there is a way to track this down?
> 
> Is there *anything* I can do get get this resolved? Can anyone at
> RunRev help me? I've been working on this for the best part of 12
> hours yesterday and today and am really running out of ideas and time.
> 
> All the extra productivity gain I might have received by using RunRev
> is fast slipping away.
> 
> Thanks to everyone that has helped in this.
> 
> All the Best
> Dave

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Re: Some Basic Misunderstandings/Problems with RunRev - aka Help!

2004-04-14 Thread Dan Friedman
Dave,

>> 1 (& 2).  How do I get the Quit and Preferences Menu Items to work
>>  correctly on MacOS Classic and X?
> Thanks a lot, I'll give this a try. But is there no document that
> describes how to do this? Also why is the readme file wrong??

It is documented.  I found it by searching for "quit" in the transcript
dictionary, then choosing "How to respond to quitting an OSX application"
from the "See Also" option.  More times than not, the "see also" menu leads
me in the right direction.

In regards to saving the state of a checkbox:

I don't save stacks from a standalone.  In my opinion, it's just a bad idea.
Mainly because when I update my product down the road, those stacks may
become problematic because they will become out of date.  Instead, I save to
a text file... Like a "preferences" file.

I have a set of routines that will iterate through a group of objects saving
the state of each control (buttons and fields).  When my app launches, I
load the data from the text file into a global variable called gPrefs.
Then, when I open a stack, I call

setPaneData "groupName",gPrefs

When the user click the "OK" button, I call:

put collectPaneData("groupName") into gPrefs
put gPrefs into url ("file:" & prefPath)

Pretty simple, and it works quite well!


If you (or anyone else) is interested in these routines, let me know and
I'll be happy to send them to you --> [EMAIL PROTECTED]

Hope that helps.

-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Some Basic Misunderstandings/Problems with RunRev - aka Help!

2004-04-13 Thread Dan Friedman
Dave,

I'm not a Revolution "pro", but hope this helps...
 
> 1 (& 2).  How do I get the Quit and Preferences Menu Items to work
> correctly on MacOS Classic and X?

It took me a while to figure this one out... but, here's what works for me.
Put this in the stack script of your main stack (of course change
"someStack" to your stack's name):

on appleEvent aeClass,aeID
  if aeClass & aeID = "aevtpref" then
send "menuPick" && "Preferences..." to btn "Edit" of stack "someStack"
  else if aeClass & aeID = "aevtquit" then
send "menuPick" && "Quit" to btn "File" of stack "someStack"
  end if
end appleEvent

> 3.  I am confused as to when RunRev saves Stack/Card Data. For
> instance in a simple Stack with one Card that has one Checkbox and OK
> and Cancel buttons. On the OK button I have the following Script:
> 
> on mouseUp
> save this stack
> close this stack
> end mouseUp

If it's a standalone, it won't save.

> and on the Cancel Button:
> 
> on mouseUp
> close this stack
> end mouseUp

This of course, will work in a standalone.

> If I then make a standalone (with the CheckBox initially unchecked)
> and then run it and then click the checkbox so it's checked and press
> OK, when I next load the Stack, should the Checkbox be on or off?

It will be off.  In a standalone, this won't work -- you can't save a stack
that is a standalone - period.  But, you can:

(1) save and load the state of a checkbox (or other controls) - this is my
personal preference.
(2) have your standalone open a stack file.  Now it can be saved.

Hope that helps.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Password Field

2004-04-12 Thread Dan Friedman
Yves,

Thanks!  That works great.  Don't you just love this list?!!!




>> Good morning!
>> 
>> Does anyone have a routine for typing in a field and displaying
>> bullets -
>> but preserving the text?  As if it was a password field.  I am making
>> a user
>> login window with "Username" and "Password" fields.  Don't you think
>> the
>> "password" field should display bullets (or asterisks)? I could write
>> it
>> myself... But I figured someone out there has done this already. :)
>> 
>> Thanks!
>> Dan


> I have in my main stack a field named "Pass"  with this script in the
> fld
> 
> 
> local thisPassword
> on returninfield
>  get thisPassword
>  if it is " then
>go to stack 
>  else
>answer "Invalid password !"
>  end if
>  close this stack
> end returninfield
> 
> on enterinfield
>  returninfield
> end enterinfield
> 
> on keydown whichKey
>   put whichKey after thisPassword
>  put "*" after field "pass" --asterisk or whatever another char you
> want
> end keyDown
> 
> on backspaceKey
>  put empty into field "pass"
>  put "" into thisPassword
> end backspaceKey
> 
> on deleteKey
>  put empty into field "pass"
>  put "" into thisPassword
> end deleteKey

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Password Field

2004-04-12 Thread Dan Friedman
Good morning!

Does anyone have a routine for typing in a field and displaying bullets -
but preserving the text?  As if it was a password field.  I am making a user
login window with "Username" and "Password" fields.  Don't you think the
"password" field should display bullets (or asterisks)? I could write it
myself... But I figured someone out there has done this already. :)

Thanks!
Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Keeping a field scroll at the bottom as lines come in

2004-01-25 Thread Dan Friedman
Rob,

Let me also welcome you to Revolution!  When I add text to list fields, I
usually want to hilite the new line of text.  So, here's what I do:


on addALineOfText someText, fieldName
   put the number of lines in field fieldName into nLine
   put someText into line nLine+1 of field fieldName
   set the hilitedLines of field fieldName to nLine+1
end addALineOfText


Setting the hilitedLines of a list field will automatically scroll the field
to that line.

Hope that helps...

-Dan



> Greetings, My first post, and a naive one, I suspect..
> 
> I am using an interactive mode to send a line of text to the end of a
> field ('after') which is visible. Then, as the field fills, it doesn't
> scroll to show the last line, it just moves the thumb upwards.
> 
> I'd really like to see the last line entered, irrespective of the
> length of the field. Can this be done?
> 
> Thanks
> 
> 
> -- 
> All best wishes,
> Rob

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT/ANN] Now I'm a father

2004-01-02 Thread Dan Friedman
Malte,

When my son was born, my father-in-law said It best...

"The new boss is in town!"  :)


Congratulations on the addition to the Brill family!

-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution Digest, Vol 3, Issue 76

2003-12-20 Thread Dan Friedman
Richard,

I wouldn't have much use for it...  I already have a CODE/DLL/Bundle that I
use in Rev for spell checking.

-Dan


> Date: Thu, 18 Dec 2003 11:31:04 -0800
> From: Richard Gaskin <[EMAIL PROTECTED]>
> Subject: Apple spelling checker?
> To: Rev Discussion List <[EMAIL PROTECTED]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="US-ASCII"
> 
> How difficult/desireable would it be to have a means of using OS X's
> Spelling Checker application service within Rev?
> 
> I have a client gearing up for a heavy production cycle and we're looking at
> options for incorporating QA conveniences into his workflow.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple question--what handler am I in?

2003-12-10 Thread Dan Friedman
Mark,

I keep the "Show Handler List" (found in the "View" menu) option on.  It
displays a list of the script's handlers and keeps the active handler
highlighted.

Hope that helps,

Dan


> In a script window, is there any way to automatically know what handler you
> are in the middle of (i.e. without scrolling to its opening or closing
> declaration)?

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Ouch! Can't open that file...

2003-11-26 Thread Dan Friedman
Tim,

Thanks for the head's up!

If all you want to do is check the existence of a file, ever think of using
"If there is a file tFilePath then" instead of "open file tFilePath for
read"?  This way you don't have to worry about changes in the engine.

Just a thought...

-Dan

 
> Hello listers!
> 
> I just got burned by a change made sometime after vers 1.1.1, and I
> thought I'd pass it along.
> 
> In some parts of my app, I use "Open File for Read" and check the result
> for "Can't open that file."...therefore determining if a file exists or
> not.  Well...somewhere a change was made from "Can't open that file." to
> "can't open that file".  Note the subtle differences...the leading char
> is now lower case (probably NOT a problem) BUT... the "." at the end is
> gone!
> 
> My workround (because I'm still straddling 1.1.1 and 2.0.3 in my
> development for EXACTLY this reason) will be to use:
> 
> if the result contains "can't open that file" then
> 
> Hmmm...wondering what else changed...
> 
> Best Regards and Happy Thanksgiving to all from beautiful Ohio Amish
> country!
> 
> Tim Ponn

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Two questions

2003-11-10 Thread Dan Friedman
Tom,

Here's a thought... If the user is going to change resolutions while your
program is running, then unless they change the resolution from the menubar,
they will have to leave the application.  You could create a
checkForResChange() function in a resume message.

Just a thought...

-Dan


> Dan,
> 
> I always assume that a user will do what ever I don't want them to do
> and as such if this 'problem' is not corrected then I will definitely
> put a clause like this in my ReadMe also. 99.9 will never do it but
> that .1 is still my concern as a software developer.
> 
> Thanks.
> Tom

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Two questions

2003-11-10 Thread Dan Friedman
I just put in my User Guide: "If you change your screen's resolution, you
will need to restart the application."  -- problem solved.

Of course, 99.9% of my users (like most everyone's users) didn't know you
could change the resolution!!


Just a thought,
-Dan




> Jacqueline,
> 
> OK, but "the end user CAN adjust the window" in this case by changing
> the screen size and it WILL mess up the graphics in the app window so I
> do understand what you are saying but it is not FOOL proof - that being
> the problem, there will be someone(maybe a fool) who will change the
> size and it will screw up my app.
> Again, Jason's answer will fix it if they quit out and restart my app.
> But I was hoping for a good way to check during runtime and not when
> reopening my app after the end user screws it up. Once screwed up it
> does not go back with out Jason's solution. and in my opinion that
> would be a bug.
> 
> FWIW
> Tom

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Moving Buttons...

2003-11-04 Thread Dan Friedman
How would you do this...

On a card, you have a bunch of buttons that are grouped together (group
"ButtonGroup").  You want to let the user move the buttons around - but you
want to prevent any of the buttons from overlaping.

I have this in the card script to handle the movement:

on mouseMove
  if not the hilite of btn "lockChanges" then
if the mouse is down then
  if the short name of the owner of the target = "ButtonGroup" then
put the short name of the target into butName
set the loc of btn butName to the mouseLoc
  end if 
end if
  end if
end mouseMove

How do you get the button that is being moved to not collide with another
button.  And, if possible, how can you get the moving button to "snap" to
the closest button?

Any advise (or code snippet) would be appreciated!

Thanks!
Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Search and Replace

2003-10-18 Thread Dan Friedman
Ken,

As usual, you always come to the aid of others.  Thanks!  This seems to work
great!

-Dan

> Here's a replacement function - it's a little "messy" (because I have to
> wrap 'whatText' in spaces at the beginning and strip them at the end),
> but it works:

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Search and Replace

2003-10-17 Thread Dan Friedman
Hello all!

I'm having a problem with a function that Ken Ray helped me with.  I tried
to fix it myself, but I don't really understand the matchChunk function.

The goal is to pass searchAndReplaceMaleToFemale() whatText and return a
female version of whatText.  But it's not quite working correctly.  When I
pass:

he him himself his he's boy guy He Him Himself His He's Boy Guy

I get:

he her herself her she's girl gal He Him Himself His He's Boy Guy

There seems to be a problem if a replaceable word is the first word of a
sentence, and obviously, capitalization seems to be an issue.

Below is the searchAndReplaceMaleToFemale() function.  Any ideas?


function searchAndReplaceMaleToFemale whatText
  local tStart,tEnd

  put "he,him,himself,his,he's,boy,guy" into SearchWordsMale
  put "she,her,herself,her,she's,girl,gal" into SearchWordsFemale
  set the wholeMatches to true
  set the caseSensitive to false
  repeat forever
get 
matchChunk(whatText,"[^A-Za-z0-9](boy|h(e|im|is|imself|e's)|guy)[^A-Za-z0-9]
",tStart,tEnd)
if it is true then
  put char tStart to tEnd of whatText into tFoundChunk
  put (charToNum(toUpper(char 1 of tFoundChunk)) = charToNum(char 1 of
tFoundChunk)) into isUpper
  put itemOffset(tFoundChunk,SearchWordsMale) into tItem
  if tItem <> 0 then
put item tItem of SearchWordsFemale into temp
if isUpper then put toUpper(char 1 of temp) into char 1 of temp
put temp into char tStart to tEnd of whatText
  else
-- you decide... bail? error out? ignore?
  end if
else
  exit repeat
end if
  end repeat
  return whatText
end searchAndReplaceMaleToFemale

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: path names to CD across platforms

2003-09-05 Thread Dan Friedman
Byron,

Try this...  (This assumes that you pass a movie path without the drive
name/letter, and the CD (for the Mac) is named "myCDROM")...


 put getMoviePath("datafiles/movies/movie001.mov") into mPath


 function getMoviePath fileName
   if the platform = "MacOS" then
 if there is a file ("myCDROM/" & fileName) then
   return ("myCDROM/" & fileName)
 end if
   else
 if there is a file ("D:/" & fileName) then
   return ("D:/" & fileName)
 else if there is a file ("E:/" & fileName) then
   --just incase they mapped the CD drive to "E"
   return ("E:/" & fileName)
 end if 
   end if
 
   -- you might put some kind of warning or error
   -- routine here.  Probably don't want to continue
   -- if the movie was not found

   return false
 end getMoviePath 


There's probably a better way to do this, but it should work (I didn't test
it!).  Hope it helps,

Dan


> Message: 10
> Date: Fri, 5 Sep 2003 12:36:35 -0700
> Subject: path names to CD across platforms
> From: Byron Turner <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> 
> Forgive me if this gets posted twice, the first was held up and this is
> urgent.  How would I compensate for the differences in file path names
> when deploying to OS 9, OS X and Windows?  For example a movie resides
> on a CD . . how do we have one app that can be built for multiple
> platforms that can find the file regardless?
> 
> Thanks,
> 
> Byron

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X - documentation of drawer command

2003-09-03 Thread Dan Friedman
I did find a work-around...  Just set the size of the stack to be the drawer
before you open it:

Set the height of stack "drawerStack" to (the height of stack "Main" - 50)
Drawer stack "drawerStack" at left of stack "Main"


> At 10:00 AM +1000 9/3/2003, David Vaughan wrote:
>> However, what if you want to allow the user to open and close the
>> drawer multiple times? I found that when the above pair of commands
>> was repeated then the drawer become a line smaller in height each
>> time it was opened.
> 
> That's a bug. (It's in bugzilla as bug # 488.)

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How many people use Single-Handler Mode in Script Editor?

2003-09-01 Thread Dan Friedman
I do not use it and never thought it was a valuable feature.

-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Dynamic Web Page (Not really a RR question)

2003-08-18 Thread Dan Friedman
Is there a way to have a web page either:

(1) save it's self, so it's user editable fields can be read later?; or

(2) have the web page read a text file and populate it's fields.  Then save
the user editable fields back to the text file?

If either of these options is possible, how would you go about doing it?
Or, is there another way to accomplish this task?

Background: my application creates a questioner.  That questioner (or text
file) is posted to a web site.  A user then answers the questions by typing
in the form fields.  (Note that this could be a work in progress.  Meaning
that the user could put in some text, then come back the next day and
continue editing the fields.)  When the user is done, the application would
then query the web page (or text file) and compile a report.

Any thoughts?

Thanks!
-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Portable fonts and usage recommendations needed

2003-08-18 Thread Dan Friedman
> Are these exactly the same design for each platform or do these have to
> be tweaked?  I don't mean file format, I mean variations in metrics to
> account for engine or other idiosyncrasies.

They are NOT the same for each platform (but they look the same).  The
sizes, metrics and other data/settings have been altered so they look and
act the same on each platform.  For example, if you set a font to 9 point on
a MAC, it will look larger on a PC.  With my custom fonts, 9 point is the
same size on both platforms.

> Does this mean that you own the fonts?  Are they for sale to include in
> other programs?

Yes, I own them.  Are they for sale?  Hmmm... Contact me off-list.

> Assuming they are, can the same font be attached to the
> application/stack and work on both Mac and Windows without the user
> having to install the font?

I don't know anything about "attaching" fonts to an application.  I just
include the fonts in my installer.  And this works fine [for me].

-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Portable fonts and usage recommendations needed

2003-08-17 Thread Dan Friedman
I had the same problems!  I got so tired of "messing" with it that I finally
hired an outside source to create matching Mac and Windows fonts (serif, and
san-serif).  They look and behave EXACTLY the same on both platforms.  It
wasn't cheep, but my cross-platform font problems have gone away!

-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Save as Image

2003-08-14 Thread Dan Friedman
Ken,

Yes, it worked perfect!!  Also, just for fun, I tried setting the target
stack to invisible, and it worked too!!

Thank you Ken!


> Message: 11
> From: "Ken Ray" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: RE: Save as Image
> Date: Wed, 6 Aug 2003 11:05:55 -0500
> Organization: Sons of Thunder Software
> Reply-To: [EMAIL PROTECTED]
> 
> Dan,
> 
> Try this:
> 
> http://www.sonsothunder.com/devres/revolution/revolution.htm?_imag007
> 
> This works for stacks that are partially off-screen, but hopefully will
> work with a fully offscreen stack...
> 
> Report back to the list and let us know if this works!
> 
> Ken Ray
> Sons of Thunder Software
> Email: [EMAIL PROTECTED]
> Web Site: http://www.sonsothunder.com/ 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Save as Image

2003-08-05 Thread Dan Friedman
Has anyone discovered a way to save a stack (or portion of a stack) as an
image while the stack is either offscreen or invisible?  If so, I'd sure
love to hear how ya did it!

Thanks,
Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Repeat for each assistance.

2003-08-03 Thread Dan Friedman
Andy,

Just insert your own counter:

on checkItemCount
  put 0 into tCounter
  repeat for each line gameLine in fld "gamelist"
add 1 to tCounter
if the number of items in gameLine <> 5 then
  answer (something)
  set the hilitedLines of field "gameList" to tCounter
  exit checkItemCount
end if
  end repeat
end checkItemCount

Hope that helps.


> Message: 10
> From: "fatal error" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Repeat for each assistance.
> Date: Sat, 2 Aug 2003 15:06:26 -0400
> Reply-To: [EMAIL PROTECTED]
> 
> I have the following loop statement:
> 
> repeat for each line gameLine in fld "gamelist"
> 
> I need to obtain the line number for the current iteration. I'm error
> checking for the number of items in gameLine and if it isn't equal to 5, I
> want to raise an answer dialog and stop the script, then hilight that line
> in fld "gameList".
> 
> It has only been two days of my trial.
> 
> What can I query to get the iteration number of this loop?
> 
> Perhaps I'd be better off using a different repeat construct?
> 
> Thanks,
> 
> Andy

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: MAC OS X standalone and externals

2003-07-10 Thread Dan Friedman
Ron,

I had the same type of problem with one of my OSX externals.  I don't know
if this will help, but here's what I did:

First, I had the external re-compiled as a bundle (from the code that was
used to make the original CODE resource and DLL).  So, it was now named
"Spell.bundle".  I placed "Spell.bundle" into a folder named "plug-ins".
Then, I set the externals of my stack to "plug-ins/Spell.bundle".  This
works fine for initializing my spell checker at start up.

FYI: when I set the externals of my stack to "./plug-ins/Spell.bundle" or
"/plug-ins/Spell.bundle", it failed in my standalone.  Only,
"plug-ins/Spell.bundle" worked.

However, when I went to run it, it couldn't find the dictionaries.  Turns
out it was a problem with paths.

When my app starts up, I use this to fill the global variable
"applicationPath" to the path to my application:

on applicationPathAtStartUp
  global applicationPath
  
  put the fileName of this stack into applicationPath
  set the itemDelimiter to "/"
  delete last item of applicationPath
  
  if the platform = "MacOS" then
if char 1 to 3 of the systemVersion = "10." then
  delete item -3 to -1 of applicationPath
end if
  end if
end applicationPathAtStartUp

Until I added the OSX "if", this procedure (on OSX) got the path to the
actual application, not the root level of "myStandalone.app".  Next, I found
out that most externals want a FULL PATH to referenced files.  However, this
procedure (on OSX) did not include the drive name, making it an incomplete
path.  So, instead of sending this:

applicationPath & "/plug-ins/AmericanDict.rcs"

I use this (for OSX):

line 1 of the volumes & applicationPath & "/plug-ins/AmericanDict.rcs"

Once I did this, everything works like like a charm!


Hope that helps.

-Dan


 
> Hi
> 
> I am having trouble setting the external of an OS X standalone.
> 
> I think this is a path problem so I've spent a long time tonight trying to
> read the docs on filepaths and searched the archives for info on OS X
> standalones, but I'm still stuck.
> 
> The code works fine in OS 9 both in the ide and as a standalone. It works
> great in OS X in the ide, but when I build a standalone for X the app
> crashes.
> 
> I set the externals to "./VXCMD_macho" and put the Valentina bundle in the
> same folder as the standalone. (I realize the standalone in OS X is a
> folder/bundle, but I do not place it in the contents of the bundle, just on
> the same level as the bundle).
> 
> Applications f
> My Standalone f
>   My App.
>   VXCMD_macho
>   data f
> 
> 
> Valentina inits itself fine, but calling it in a later script crashes.
> 
> Am I setting the external properly? This works in the ide...
> 
> thanks again,
> Ron

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


CODE resource and OSX

2003-06-23 Thread Dan Friedman
Greetings...

I use a 'CODE' resource in my standalone ('DLL' for windows).  PPC and
Windows works fine.  But, what do I do for OSX?  There is no place in the
standalone builder to add a resource file.

Being a OSX novice, I could use some assistance/guidance.

Thanks!
-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Newbie

2003-06-21 Thread Dan Friedman
Ubaldo,

In the script of stack A put:

On openStack
  open stack 
End openStack

It's that easy.  You could also put it in a startUp message, or in the
openCard script of card 1 of stack A.

 Hope that helps.  -Dan


> Sorry for this very basic question and if this has already been
> answered before in this list or in the documentation but
> I have 2 main stacks in the same folder and I want to launch stack A
> which should automatically open stack B;  the 2 stacks  should be
> visible.
> How can I achieve this?
> Thank you for your attention and sorry for my English too but I have
> done my best here :-)
> Ciao from Italy
> Ubaldo

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Unicode Text

2003-06-19 Thread Dan Friedman
Has anyone figured out how to read and write unicode text?

I opened the unicodeFldRoutines.rev stack and tried to save field
"jpTargetFld" to a text file and read it back in... But I can't seem to get
it to work.

Has anyone been able to do this?  Or have ya got any ideas?

Thanks in advance!
-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


DiskSize

2003-06-17 Thread Dan Friedman
Greetings...

The Goal:  To determine if the user is opening a file from a floppy disk.

Proposed Solution:  The only thing I can think to do this is to use the
capacity of the disk.  If it's less than 2MB, I can assume it's a floppy.
Do you agree?

Now, there is no diskSize function that I know of, so I have to write it
myself.  I'll have to add the size of every file on the disk, plus the
diskSpace, to get the size of the volume.

Question:  Can you think of a better way?  If not, has anyone got a code
snippet to do this?

Thanks in advance,
 -Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Rev Docs

2003-06-12 Thread Dan Friedman
Dear RR and fellow Revolutionaries,

I just wanted to take a moment to say "Thank You" to Jeanne and the entire
RR crew for your continued work on the RR Documentation.  97 out of 100
times, I can find the answer to my questions from the documentation.  Unlike
many programs you get today, the RR docs are well thought out, well written,
and easy to find what your looking for.

I'm sorry I don't post more questions to this list.  But, frankly, I find
most of my answers in the docs!  My wife calls me a "Manual Nazi", because
usually I read the manual cover to cover before I crack the seal of the
installer.  As a man who relies heavily on good documentation, I thank you.

There's been some talk lately on this list about making a book on RR.  I say
we already have one.  And it's getting better with each release!

Keep up the great work!

-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Subject: Re: 1.1.1 Buttons in 2.0

2003-06-10 Thread Dan Friedman
Sarah,

Turns out this wasn't a bug at all!... There was a change in the engine.
With some help from Jeanne and Geoff, we figured out that setting the
backgroundColor to empty fixed the problem.

Thanks for the assist!

-Dan



> How about writing a handler that loops through all the buttons,
> checking their original style, setting their style to something else
> and then back to whatever you wanted. That might be enough to toggle
> the engine to display them correctly.
> 
> Cheers,
> Sarah
> [EMAIL PROTECTED]
> http://www.troz.net/Rev/
> 
> On Saturday, June 7, 2003, at 04:03  am, Dan Friedman wrote:
> 
>> I opened a stack created in 1.1.1 in 2.0.  All the buttons that were
>> set as
>> "Standard" appear as if they were 1.1.1's "Rectangle" buttons.  And the
>> "Rectangle" buttons don't have the same appearance as a new rectangle
>> button.  If I delete the original button and create a new one it's
>> fine.
>> 
>> Can any tell me why and/or how to fix this without recreating *EVERY*
>> button
>> in my stacks?
>> 
>> Thanks!
>> -Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


1.1.1 Buttons in 2.0

2003-06-06 Thread Dan Friedman
I opened a stack created in 1.1.1 in 2.0.  All the buttons that were set as
"Standard" appear as if they were 1.1.1's "Rectangle" buttons.  And the
"Rectangle" buttons don't have the same appearance as a new rectangle
button.  If I delete the original button and create a new one it's fine.

Can any tell me why and/or how to fix this without recreating *EVERY* button
in my stacks?

Thanks!
-Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: DLLs

2003-03-24 Thread Dan Friedman
Chipp,

I checked the externals of the stack and it looks fine.  When I save and
rerun it, it works fine.  Even in a standalone.  However, if I move the
standalone to another directory, it fails -- even though I am setting the
externals to the correct path, then closing and reopening the stack.

What I did was create an "engine" stack that opens the stack file of my
project.  When I did that, everything started to work!  (No code was changed
in the project stack) It would seem to me that RR doesn't want you to change
the externals of a stack in a standalone (at lease the main stack).  I could
be out to lunch, but at lease it's working now.

Thank you for the suggestion/reply.
Dan


> Dan,
> 
> My guess is you have a path problem. In RR from the msg do:
> 
> put the externals of this stack
> 
> to tell you what your stack currently 'thinks' is the path to the dll.
> 
> If there is any path info other than the name, then it probably won't work.
> I always
> 
> set the externals of this stack to "fred.dll"
> 
> and keep a copy of the fred.dll in the same place as the RunRev application.
> Then when building a standalone, copy the fred.dll to the same folder as
> where the standalone runs from. Remember, you can't  execute a:
> 
> set the externals of this stack to "fred.dll"
> 
> on startup from a runtime. In order for DLL's to work, the external property
> must be saved with the stack, then launched anew.
> 
> Hope this helps.
> 
> Chipp

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Send an eMail attachment?

2003-03-24 Thread Dan Friedman
Ken,

I found Shao Sean's libSMTP library on the user contributions list...  This
is what I'm looking for!  My only problem is that it takes 28 seconds to
send an eMail with a 5307 byte text file attachment.  From Outlook (with the
same attachment and message), it took about 2 seconds.

I wrote an eMail to Shao to see if I am doing something wrong.  I'm waiting
for his reply.

Thank you for the suggestion/reply.  This list is a great place to get help.
I would like to post more responses to those who need help (when I know the
answer), but the "pros" on this list are so on top of it, that by the time I
read it, someone has already answered!  :)

Thanks again,
Dan


> Take a look at Shao Sean's libSMTP library; it allows for direct SMTP
> communications, attachments and more. Go to:
> http://www.sonsothunder.com/devres/revolution/revolution.htm and go to
> the bottom of the Downloads section.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


DLLs

2003-03-23 Thread Dan Friedman
Hello,

Can anyone see what I'm doing wrong...

I have a dll that I want to call.  The script that communicates with the DLL
is the main stack.  I have set the destroyWindow of the stack to true and I
have set the externals of the stack to "myDLL.dll" (I can't use a hard coded
path because I don't know where the user will install this app).  I have
closed and reopened the stack as advised in the "destroyWindow" entry in the
Transcript Dictionary.  Just before I reopen the stack, I set the
defaultFolder to the standalone's path so it will find "myDLL.dll".

When running in RR, it works fine.  However, in a standalone it fails.

After futzing with it for over 16 hours, I thought I would write this list
and see if any one had any thoughts?

Thank you in advance,
Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Send an eMail attachment?

2003-03-22 Thread Dan Friedman
Jack,

Thanks... But this doesn't solve the problem.  *I* want to include the
attachment in the eMail.  I know that I could have the user add the
attachment, but since I know what file needs to be sent, I would like to, at
runtime, set that parameter.

Thanks,
Dan
 
> Here's a button script that works in 1.1.1
> 
> on mouseUp
>  revGoURL "mailto:[EMAIL PROTECTED]"
> end mouseUp
> 
> This opens your regular email program which you can then do attachments etc.
> 
> Jack

>> Greetings fellow Revolutionists,
>> 
>> Does anyone know a way to send an eMail from a stack that includes an
>> attachment?  I see that in RR 2.0 there is a new revMail command that acts
>> like clicking a "mailto:"; link in a browser.  For me, this would be fine.
>> However, I want to include an attachment also.  Is this possible?
>>
>> Thank you in advance,
>> Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: save as dialog

2003-03-21 Thread Dan Friedman
Paolo Mazza,

Try:

On mouseUp
  ask file "Save File As:"
End mouseUp

> How can I get a dialog similar to the "save as" dialog where user can choose a
> folder and write the name of a file.
> Using answer folder I can not insert the name of a file.
> Ciao Paolo Mazza

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Getting a chunk of stylized text?

2003-02-21 Thread Dan Friedman
Fellow Revolutionaries,

Let's say field A contains more text than can fit in it.  The text in field
A contains multiple fonts, styles and sizes.  How can I get the stylized
text that is not being displayed? (and remove it from field A and put it
into field B)

I tried messing with the formattedHeight and formattedLines functions, but I
can't seem to get it to find the correct text.  What I think I need to do,
some how, is get the formattedTop of a line of the formattedText.  But you
can't do that.

Any thoughts?

Thank you in advance,
Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RevPrintField

2003-02-04 Thread Dan Friedman
Fellow Revolutionaries...

Anyone experienced any problems with revPrintField on windows?

When I run this in a RR standalone on my Mac, it works fine:

On mouseUp
   revShowPrintDialog true,true
   revPrintField the name of field "aField"
End mouseUp

However, on Windows, it does nothing.  And, the result is empty.  Any
thoughts?  (Yes, I included the printing library in my standalone).

Thanks!
Dan

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: RTF vs HTML

2003-01-05 Thread Dan Friedman
Vikram,

In the following you mentioned clipboarddata["rtf"].  I don't see any thing
about "clipboarddata" in the docs.  What is this?  What does it do?  Where
can I get details on what it is?

Thanks!
Dan


> I can't talk of the benefits of exporting rtf as files, but if you are
> copy-pasting from other apps this may interest you:
> 
> Copy a portion of a webpage. In the message box type:
> set the rtftext of fld 1 to clipboarddata["rtf"]
> 
> And viceversa, paste into Word after copying the rtftext of a field:
> set the clipboarddata["rtf"] to the rtftext of fld 1
> 
> etc..
> 
> Rgds,
> Vikram

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



  1   2   >