Re: "last image" not working, receipe

2008-01-04 Thread Ton Kuypers

Some more information, I think I have found a receipe...
- First get the files of a folder and create an image in a stack for  
each file.
- after creating an image, the variable "it" contains a full reference  
to an object.

- next set the filepath of this last image to a file
- it is not possible of course to show a Word file, so there will be  
an error in the result. If so, I would like to show a "No Preview"  
image, located in another stack.
- With image objects created like this, there is no way of setting  
another image, located in a stack. It is possible to set a different  
file path, but not an existing image.


Can someone confirm this, so I can enter it into Bugzilla?

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 4-jan-08, at 03:38, Martin Blackman wrote:

'last' means the number property of the image equals the number of  
images.
Did you check if these are the same after assigning a non-image URL  
to the

image ? Perhaps Rev decides the number of images should not count the
erroneous one.
I guess you can name each image or check the id of each as you  
create it and

then refer to the id or name instead?
regards
Martin

On 04/01/2008, Ton Kuypers <[EMAIL PROTECTED]> wrote:


Too bad, no luck...

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 3-jan-08, at 14:07, Shao Sean wrote:


try
set the filename of the last image to PATH
catch
set the text of the last image to (the text of image "noPreview" of
stack "mainStack")
end try





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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: "last image" not working?

2008-01-03 Thread Ton Kuypers

Too bad, no luck...

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 3-jan-08, at 14:07, Shao Sean wrote:


try
 set the filename of the last image to PATH
catch
 set the text of the last image to (the text of image "noPreview" of  
stack "mainStack")

end try


watch for wrapping, there are only 5 lines
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



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


"last image" not working?

2008-01-02 Thread Ton Kuypers

Hi,

I am creating image objects on the fly, depending on a directory  
listing.
The directories can contain image files, but also Word files, XML  
files, etc.
I just set the the filename of last image to the url of the file, for  
imagefiles this works fine, but it gives an error for other files.


When I get the error, I would like to show a default image, located in  
the main stack:

put image "NoPreview" of stack "MainStack" into last image

But this doesn't work :-(
I've tried the name, the id, but no image appears. When I manually  
create an image and use the same line, pointing it to the correct  
image, everything works as expected...


Am I doing something wrong or is this a bug?

I am using DP-3 on Mac OS X 10.5.1


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


Paste data from Excel not working in 2.9.0-dp-2?

2007-12-18 Thread Ton Kuypers

Hi,

In 2.8, I could paste data from Excel, the clipboard contains plain  
text which I can process and use.
Wen using 2.9 the clipboard function returns "image" when I copy  
something from Excel...


Is this a known bug or should I enter it in Bugzilla?
I've only tested it on OS X, not sure if it works on Windows...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Using the "do" command

2007-12-14 Thread Ton Kuypers

VBscript in 2.9: the return has to be put in the variable "result"

do "result = 1 + 1" as "vbscript"
answer the result

And this works :-)


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 14-dec-07, at 11:45, Kay C Lan wrote:

On Dec 13, 2007 12:19 AM, Dan Friedman <[EMAIL PROTECTED]>  
wrote:


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?



Definitely not an expert with Win or VBScript, but from my readings  
of the
Rev docs I believe 'do' only works for Rev statements or Apple  
recognised
scripting languages - which counts VBScript out. I seem to recall  
recently
in another post someone mentioning that VBScript will work in do  
statements

with Rev 2.9.

I think, until 2.9 comes, you might need to have a look at the 'shell'
command.

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: RR 2.9.0-dp-2 & VBscript

2007-12-05 Thread Ton Kuypers

Hi Phil,

Thanks, already tried that, but no luck... 2 lines work fine, adding  
a third line (with a valid command) gives an execution error...



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 6-dec-07, at 01:12, Phil Davis wrote:


Hi Ton,

Sometimes I have trouble seeing my own syntax "issues' in inline- 
built scripts like yours, so I store the script as a whole in a  
custom property, then get it and use it as needed. If there are run- 
time variations needed in the script, I use "[[placeholder]]" or  
some similar tag in the stored script and then


   replace "[[placeholder]]" with  in tMyScript

Maybe that will work in your case!

Phil Davis



Ton Kuypers wrote:

Hi,

I hope one of you has got Adobe InDesign CS2 installed, because I  
could use some help...
It might be a bug in sending VB scripts from RR but maybe someone  
can confirm this of help me out...


When I send the following script to InDesign, the file is opened  
as expected:

on mouseUp
put "Set vIND = CreateObject(" & q("InDesign.Application.CS2")  
& ")" & cr into vScript
put "Set vDoc = vIND.Open(" & q("C:\test.indd") & ")" & cr  
after vScript

do vScript as "vbscript"
put the result
end mouseUp

When I add a line to this script, it gives an execution error:
on mouseUp
put "Set vIND = CreateObject(" & q("InDesign.Application.CS2")  
& ")" & cr into vScript
put "vIND.ScriptPreferences.UserInteractionLevel =  
InDesign.idUserInteractionLevels.idNeverInteract" & cr after vScript
put "Set vDoc = vIND.Open(" & q("C:\test.indd") & ")" & cr  
after vScript

do vScript as "vbscript"
put the result
end mouseUp

When I save the script as a file and try to run it from within  
InDesign, it works fine.
And it doesn't matter what code I add to the script, it just  
doesn't work...


Anyone any ideas?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



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

http://lists.runrev.com/mailman/listinfo/use-revolution


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

http://lists.runrev.com/mailman/listinfo/use-revolution



___
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


RR 2.9.0-dp-2 & VBscript

2007-12-05 Thread Ton Kuypers

Hi,

I hope one of you has got Adobe InDesign CS2 installed, because I  
could use some help...
It might be a bug in sending VB scripts from RR but maybe someone can  
confirm this of help me out...


When I send the following script to InDesign, the file is opened as  
expected:

on mouseUp
put "Set vIND = CreateObject(" & q("InDesign.Application.CS2") &  
")" & cr into vScript
put "Set vDoc = vIND.Open(" & q("C:\test.indd") & ")" & cr after  
vScript

do vScript as "vbscript"
put the result
end mouseUp

When I add a line to this script, it gives an execution error:
on mouseUp
put "Set vIND = CreateObject(" & q("InDesign.Application.CS2") &  
")" & cr into vScript
put "vIND.ScriptPreferences.UserInteractionLevel =  
InDesign.idUserInteractionLevels.idNeverInteract" & cr after vScript
put "Set vDoc = vIND.Open(" & q("C:\test.indd") & ")" & cr after  
vScript

do vScript as "vbscript"
put the result
end mouseUp

When I save the script as a file and try to run it from within  
InDesign, it works fine.
And it doesn't matter what code I add to the script, it just doesn't  
work...


Anyone any ideas?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


RR & JavaScript Windows

2007-09-23 Thread Ton Kuypers

Hi there,

I've got a "small" challenge...

I've created a RR application which uses Javascript to communicate  
with Adobe InDesign CS2.
On the Mac I use Applescript to send the Javascript to InDesign and  
retrieve the result. Works beautifully!


Running in Windows I can use the same scripts and they execute  
perfectly, but how do I get the results back?
InDesign windows relies on a free program called ExtendScript Toolbox  
from Adobe to execute javascripts, but anone any idea on how to send  
back a result?
This would imply I need to send a value to RR (or my app) using  
Javascript and have RR capture this.


Any suggestion (besides writing a value to disk and reading it in  
into my app) are welcome!



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


UnZip application not working?

2007-09-19 Thread Ton Kuypers

Is this a bug or am I missing something?

I use the unzip command in Revolution Enterprise 2.8.1 to unzip a  
"zipped" application on OS-X.


After unzipping, the package content is identical to the original,  
the size is the same, but I can't open the unzipped application... It  
opens and closes immediately again.


Do I need to "set" something to make an application work again?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: custom "Type-ahead" function

2007-09-19 Thread Ton Kuypers

Mark,

thats EXACTLY what I ment :-)
Thanks!

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 19-sep-07, at 06:05, Mark Swindell wrote:


Could this be what you saw?
Mark
_

From FlexibleLearning at aol.com  Wed Mar  1 10:46:13 2006

I use this to progressively auto-fill from a defined list...

Script  for Field or Combo-button...

on keyup k
put word 2 of the  selectedChunk into temp
put the num of words of char 1 to temp of me  into w
put lineoffset(CR& word w of me, CR& fld "wordList")  into n
get line n of fld "wordList"
if it <>"" then  put it into word w of me
-- Select current word offset
put  the num of chars of word 1 to w of me into w
select char (temp) to w  of me
end keyup
____

On Sep 18, 2007, at 4:11 PM, Ton Kuypers wrote:


Hi gang,

A while ago I saw a RR stack wich allows me to filter a field with  
values of another field, the more you typed in, the more exact the  
filter worked...
This allows a user to start typing and get somekind of a "type- 
ahead".


The big problem is, that I can't seem to find that stack anymore :-(

Anyone any suggestions?



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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



The future ain't what it used to be.
- Yogi Berra


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


custom "Type-ahead" function

2007-09-18 Thread Ton Kuypers

Hi gang,

A while ago I saw a RR stack wich allows me to filter a field with  
values of another field, the more you typed in, the more exact the  
filter worked...

This allows a user to start typing and get somekind of a "type-ahead".

The big problem is, that I can't seem to find that stack anymore :-(

Anyone any suggestions?



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Object Library missing in 2.8.1

2007-06-13 Thread Ton Kuypers

Never mind, found it...
The correct location is /Users/XXX/Documents/My Revolution Enterprise/ 
Resources/Object Libraries/...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 13-jun-07, at 18:10, Ton Kuypers wrote:

I've seen this one coming by a few times, but I can't seem to find  
it anymore...


Where do I have to put the standard object library  
(revdefaultlibrary.rev) so it shows up in he object browser in the  
2.8.1 IDE?
It is now located in /Users/XXX/Documents/My Revolution Enterprise/ 
Object Libraries...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Object Library missing in 2.8.1

2007-06-13 Thread Ton Kuypers
I've seen this one coming by a few times, but I can't seem to find it  
anymore...


Where do I have to put the standard object library  
(revdefaultlibrary.rev) so it shows up in he object browser in the  
2.8.1 IDE?
It is now located in /Users/XXX/Documents/My Revolution Enterprise/ 
Object Libraries...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


Copying files

2007-02-17 Thread Ton Kuypers

Hi gang,

Just wondering of one of you maybe created something he/she would  
like to share...


I have to do a project where lots of files will be copied to a  
server. The program will run on both OS X and Windows.
The revCopyFolder works perfectly, except for one thing... There is  
no status callback, so when copying 200 Mb, there is no way of  
showing a progressbar or an updated status message...
Creating a list of all files and using the revCopyFile works fine as  
well, but it is WAYY slower then copying the complete folder at  
once.


Anyone any suggestions?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


Developers wanted!

2006-10-08 Thread Ton Kuypers

Hi fellow revolutionaries...

Digital Media Partners is a small Belgian company, dedicated to  
development in the graphic Industry. We are certified Adobe  
Developers, and have developed a few products we are implementing in  
the Benelux at a variety of customers, both big and small.
The development tools we use are .NET (server based, web-tools) and  
Revolution (local graphical utilities and client-server tools).


On the .NET part we have an alliance with a partner for development  
of larger projects, but now we are getting in "trouble" with  
Revolution development: we have to much work to be handled by one  
person (myself)...


Therefore we are looking for fulltime Revolution developers who are  
willing to work for us on a contract base.
Because of the nature of the projects (we need to do a lot of work at  
the customer's location, we need to discuss the requirements and  
progress of a project, etc.) we are looking for experienced  
developers in The Netherlands or Belgium.
Experience in Revolution (what else...) , Applescript and/or  
JavaScript is a must, Adobe InDesign, Adobe Illustrator and Adobe  
Acrobat would be nice...


People interested in spending more time in developing applications  
using Revolution, please contact me off-list, so we can see if can  
work out something.



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: XML error/question

2006-10-05 Thread Ton Kuypers
I doubt it... I did a uniEncode/uniDecode on the data before I tried  
to get the ID... The decoding part should only take place on the  
actual text...

Just a stupid mistake, nobody will learn anything from this ;-)

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 5-okt-06, at 15:43, Klaus Major wrote:


Dag Ton,


never mind, already found the error...


and what was it?
Might be useful for others, too.


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com


Groetjes

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: XML error/question

2006-10-05 Thread Ton Kuypers

never mind, already found the error...

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 5-okt-06, at 15:29, Ton Kuypers wrote:


Hi,

I have a question on using XML files in Revolution, when they are  
saved as UTF8 files.


The file I try to parse:


ind001767CA
50μg/0.5ml


The XML is saved as UTF8 because of the "strange" characters (like  
the "μ" in the concentration-node).


When I use "put revCreateXMLTree(vData,true,true,false) into  
vXMLid" I get the error "xmlerr, can't parse xml. Extra content at  
the end of the document"

When I use revCreateXMLTreeFromFile the same result...
Only when I save the file as a plain text file, I get the expected  
ID, but then I loose the correct info in the XML file...


Anyone any suggestions?

I'm using RR 2.7.2 on OS X 10.4.8.


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


XML error/question

2006-10-05 Thread Ton Kuypers

Hi,

I have a question on using XML files in Revolution, when they are  
saved as UTF8 files.


The file I try to parse:


ind001767CA
50μg/0.5ml


The XML is saved as UTF8 because of the "strange" characters (like  
the "μ" in the concentration-node).


When I use "put revCreateXMLTree(vData,true,true,false) into vXMLid"  
I get the error "xmlerr, can't parse xml. Extra content at the end of  
the document"

When I use revCreateXMLTreeFromFile the same result...
Only when I save the file as a plain text file, I get the expected  
ID, but then I loose the correct info in the XML file...


Anyone any suggestions?

I'm using RR 2.7.2 on OS X 10.4.8.


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


mySQL problem... HELPPPPPP

2006-09-23 Thread Ton Kuypers

Hi,

I've ran into a very strange problem and tried everything to solve it  
but no luck so far. Maybe someone else can shed a light on what's  
happening here...


I have an application that connects to a mySQL database.
I have a record in the Jobs table, containing various related records  
in the Joblines table.
When I update a record in Jobs, a few fields get modified in the Jobs  
table and a new record is created in the Joblines table.
What is shown is based on a userID, so when a job is sent to another  
user, the UserID changes.


To refresh the screen I just create a query that shows all relevant  
jobs of a user, when he clicks on a job, all joblines are retrieved  
from mySQL.


The strange thing is, that when I update the jobs, the old ones are  
still there, even when the UserID is not correct anymore.

Using the same query in CocoaMySQL gives the correct result.
When I click on a Job, I can see the correct (new) userID is in the  
record, but the query still retrieves it.


I even removed all extra stuff and just sent the query (giving the  
correct result in CocoaMySQL) using the revDataFromQuery command, but  
I keep on getting the same (incorrect) result :-(


Anyone any suggestions?

I'm running RR version 2.7.2 on OS X, using a mySQL 4.1 database with  
the MyISAM engine



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: mySQL & RR question

2006-08-31 Thread Ton Kuypers
ok, the mysqldump I know, what I didn't know I could use it across  
the network...

Will give it a try, thanks :-)

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 31-aug-06, at 21:03, Ken Ray wrote:


On 8/31/06 12:34 PM, "Ton Kuypers" <[EMAIL PROTECTED]> wrote:


Hi gang,

I have created a few (and still more coming up) client-server
applications using RR and mySQL, but now I am in need for a way to to
create a back-up possibility for remote databases...
The clients are Macs and PC's, the servers running the database
Server can be Windows or Mac

I need to create a dump of the whole database, including all table
descriptions and content.
Anyone any idea what to do, to get a dump of the database on one of
the remote administrator desktops, or on my own development Mac, to
have a local copy of the database?


It's really simple - you just need to use shell() to call on the  
mysqldump
command line utility. For example, if you want to dump a database  
called
"test" to a file at "/Users/ken/test.sql" you'd execut this at the  
command

line (assuming a login of "root" and no password):

  mysqldump -u root test > /Users/ken/test.sql

Depending on the size of the database this can take anything from a  
few

seconds to several minutes. To give you an idea, I routinely "dump" a
database with hundreds of thousands of records to a 250MB .sql file  
and it

takes about 8 minutes.

If you execute this manually in the console (Terminal in OS X or  
"DOS box"

in Windows), you will know that it has completed when you get another
command line prompt. You can, of course, execute it from Rev with  
shell(),

in which case you won't get control back until the dump has finished.

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


mySQL & RR question

2006-08-31 Thread Ton Kuypers

Hi gang,

I have created a few (and still more coming up) client-server  
applications using RR and mySQL, but now I am in need for a way to to  
create a back-up possibility for remote databases...
The clients are Macs and PC's, the servers running the database  
Server can be Windows or Mac


I need to create a dump of the whole database, including all table  
descriptions and content.
Anyone any idea what to do, to get a dump of the database on one of  
the remote administrator desktops, or on my own development Mac, to  
have a local copy of the database?


What I can do of course is use the "DESCRIBE" function and create my  
own dump, but is there another way anybody knows of? The content can  
run into thousands and thousands of records, so retrieving that and  
storing it locally can be a small problem when doing it this way, so  
any suggestions are welcome...



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: preserving scrolling position

2006-08-23 Thread Ton Kuypers

Hi Viktoras,

Very easy, should work...

Enter the following scripts in the field you want to edit

global gHilited, gScrolled
on openField
  put the hilitedlines of fld "myTable" into gHilited
  put the scroll of fld "myTable" into gScrolled
end openField

on closeField
  set the hilitedlines of fld "myTable" to gHilited
  set the scroll of fld "myTable" to gScrolled
end closeField

This should do the trick...

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 23-aug-06, at 14:50, Viktoras Didziulis wrote:


Hi,

I have 2 fields on my stack - one is table, another - text field.  
When I
scroll down the table and then give focus for writing things to  
that another
field, table scrolling position is being reset so all the records I  
need to
see go out of sight. As far as I understand it is default behavior  
of fields
 Is it possible somehow to lock the current position of the table,  
when

changing the focus to another field?

All the best
Viktoras
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: Crazy Mac Filenames --- Cleanup Code Needed

2006-08-09 Thread Ton Kuypers
Don't like advertising our stuff on this list, but we created a small  
(but commercial) utility using Revolution doing what you need and  
more... It also adds the proper extension to the files...


Just take a look at our website for "FilenameCorrector"... If you  
like it, a new version will be online any day now, giving a few extra  
features...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 9-aug-06, at 19:45, [EMAIL PROTECTED] wrote:


I have at least 30,000 Mac files and folders that have filenames
containing non-cross-platform-friendly filenames. Many of them even
include dates with the / character. This makes it difficult to use  
the Rev
rename command to change it to a better name because the / is seen  
as a
folder delimiter. Does anyone have a ready-made script that cleans  
up such
filenames? These files are also buried within several subfolders,  
so it

needs to work recursively. I owe you much gratitude if you can help.

Roger Eller <[EMAIL PROTECTED]>

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: Regular Expression question

2006-08-09 Thread Ton Kuypers

Hi mark,

This works indeed very fine, thanks.
I was just trying to use the regEx for speed reasons, very strange I  
can't get it to work...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 9-aug-06, at 16:10, Mark Smith wrote:


Not a regEx but works:

function killDuplicateLines tList
  put empty into prevL
  repeat for each line L in tList
if prevL is not L then put L & cr after newList
put L into prevL
  end repeat
  return newList
end killDuplicateLines


Best,

Mark

On 9 Aug 2006, at 14:36, Ton Kuypers wrote:


1
1
1
2
2
3
4
4
4


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Regular Expression part 2

2006-08-09 Thread Ton Kuypers
I have found a regular Expression which does exactly what I need and  
it works in BBedit but not in RR...

What am I doing wrong?

The script:
ON mouseUp
put "1" & cr & "1"  & cr & "1"  & cr & "4"  & cr & "4"  & cr &  
"6"  & cr & "10"  & cr & "10"  & cr & "33" into vData


put "^(.*)(" & cr & "\1)+$" into vSearch
put "\1" into vReplace

put replaceText(vData,vSearch,vReplace) into vData

put vData
END mouseUp

vData is the same with and without the regex...

HELPPP :-(


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


Regular Expression question

2006-08-09 Thread Ton Kuypers

Hi,

I have a list like:
1
1
1
2
2
3
4
4
4

And I need all double lines removed from this list so it becomes:
1
2
3
4

Anyone a suggestion? I am struggling through the regular expressions,  
but I can't seem to get it working...




Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Object Library

2006-08-07 Thread Ton Kuypers

COOL!!!
I posted a question about this a while ago as well and I didn't get  
an answer to this... I moved the the stack "revdefaultlibrary.rev" to  
the location you stated below and now it works... Thanks!


It must be a glitch in the 2.7 installer, but now I don't mind  
anymore ;-)



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 5-aug-06, at 18:11, Mark Schonewille wrote:


Hi,

Has the question quoted below ever been answered? I seem to  
remember to have seen this question, about where the Object Library  
went, pop up a few times.


I took the stack revdefaultlibrary.rev, which resides in the folder  
~/revolution xyz/components/save/userobjects/ and put this folder  
into ~/documents/my revolution/resources/object libraries/. If I  
open the Objects library in 2.7.2 now, all objects are available  
again.


I assume that this is just a glitch in the new installer.

Best regards,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Gregory Lypny gregory.lypny at videotron.ca
Wed Mar 15 12:01:12 CST 2006


My apologies if I missed this in a previous post, but where's the
Object library in the new version of Revolution?  When I click on
Object Library under the Development menu, I get the Library stack
and an empty field under the Object tab where those nifty objects
used to be in previous versions.

Greg


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: Error uploading file in Windows: this looks like a bug, please confirm...

2006-07-21 Thread Ton Kuypers

Thanks for the quick response, but to bad...
There are no spaces in the username or password and I have full  
access to the server.
Using put ("ftp://";) & "user:[EMAIL PROTECTED]/wwwroot/ 
Schedule.html" into url vURL now creates an empty file in the correct  
location, but no data is in it.


Also creating the file locally and then uploading it to the ftp  
server doesn't work, creating the file in the root directory of the  
FTP server and then moving it to the correct location creates an  
empty file as well...


Can anyone reproduce this on Windows? On the Mac it works fine...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


Error uploading file in Windows

2006-07-21 Thread Ton Kuypers

Hi,

I have a problem when uploading a file to an FTP server...
I developed on OS-X, in the IDE on the Mac this works fine:

put "ftp://user:[EMAIL PROTECTED]/wwwroot/Schedule.html" into  
vURL

put vHTML into url vURL

But when I do this in the Windows IDE I get the error "501 missing  
parameter in command user" in the result.
When I create a standalone on the Mac for Windows, the result is the  
same.


What can this be? Anyone any suggestions?

I'm using RR 2.7.2.


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Open .tiff files in Rev?

2006-07-09 Thread Ton Kuypers

This should do the trick for Image Events:

ON mouseUp
answer file "Select an image..."
IF it = empty THEN exit mouseUp
put it into vFile
put "tell application " & quote & "Image Events" & quote & cr  
into vAS

put "launch" & cr after vAS
put "set vImage to open " & quote & vFile & quote & cr after vAS
put "set vSize to the dimensions of vImage" & cr after vAS
put "close vImage" & cr after vAS
put "return vSize" & cr after vAS
put "end tell" & cr after vAS
do vAS as appleScript
put char 2 to -2 of the result into vSize
replace space with empty in vSize
put item 1 of vSize into vImageWidth
put item 2 of vSize into vImageHeight
END mouseUp



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Can RR do Javascript?

2006-07-04 Thread Ton Kuypers

Now THAT is what I call good news :-))
Will test it first thing tomorrow... Not as elegant as "Do tScript as  
AppleScript" but it just might work for me!


Thanks.


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 4-jul-06, at 22:57, Ken Ray wrote:


On 7/4/06 3:46 PM, "Ton Kuypers" <[EMAIL PROTECTED]> wrote:


Hi gang,

Am I missing something or is it not possible to execute JavaScript
from Windows?


Well, you can execute .js script files the same way you can  
execute .vbs
script files from Rev, but of course if you do anything unseeming a  
virus

warning will probably crop up...


I am creating some tools using Revolution on the Mac, using
AppleScript to communicate with Adobe InDesign and Acrobat. Now I
want to port them to Windows and have started to recreate all
AppleScripts in JavaScript, but how do I execute them from within
Revolution?


Write them to a file and then "launch" them should do it...


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Can RR do Javascript?

2006-07-04 Thread Ton Kuypers

Hi gang,

Am I missing something or is it not possible to execute JavaScript  
from Windows?


I am creating some tools using Revolution on the Mac, using  
AppleScript to communicate with Adobe InDesign and Acrobat. Now I  
want to port them to Windows and have started to recreate all  
AppleScripts in JavaScript, but how do I execute them from within  
Revolution?


Any advice? Anyone?

Thanks in advance.


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


MS-SQL Database problem

2006-07-03 Thread Ton Kuypers

Hi, fellow Revolutionaires...

I have a strange problem:

I'm using RR 2.7.2 Enterprise on OS X 10.4.7

I'm connecting to a SQL Server through an ODBC connection, no problem  
so far.
When I retrieve data from the SQL Server, all fields come over just  
fine, except DateTime fields...


There are 2 of these fields, each containing a value like "28-06-2006  
00:00"


When I use  the code below to get the data, the value I get for the  
date is truncated and changed to "2006-06-"...


Anyone any ideas?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com


The code:

ON MouseUp
put fGetClients() into msg
END MouseUp


FUNCTION fGetClients
put "SELECT Contacts.CompanyNameINV, Contacts.Contact_ID FROM  
Contacts;" into vCommand

put fGetData(vCommand) into vData
return fDB2Field(vData)
END fGetClients

FUNCTION fGetData vCommand
set cursor to watch
put getConnectID() into dbID
IF dbID is empty THEN exit to top
put the pConnectionID of Stack "Motivation" into dbID
IF dbID is not a number THEN
put "Error: " & dbID into vError
answer vError
set the clipboardData["text"] to vError
exit to top
END IF  -- dbID is not a number
return revDataFromQuery(tab,return,dbID,vCommand)
END fGetData


___
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


RR object library question

2006-07-03 Thread Ton Kuypers

Hi,

When I launch RR 2.6 and go to the menu "Development:Object library",  
there were a whole load of useful objects.

These are empty in 2.7. The images are there, just no objects...

Anybody a suggestion on how to get these back? I tried to copy the  
2.6 revimagelibrary.rev, but this gives an error when I open it in  
the IDE...



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


Database problem

2006-06-28 Thread Ton Kuypers

Hi, fellow Revolutionaires...

I have a strange problem:

I'm using RR 2.7.2 Enterprise on OS X 10.4.7

I'm connecting to a SQL Server through an ODBC connection, no problem  
so far.
When I retrieve data from the SQL Server, all fields come over just  
fine, except DateTime fields...


There are 2 of these fields, each containing a value like "28-06-2006  
00:00"


When I use  the code below to get the data, the value I get for the  
date is truncated and changed to "2006-06-"...


Anyone any ideas?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com


The code:

ON MouseUp
put fGetClients() into msg
END MouseUp


FUNCTION fGetClients
put "SELECT Contacts.CompanyNameINV, Contacts.Contact_ID FROM  
Contacts;" into vCommand

put fGetData(vCommand) into vData
return fDB2Field(vData)
END fGetClients

FUNCTION fGetData vCommand
set cursor to watch
put getConnectID() into dbID
IF dbID is empty THEN exit to top
put the pConnectionID of Stack "Motivation" into dbID
IF dbID is not a number THEN
put "Error: " & dbID into vError
answer vError
set the clipboardData["text"] to vError
exit to top
END IF  -- dbID is not a number
return revDataFromQuery(tab,return,dbID,vCommand)
END fGetData


___
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


RR object library

2006-06-27 Thread Ton Kuypers

Hi,

When I launch RR 2.6 and go to the menu "Development:Object library",  
there were a whole load of useful objects.

These are empty in 2.7. The images are there, just no objects...

Anybody a suggestion on how to get these back? I tried to copy the  
2.6 revimagelibrary.rev, but this gives an error when I open it in  
the IDE...



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: PDFs displayed in Player!

2006-06-22 Thread Ton Kuypers
I'm trying not to be a "party-pooper", but try the same thing with a  
hi-res PDF, scaled down to fit a smaller size...
+5Mb, 24 pages, full of images... It takes forever to load and/or to  
switch pages...
I tried it on my Mac and forgot about it very quickly because of two  
reasons: I need the same functionality on both Mac and Windows and it  
was way to slow to be useful...


To give you an idea (if there are graphic designers on this list they  
might even like it) On our website mentioned below there is a link to  
"Other software". Try Imposition Manager... It would be very nice to  
have a preview of imported PDF files, but for now I just leave it as  
a feature request for a next version when RR handles PDF internally,  
without relying on Quicktime...


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 22-jun-06, at 19:40, Trevor DeVore wrote:


On Jun 22, 2006, at 10:31 AM, [EMAIL PROTECTED] wrote:


On 06/22/2006, Phil Davis <[EMAIL PROTECTED]> wrote:

Outrageous! I didn't know this was possible!

In Rev 2.7.2 Mac, I just made a new stack, added a player object  
and set
its filename to a multipage PDF on my machine. To my great  
surprise, the
document displays perfectly and I can flip through the pages with  
the

player controls.


I only wish that I could partake in that joy.
In Rev 2.7.2 Windows, PDF viewability is STILL not possible in a  
player

object. Does Rev truly rely on QuickTime for this? I have the latest
QuickTime installed but it still doesn't work. Runtime needs to  
make this

functionality work seamless across all supported platforms.


As pertains to player objects, it isn't a Rev issue, it is a  
QuickTime issue.  On OS X QuickTime supports PDF display.  On  
Windows it does not.


--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[EMAIL PROTECTED]


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: Challenge...

2006-06-20 Thread Ton Kuypers

:-)

Implemented that as well, but thanks for the reminder!


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 21-jun-06, at 00:57, Jim Ault wrote:


Great, Tom,  and now all you need to watch for is the refinement Alex
noted... what if "/Separation" starts at the 49997th char?... you  
would not
filter it properly.  That is why he offered that you should keep  
the last

line of the previous read variable and append the next read to it.

Jim Ault
Las Vegas



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


Re: Challenge...

2006-06-20 Thread Ton Kuypers

:-)

Thanks Jim, this was what I was missing, works like a charm!


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 20-jun-06, at 22:15, Jim Ault wrote:


There are other strategies for reading a file into memory using

open file fn
put 1 into x
put 5000 into y
repeat forever
read from file fn from x for y characters
if it is empty then exit repeat --no more chars to process

 filter it with "*/Separation*"
 replace "#20" with space in it

put cr & it after vColors
read from file from x for y characters

 filter it with "*/DeviceN*"
 replace "#20" with space in it
 replace "]" with "" in it

put cr & it after vColors
add y to x
end repeat
close file fn
filter vColors without empty

--check the docs for details

Jim Ault
Las Vegas


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


Challenge...

2006-06-20 Thread Ton Kuypers

Hi gang... I need some help...

A user selects a PDF file, I need to know what colors are in this PDF  
file.

So far no good, I can read the data and filter out the unwanted lines.

But this becomes a problem when the PDF file is 50 Mb or bigger...

At this point I use:

put "file:" & vPDFpath into vURL
put url vURL into vColors1
put url vURL into vColors2
filter vColors1 with "*/Separation*"
replace "#20" with space in vColors1
filter vColors2 with "*/DeviceN*"
replace "#20" with space in vColors2
replace "]" with "" in vColors2
put vColors1 & vColors2 into vColors

This way I get the lines containing the PDF colors, which I filter  
and use.

On normal PDF's this happens on the fly, no delay at all...

But one of my clients now sent me a 200 Mb PDF... And you can guess  
the problem: The file is loaded into memory twice, taking up more  
then 400 Mb of memory, just to get 3 or 4 lines of data... It's  
lllooww


Any ideas on how to do this faster?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Identifying the end of a file transfer

2006-05-18 Thread Ton Kuypers
Check the size of the file, check it again in 2 seconds. If the size  
is the same, the file should be on the server...

But your "flag-file" should do just as easy...

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 18-mei-06, at 15:20, Richard Miller wrote:

I've got one stack sending a file out to server, and a separate  
stack (on a separate machine) scanning the server for the  
availability of that file. When it sees it, it needs to retrieve it  
from the server.


Problem is, this second stack is seeing the availability of the  
file BEFORE it has completely transferred onto the server. If it  
starts retrieving it when it first sees it, well... the result  
isn't good.


Is there any simple way for the second stack to know the file  
transfer is complete before it starts accessing this file? I  
realize I could have the first stack send a small "flag" file out  
to the server after the original file was transferred, and the  
second stack could wait until it sees that flag... but I'm  
wondering if there isn't some easier way.


Thanks.
Richard Miller
Imprinter Technologies
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: custom properties vs. RR IDE properties

2006-05-15 Thread Ton Kuypers

:-)
Thanks Klaus, This does the trick, did't think of that...
Great!

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 14-mei-06, at 22:04, Klaus Major wrote:


Hi Ton,


...

and I thought I had it all figured out...

Is there a way to use SETPROP to interact on setting properties  
like hiding a window?


I tried setting 2 properties :


try this:


ON mouseUp
put empty into fld "Status1"
put empty into fld "Status2"

  set the cMYvisible of stack "HideThis" to true

set the pTest of stack "HideThis" to "Here I Am"
END mouseUp

The stack "HideThis" contains the following scripts:

SETPROP cMYvisible newValue
put newValue into fld "Status1"
set the visible of this stack to newValue

END visible

SETPROP pTest newValue
put newValue into fld "Status2"
END pTest


should work :-)


Best

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


custom properties vs. RR IDE properties

2006-05-14 Thread Ton Kuypers

...

and I thought I had it all figured out...

Is there a way to use SETPROP to interact on setting properties like  
hiding a window?


I tried setting 2 properties :
ON mouseUp
put empty into fld "Status1"
put empty into fld "Status2"
set the visible of stack "HideThis" to true
set the pTest of stack "HideThis" to "Here I Am"
END mouseUp

The stack "HideThis" contains the following scripts:
SETPROP visible newValue
put newValue into fld "Status1"
END visible

SETPROP pTest newValue
put newValue into fld "Status2"
END pTest

After hiding and showing the stack, field "Status1" remains empty  
while field "Status2" has got the text "Here I Am"


And I really need to know when a stack is visible, I am working on an  
app that is being used by another program that only can write files  
to a harddisk or launch a program. At first I was thinking to read  
the "in-file" every-time my app was launched, but this takes to long.  
Now I want to read the "in-file" every-time my app is re-launched but  
I'm stuck...


Any help is welcome :-)


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Standalone not accepting applescripts?

2006-05-08 Thread Ton Kuypers

:-) Thanks, now it works!

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 8-mei-06, at 14:52, Ken Ray wrote:


On 5/8/06 6:48 AM, "Ton Kuypers" <[EMAIL PROTECTED]> wrote:


Hi,

I've created an app which sends applescripts to Adobe InDesign. To
give the user a feedback of the status the script I send includes a
"do script" to my app:

tell application "myApplication"
do script "put " & quote & "Opening template..." & quote & " into
fld Info of stack Main"
END tell

When I use this in the IDE, "myApplication" is "Revolution" and this
works fine, but when creating a standalone it gives an error.
When I try to run the script manually using Script Debugger, it gives
the same error, when I look at the scripting dictionary of the
standalone I found out that it is not scriptable...

Am I missing something or is this a bug? And more important, is there
a work-around?


It's a bug... Back in March, it was reported that Revolution itself  
wasn't

appearing to be scriptable, and it was because it was missing an
al-important "Revolution.rsrc" file that should have been in the  
bundle.
Apparently this has been fixed for Rev, but the Standalone Builder  
doesn't

know to move and modify a copy of this file into standalones.

Go into the bundle, and copy Contents/Resources/Revolution.rsrc  
into the
same place in the bundle of your standalone. Change the name of  
the .rsrc

file to match the name of your standalone (i.e. the same name as the
'engine' file, which is located in Contents/MacOS), and you should  
be good

to go.


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Standalone not accepting applescripts?

2006-05-08 Thread Ton Kuypers

Hi,

I've created an app which sends applescripts to Adobe InDesign. To  
give the user a feedback of the status the script I send includes a  
"do script" to my app:


tell application "myApplication"
   do script "put " & quote & "Opening template..." & quote & " into  
fld Info of stack Main"

END tell

When I use this in the IDE, "myApplication" is "Revolution" and this  
works fine, but when creating a standalone it gives an error.
When I try to run the script manually using Script Debugger, it gives  
the same error, when I look at the scripting dictionary of the  
standalone I found out that it is not scriptable...


Am I missing something or is this a bug? And more important, is there  
a work-around?


I am using RR Enterprise version 2.7.1, build 236 on Mac OSX 10.4.6


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Implementation of serial number

2006-05-06 Thread Ton Kuypers

Hey Malte,

I think this is usable... Will check it out and see how to implement  
this, thanks!



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 6-mei-06, at 13:23, Malte Brill wrote:


Hi Ton,

you can find a small demo stack on revonline in my user space:

user: Malte
stack: password generator

It might be a bit over complex, today I go with a simpler approach,  
but it might help to get you started.


All the best,

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Implementation of serial number

2006-05-06 Thread Ton Kuypers

A very good day to you all!

I am in the progress of finalising a small commercial program for the  
graphic industry: select one or more PDF files and have Adobe  
InDesign put them in the correct location and order to create  
impositions.


Everything is working the way it should, so now I am thinking to add  
a serial number to the program, but have nu idea where to start...
I cannot rely on an online database with predefined serial numbers.  
People interested in the program can pay through PayPal on our  
website and then download the program.


I don't mind sending them a serial number manually when I receive the  
payment, but how do I create this serialnumber without every-time  
having to create a new stand-alone for this serial?

Has anyone an idea how to set this up?

Any ideas are welcome, many thanks in advance!


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Turn Off Double-Entry?

2006-04-25 Thread Ton Kuypers

use Constellation?

;-)

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 25-apr-06, at 19:30, Scott Rossi wrote:


I don't suppose there's any way to turn off or otherwise disable the
double-entry key sequence to close the script editor?

This is something that has always bothered me about Rev's script  
editor.  If
a script has been edited at all, it requires two hits of the enter  
key close
the window (apply and close) while if a script has *not* been  
edited, only
one hit.  I find myself getting in the habit of automatically  
pressing enter
twice to dismiss the script editor which, as I discovered today, is  
bad if
you have an executable command sitting in the message box ("delete  
this

card").

I now hate the behavior of the script editor window more than  
ever.  Is

there anything I can do to change it?

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: mySQL not working in 2.7 Standalone, bug or not?

2006-04-18 Thread Ton Kuypers

Great, will try this this evening.

But is this a bug?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 18-apr-06, at 16:06, Trevor DeVore wrote:


On Apr 18, 2006, at 5:07 AM, Ton Kuypers wrote:


Hi gang,

I recall reading something about databases not working when  
creating a standalone with RR 2.7, but I can't find the original  
post nor the answers...


I am using a mySQL database, everything is working fine in the  
IDE, but when creating a standalone, I get the message "revdberr,  
invalid database type", and when I look inside the "Externals"  
folder, in the "database_drivers" subfolder it is empty... Even  
when I manually select all database drivers in the standalone  
settings, it remains empty :-(


Can someone advice me on how to solve this problem?


Here is a link to an old article I wrote about using externals in  
Rev.  It needs updating with some new techniques I use but it does  
discuss how to load the database drivers manually.


<http://bluemangolearning.com/developer/revolution/ 
using_externals.html>


Perhaps that will help.


--
Trevor DeVore
Blue Mango Learning Systems - http://www.bluemangolearning.com
[EMAIL PROTECTED]


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


mySQL not working in 2.7 Standalone

2006-04-18 Thread Ton Kuypers

Hi gang,

I recall reading something about databases not working when creating  
a standalone with RR 2.7, but I can't find the original post nor the  
answers...


I am using a mySQL database, everything is working fine in the IDE,  
but when creating a standalone, I get the message "revdberr, invalid  
database type", and when I look inside the "Externals" folder, in the  
"database_drivers" subfolder it is empty... Even when I manually  
select all database drivers in the standalone settings, it remains  
empty :-(


Can someone advice me on how to solve this problem?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: [?] Mac Classic, 2.6.1, MySQL

2006-03-20 Thread Ton Kuypers

Sean,

Yep, I did, and didn't get the classic version to work unless I  
created the classic standalone from RR 2.5 running in classic mode...
I could create the Windows and OS X version from my OS X Revolution,  
but never got the classic version to run.
Lazy as I am, I didn't spend much time on it, just created the  
classic version on my old OS 9 Mac...



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 20-mrt-06, at 20:52, Sean Shao wrote:

I'm working on a small project that needs to run on Mac OS X, Mac  
Classic (9.2.2) and Windows and that uses the database library to  
connect to a MySQL server. Everything runs fine on OS X and  
Windows, and it runs fine in the IDE on Mac Classic.


When I compile a Classic application from the IDE on the Classic  
Mac the application crashes on launch with a Type 1001 error.
I've noticed that the MySQL library file from the 2.6.1 Classic IDE  
is only 244 KiB yet the one that's in my OS X 2.6.1 IDE is over a  
meg big.
When I replace the MySQL library in the compiled app's folder the  
application successfully launches, but I get a Rev DB error  
"Unsupported database type".


Has anyone successfully made a Classic app using the database  
library to connect to a MySQL server, or has everyone moved forward  
to OS X?


-Sean

_
Express yourself instantly with MSN Messenger! Download today -  
it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/ 
direct/01/


___
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






Met vriendelijke groeten,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Just a test: ignore. Thanks

2006-02-23 Thread Ton Kuypers

Ignored as requested ;-)

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 23-feb-06, at 18:01, Eric Chatonet wrote:


Just a test.

Best Regards from Paris,
Eric Chatonet
-- 


http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: Accessing AddressBook.data: javascript?

2006-01-11 Thread Ton Kuypers

Paul, Klaus,

I found out that rev can't do javascript, but you can embed the  
javascript in an applescript, "do" the applescript and let  
applescript take care of the javascript...
Works like a charm, you can find instructions on the apple site on  
how to do it :-)



Warm regards,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 11-jan-06, at 11:24, Klaus Major wrote:


Buongiorno Paul,

An old problem; other languages (as RealBasic) have classes who  
allow to

access the Address Book database without opening the application
(applescripting method).

My question is: the Address Book Widget (and the Easy Envelope  
widget too)
can access the database using apparently some Javascript code (you  
may find
it opening the widget package), and Revolution too can run  
Javascript code

through the command "do".

There is someone that, knowing the Javascript language, can  
extract the

right code from these widgets in order to read the records from the
addressbook.data database?


sorry, but Rev cannot handle JavaScript via the "do" command.
Actually Rev cannot handle JS at all!

Just had a look at the widget you mentioned and it looks like Apple
added an external/plug-in "AddressBook.widgetplugin" there that
gets called by the JavaScript.

But i really doubt that this plugin can be used/addressed from  
within Rev.



Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: [OT] .ds_store Messing Up ZIP

2006-01-03 Thread Ton Kuypers

Sorry... forgot to mention I'm using Stuffit Deluxe 9...
In the preferences I can set "Ignore Finder desktop files", THAT  
prevents copying all invisible files into the ZIP.



Warm regards,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com

On 4-jan-06, at 01:14, Scott Rossi wrote:


I've been plagued by this enough that I thought I would ask...

For me, creating simple ZIP archives on Mac systems that contain a  
few files

is usually straightforward.  However, I often find that when the ZIP
archives starts to contain nested subfolders, I often wind up with  
invisible
.ds_store files that corrupt the archive when it comes time to  
decompress on
Windows systems.  The only recourse seems to be to move folders  
over to

Windows, delete any .ds_store files, and compress there.

Is there any Mac utility out there that allows one to poke around  
inside a
ZIP archive to delete these extraneous .ds_store files?  Or even  
better,
some way to tell Stuffit to ignore/delete these files in the first  
place?



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


Re: [OT] .ds_store Messing Up ZIP

2006-01-03 Thread Ton Kuypers
I use Stuffit to create SIT files for distribution to Macs and ZIP  
files for distribution to Windows users... And Stuffit has got an  
option NOT to copy these pesky hidden files...

Works perfect, can advice it to anyone!


Warm regards,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 4-jan-06, at 01:14, Scott Rossi wrote:


I've been plagued by this enough that I thought I would ask...

For me, creating simple ZIP archives on Mac systems that contain a  
few files

is usually straightforward.  However, I often find that when the ZIP
archives starts to contain nested subfolders, I often wind up with  
invisible
.ds_store files that corrupt the archive when it comes time to  
decompress on
Windows systems.  The only recourse seems to be to move folders  
over to

Windows, delete any .ds_store files, and compress there.

Is there any Mac utility out there that allows one to poke around  
inside a
ZIP archive to delete these extraneous .ds_store files?  Or even  
better,
some way to tell Stuffit to ignore/delete these files in the first  
place?



___
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


mySQL question

2005-12-27 Thread Ton Kuypers

Hi,

I've seem to have a small problem using mySQL from within Revolution...

I'm trying to import a lot of data into mySQL tables.

I'm reading an export file and build a query using a repeat loop,  
which basically creates a command like:
	insert into Clients  
(ID,Name,FirstName,LastName,Email,Country,EmailCC,Remarks) values  
('480','S-P Africa','Maamoun','Allam','','1','','');"
	insert into Clients  
(ID,Name,FirstName,LastName,Email,Country,EmailCC,Remarks) values  
('481','S-P Australia','Doug','Way','','2','','');
	insert into Clients  
(ID,Name,FirstName,LastName,Email,Country,EmailCC,Remarks) values  
('482','S-P  
Australia','Bethany','South','[EMAIL PROTECTED]','2','','');
	insert into Clients  
(ID,Name,FirstName,LastName,Email,Country,EmailCC,Remarks) values  
('483','S-P Austria','Peter','Guenczler','','3','','');
	insert into Clients  
(ID,Name,FirstName,LastName,Email,Country,EmailCC,Remarks) values  
('484','S-P Austria','Gertraud','Neuberger','','3','','');

etc.
This can result is a command that inserts more then 10.000 records.

When I send each line separately, the records get inserted into the  
database, but when I try to send them all together, it takes forever...


I'm using the revExecuteSQL command.

Is there a better way to import a bunch of data into mySQL?

When I copy the query and execute it from CocoaMySQL, it works fine.

Anyone any suggestions?

Regards,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



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


Re: [OT]test

2005-12-18 Thread Ton Kuypers

ok, ignored, because you asked so nicely ;-)


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 18-dec-05, at 14:27, Mark Smith wrote:


test, everyone ingnore except tom...:)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Hidden feature in Revolution (according to the documentation...)

2005-12-08 Thread Ton Kuypers

Just a note to the person who is responsible for the documentation...

When you type "print" in the docs, you will get some information on a  
very nice feature: "revPrintReport"...
But it must be a hidden feature, because all references in this part  
of the docs are invisible to me ;-)


Maybe you would want to remove it in the next release (or, even  
better, add the mentioned ReportBuilder)...


Enjoy!

Ton Kuypers

___
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: just a test, please ignore

2005-12-07 Thread Ton Kuypers

Thank you ;-)

On 7-dec-05, at 22:28, Thomas McGrath III wrote:


IGNORED

On Dec 7, 2005, at 3:11 PM, Ton Kuypers wrote:


as the subject says: just a test, please ignore
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: tabbed windows

2005-12-07 Thread Ton Kuypers

Marty,

When I started using Revolution, this was quite a mystery to me as  
well, but it works so easy...


Create a tabbed button with for instance 3 tabs in it: "My First  
Tab", "Tab Number Two" and "The Last Tab"


The script of this button (or at least, the way I do it):

ON menuPick vNew
put the text of me into vTabs
REPEAT with a = 1 to the num of lines of vTabs
try
hide grp (line a of vTabs)
END try
END REPEAT
try
show grp vNew
END try
END menuPick

To make different objects show when you click on a tab, just create a  
group of these objects and name them the same as the tabs


Maybe there are better ways, but this one helps me out every time :-)


Good luck & happy coding!


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


just a test, please ignore

2005-12-07 Thread Ton Kuypers

as the subject says: just a test, please ignore
___
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


Alias or shortcut of an object

2005-12-05 Thread Ton Kuypers

Hi,

Is it possible to create a "clone", "Alias" or something like that of  
an object or a group of objects in Revolution?


I thought it was by using the "clone" command, but the docs state  
that cloning is the same as duplicating... Basically I need to do the  
same thing as the IDE does when opening more then one script window.


Can somebody give me a clue on how is this done?

Thanks!



Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Why isn't Rev more popular?

2005-12-01 Thread Ton Kuypers

I second that!
I have started with Hypercard, used Toolbook, VB and SuperCard and  
finally "ended" with Revolution...
All of the mentioned tools have their bugs and strange behaviours,  
but none of them allow expanding the IDE as much as RR does. I've  
created a few tools for my daily use but Constellation covered most  
of them.
I even added support for the gadget bar for all of my small utilities  
and the revTabRuler, so they are available "one click away".


My partner in business is a .NET person all the way and I envy the  
possibilities he has in developing apps, but it would be silly to  
expect the same functionality from Revolution.
.NET is a single OS development tool and created by the developer of  
the same OS.


I have a lot of suggestions for RR version 3 and would love to share  
them with Kevin or the rest of the RR team, but I'm not sure if my  
contribution is so valuable... It seems that our Scottish friends  
have a strategy for they key product and they have to grow into  
becoming a world player, but they realise very well they will never  
become the number one in development.
They listen to us but they have their own strategy and that is not  
really of our concern!

And my humble opinion is that we should realise that as well ;-)


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 1-dec-05, at 21:26, Trevor DeVore wrote:


On Dec 1, 2005, at 12:13 PM, Jerry Daniels wrote:
Some of us are moving ahead with significant supplements to the  
Rev IDE with the full support of Runtime Revolution.


Check us out:

http://www.daniels-mara.com/products


And some of us have been using these significant Rev IDE  
supplements and are very happy with them :-)


Next to finally coming to understand of the message path,  
Constellation has been one of the biggest productivity boosters in  
my Rev development.



--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: Documented Cursor Bug...Please try.

2005-12-01 Thread Ton Kuypers

Problem confirmed.
MAC OS 10.4.3  Powerbook G4
Last Rev IDE and engine

Hope this one gets fixed or their will be a workaround... I have this  
problem when a user enters name and password in a login stack and  
hits enter to continue... very annoying...



Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 1-dec-05, at 05:38, Chipp Walters wrote:


Hi all,

Jerry Daniels and I spent about an hour today trying to create a  
very simple recipe to replicate the 'Cursor stuck on I-beam'  
phenomenon most of us see regularly. I've built cursor libraries in  
the past to fix this, but the latest Rev engine (Windows) goes  
bezerk with the hand cursor sometimes and ends up writing garbage  
all over the screen. So, I'm more determined to just get Rev to fix  
the engine.


Here's the deal. I would very much appreciate it if many of you  
could test out this simple recipe stack:


type into the msg box (or cut and paste):

go URL "http://www.altuit.com/webs/altuit2/RunRev/cursorbug.rev";

The instructions are plain, and you can get back to me on this list  
whether or not your curson got 'stuck.' It's been tested on Windows  
XP but not much on other platforms. It would be great if MC users  
could test this too, so we can document it as an engine bug and not  
an IDE bug (I believe this in an engine bug).


Thanks!!!

-Chipp

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: Transparency and PNG format

2005-11-29 Thread Ton Kuypers


The only place I know of in our techno-universe where transparent  
GIFs are categorically better than transparent PNGs is in the IE  
browser - it doesn't support transparency in PNGs.


Unless you are using Adobe GoLive CS2, which has a fix to show PNG in  
Internet Explorer...

Or use FireFox, handles transparant PNGs beautifully!

And if not, let everybody start using a Mac, no problem there as well

;-)


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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


Updated version of Daily Comics in RunRev... A Garfield a day keeps thestress away!

2005-11-28 Thread Ton Kuypers

Just updated the version online...
For the Gadget Bar users: Just drop it into your Gadget folder and  
click on it when you need a break ;-)


Enjoy,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Daily Comics in RunRev... A Garfield a day keeps thestress away!

2005-11-28 Thread Ton Kuypers

hahaha
How a fun stack like this can fill up a list with a completely  
different subject ;-)


If you can't get it solved Jerry, I can send it to you off-list, no  
problem...


Ton


On 28-nov-05, at 23:35, Martin Baxter wrote:


Jerry Muelver wrote:

From: "Andre Garzia"

Jerry,

RevOnline is only accesible thru Rev IDE or Dreamcard Player.  
Launch  Rev IDE, there's a menu "development", the first item of  
this menu is RevOnline... ;-)


Cheers
andre
Whoops Nope. I've got Rev 2.2.1, Linux "get acquainted"  
version, with no Rev Online in the Development menu. I guess I'll  
have to wait until my CFO (wife) comes through with the upgrade  
cost. I need a "persuader". I'll put together a Revolution Linux  
replacement for MS Office and OpenOffice, so she can see that I'm  
serious about this.

 Jerry Muelver


Jerry,

All is not lost though. List member Eric Chatonet recently made  
available a stack for accessing the stacks at revOnline, which  
should work with your version. It is called online picker and can  
be downloaded at Eric's website:

http://www.sosmartsoftware.com/

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Daily Comics in RunRev... A Garfield a day keeps the stress away!

2005-11-28 Thread Ton Kuypers

Hi,

Live is not all about business, sometimes you should do something  
crazy with Revolution as well :-)


That's why I've just uploaded a small stack to RevOnline under  
"General" or at the user "DMP".


It's called "DailyComics" and shows you the daily comic of Garfield,  
Baldo, Broom-Hilda, etc.
I've made it possible to keep your favorites, but you can browse both  
lists.


The only thing missing for me is a way to find out how to get the  
comics of www.comics.com, so I can include the Daily Gilbert as well  
to my favorites.
If anyone can tell me what the logic of the filenames on that website  
could be, I'll update it this stack to include these as well


Enjoy!


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



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


Re: How to force a true TXT extension?

2005-11-23 Thread Ton Kuypers

William,

Try this, it also traps when the user clicks on "Cancel"...

ON mouseUp
ask file "Bewaar woordenlijst als:" with "*.TXT"
IF it = empty THEN exit mouseup
put it into vUserChoice
IF char -4 to -1 of vUserChoice <> ".TXT" THEN put ".TXT" after  
vUserChoice

put field "woorden_uit" into URL ("file:" & vUserChoice)
answer "De woordenlijst is bewaard!"
END mouseUp


Succes!

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 23-nov-05, at 23:37, William de Smet wrote:


Hi there,

Been busy for a while with my little program and ran into the  
following problem:
The user can save a file with a .TXT extension and with Windows XP  
the dialog box shows the suggested *.TXT as filename.
When deleting or overwriting the suggested name (without extension)  
the saved file is not recognized as a .TXT file.


How can I force a true .TXT extension (even when deleting the  
suggested name)?


I use the following code:
on mouseUp
ask file "Bewaar woordenlijst als:" with "*.TXT"
  put field "woorden_uit" into URL ("file:" & it)
  answer "De woordenlijst is bewaard!"
end mouseUp

Thanks!

William de Smet
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Updated FieldsCreator in RevOline

2005-11-23 Thread Ton Kuypers

Hi,

Just to let you know I've updated a little stack named "FieldsCreator".

It is unprotected, change it if you like, I know there must be things  
that can be done better ;-)


It is just a small stack I use a lot, to put fields and corresponding  
labels on a stack.
Use it as a regular stack, or drop it into your plugins folder and  
select it from there.
And as a little bonus, it now is compatible with the Gadget Bar  
plugin... Drop it into the Gadgets Folder and enjoy!


You can find it in RevOnline under "Utilities" or at the user "DMP".



Warm regards,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: [slightly OT] using sudo -S via shell

2005-11-22 Thread Ton Kuypers
Couldn't get it to work, but found a much better solution on "http:// 
developer.apple.com/technotes/tn2002/tn2065.html"


Now I just create an AppleScript and run it, works like a charm :-)

And with a little extra added to the functionality as a bonus:
"Note: Using sudo(8) with with administrator privileges is generally  
unnecessary and creates security holes; simply remove the "sudo"."


Thanks everybody for your help.

Ton

On 20-nov-05, at 21:17, Ken Ray wrote:


On 11/20/05 12:50 PM, "Mark Wieder" <[EMAIL PROTECTED]> wrote:


Ken-

Saturday, November 19, 2005, 11:01:52 AM, you wrote:

Here's how... in this case I'm using sudo to kill a process (the  
id of which

is in tPID):



put "#!/bin/sh" & cr into tScript
put "pw="&tPassword & cr into tScript
put "echo $pw | sudo -S kill -9" && tPID & cr after tScript
get shell(tScript)


And, obviously, that second line should say "after" tScript...


Actually it's funny you mention that... it has worked for me with  
that error
in place, so perhaps the default shell I've been using works just  
as well as

sh anyway, you're right though - it should be "after".

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


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

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: Calling webservices from RR

2005-11-19 Thread Ton Kuypers

Andre,

Do you already have a some kind of demo stack from which I (and other  
interested persons on this list) can take a look at and learn from it?
Just to get me started, if it is to confidential to share with the  
world, please contact me off-list, I'm really interested in what you  
did...


Many thanks in advance,

Ton Kuypers


On 18-nov-05, at 19:37, Andre Garzia wrote:


Hi There folks,

welcome to the Revolution. As a matter of fact Rev can do  
webservices, any webservices you want as long as you can code. It's  
not as simply as some languages where you drop a WSDL file and all  
the methods are added. There are libraries for SOAP and XML-RPC.  
The SOAP library, I think its being redone at this moment, so the  
current one is deprecated, since I hate Soap I don't keep following  
it. The XML-RPC one (my choice for web services) work very fine.  
Before Rev sported a official XML-RPC library, I was able to code  
my own XML-RPC stack very easy. Revolution socket routines are very  
powerful, if you understand the string manipulation ones and the  
XML ones, then you can DIY anything that goes thru HTTP.


If you want to use server side libraries instead of client ones,  
you must code your own, but they are easy to do, and if you also  
use libCGI they are even easier to do.


You don't need altBrowser for that, but anyone working with Rev and  
web will find a very nice friend in both altBrowser and altSQLite.  
As it appears below, you're controlling both sides of the system,  
well, if you're making the client and the server in Rev, and your  
app won't need to interface with foreign clients then you can throw  
the standards to the wind and create your own web services spec as  
it suits you but keep in mind, both Soap and XML-RPC are just fancy  
XML, it's very easy to use them in Rev.


Cheers
andre

PS: I'll try creating some demo stacks in the near future.

On Nov 18, 2005, at 10:49 AM, Alessandro Manotti wrote:


Hi,
I had the same problem.
I search in internet, and everything I found was an unofficial stack
(it seems old...) to use soap.
So I reached this conclusion: I use RunRev power to manage xml (not
soap), then I create a jsp page (or javabean) in a Java server which
will act as a service broker. So the "hard job" will be done in the
server, then I send/receive data from/to RunRev in xml   :-)

Obviously, you can use any web server-language you wish (php, zope,
python, perl, etc...).






On 11/18/05, Ton Kuypers <[EMAIL PROTECTED]> wrote:

Hi,

Has anyone experience with using Windows Webservices from within
Revolution applications and interacting with them?
If not directly, maybe via altBrowser?

Before I start testing en getting specs from the developers of these
Webservices, it would be nice to know if I can use them...

regards,

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

http://lists.runrev.com/mailman/listinfo/use-revolution


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

http://lists.runrev.com/mailman/listinfo/use-revolution


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

http://lists.runrev.com/mailman/listinfo/use-revolution



___
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


[slightly OT] using sudo -S via shell

2005-11-19 Thread Ton Kuypers

hi,

I know there are people online with a lot of unix knowledge, so  
here's a question for them:


Through a rev-app a user needs to automatically create a bunch of  
folders on a servervolume and this user has limited privileges for  
the root directory these folders need to be in.
The server is an OS-X server, so I was looking into the sudo -S  
command...


Because I don't have a server like that setup, I created another  
account on my Mac, but I don't think I can be very sure everything  
works the way it should work...


The command I send via shell is "sudo -S mkdir '/users/test/desktop/ 
testfolder'"


The result is a new folder on the test-users desktop.
But when I do the same from the terminal, I get the question to enter  
a password for the same command.


Questions:
- Why don't I need to enter a password when using RR?
- What will happen when I do this on a network volume?
- How do I send the password in one line with the sudo command,  
because I can't seem to get this working from within the Terminal app.


Many thanks in advance,

Ton Kuypers
___
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


Calling webservices from RR

2005-11-18 Thread Ton Kuypers

Hi,

Has anyone experience with using Windows Webservices from within  
Revolution applications and interacting with them?

If not directly, maybe via altBrowser?

Before I start testing en getting specs from the developers of these  
Webservices, it would be nice to know if I can use them...


regards,

Ton Kuypers
___
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: Find the item a user clicked on...

2005-11-09 Thread Ton Kuypers

Dan,

I'd love to try it, but where can I find it on your site?

greetings,

Ton


On 9-nov-05, at 23:30, Dan Shafer wrote:

Or you could use Altuit's wonderful altFieldHeader plugin (http:// 
www.altuit.com) which automates this whole process quite neatly.



On Nov 9, 2005, at 1:29 PM, Eric Chatonet wrote:



Hi Ton,

If I understand correctly:
Your headers are the first line of your field and not buttons or  
something else placed above the field?

If it's the case, you can:

1. Set the style of each header to "link"
2. Set the underlineLinks property of your stack to false
3. Set the different link colors in an appropriate way if needed

Then the kinks do not appear but do exist and you just need:

on linkClicked pLink
  
end linkClicked

pLink mirrors always the complete header.

Not sure that is exactly your problem ;-)

Best Regards from Paris,

Eric Chatonet.

Le 9 nov. 05 à 21:25, Ton Kuypers a écrit :


I have a small problem, which probably someone has solved a long  
time ago...


I have a header above a field with columns of data.
The amount of columns are different each time, the header above  
the field will differ also each time.


I now would like to sort the items in the field, when a user  
clicks on one of the words in the header, but how do I know what  
item the user clicked on?
I only get the ClickChunk or the ClickText, but who has a clever  
routine to get the item a user clicked on?


The titles in the header are separated by tabs and can consist of  
more then one word each.


Any help is welcome :-)


Warm regards,




So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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





~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
From http://www.shafermediastore.com/tech_main.html


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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Re: Find the item a user clicked on...

2005-11-09 Thread Ton Kuypers

:-)))

Eric, thanks!!!

I've never used the link-stuff and had no idea where to start, but  
you got me going, I've solved the challenge thanks to you!


many thanks again,

Ton.


On 9-nov-05, at 22:29, Eric Chatonet wrote:


Hi Ton,

If I understand correctly:
Your headers are the first line of your field and not buttons or  
something else placed above the field?

If it's the case, you can:

1. Set the style of each header to "link"
2. Set the underlineLinks property of your stack to false
3. Set the different link colors in an appropriate way if needed

Then the kinks do not appear but do exist and you just need:

on linkClicked pLink
  
end linkClicked

pLink mirrors always the complete header.

Not sure that is exactly your problem ;-)

Best Regards from Paris,

Eric Chatonet.

Le 9 nov. 05 à 21:25, Ton Kuypers a écrit :


I have a small problem, which probably someone has solved a long  
time ago...


I have a header above a field with columns of data.
The amount of columns are different each time, the header above  
the field will differ also each time.


I now would like to sort the items in the field, when a user  
clicks on one of the words in the header, but how do I know what  
item the user clicked on?
I only get the ClickChunk or the ClickText, but who has a clever  
routine to get the item a user clicked on?


The titles in the header are separated by tabs and can consist of  
more then one word each.


Any help is welcome :-)


Warm regards,




So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Find the item a user clicked on...

2005-11-09 Thread Ton Kuypers

hi,

I have a small problem, which probably someone has solved a long time  
ago...


I have a header above a field with columns of data.
The amount of columns are different each time, the header above the  
field will differ also each time.


I now would like to sort the items in the field, when a user clicks  
on one of the words in the header, but how do I know what item the  
user clicked on?
I only get the ClickChunk or the ClickText, but who has a clever  
routine to get the item a user clicked on?


The titles in the header are separated by tabs and can consist of  
more then one word each.


Any help is welcome :-)


Warm regards,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Opening a directory in windows

2005-11-05 Thread Ton Kuypers

The Ken Ray's site has a nice tip, which I use all the time...
http://www.sonsothunder.com/devres/revolution/tips/file009.htm

Ton


On 6-nov-05, at 03:28, Jeffrey Reynolds wrote:

Has anyone found a way to have a directory opened up in Windows  
from a rev command?


What i am trying to do is just open the windows explorer/my  
computer with the requested directory open. basically I want the  
user to see a directory of files opened in windows that are stored  
on a cdrom by an action from an application running from that cdrom.


thanks

jeff

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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Re: popup of menu (functionality not correct implemented...)

2005-11-01 Thread Ton Kuypers

Martin,

Interesting approach...
I will see if it is working in my app, thanks for the effort!

regards,

Ton Kuypers


On 1-nov-05, at 22:23, Martin Baxter wrote:


Ton,

Although you have given up, you might want to consider this, which  
seems to work in a simple test stack.


The flimsy part of this is that you need to know the height of a  
menuitem in your popup, and I don't know a way to get this  
programmatically. I did a screenshot and measured it at 17 pixels  
on XP here.


The offset of the popup topleft sets the last selection under the  
mouse when the menu pops up, and I find that highlights it.


--card script
on mousedown
  put max(field "num",1) into tn
  popup btn "testpop" at mouseh()-8,(mousev()-8-((tn-1)*17))
end mousedown

--script of popup button "testpop"
on menupick
  put the menuhistory of me into field "num"
end menupick

## My test stack has a field "num" which holds the
## last menuhistory of btn "testpop"
## just for testing purposes of course

Martin Baxter



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


Re: popup of menu (functionality not correct implemented...)

2005-11-01 Thread Ton Kuypers

:-(

Not working either... I give up, will probably switch to another kind  
of menu...


Thanks anyway!

Ton

On 1-nov-05, at 18:25, David Burgun wrote:


Just one more!

Try this:

  select line fGetMenuItem(fld "TestField") of the text of me

About 1000 to 1 odds on it working tho!

All the Best
Dave



:-(

Unless I misunderstood what you ment, it doesn't work...

I have a button on the card of type "pop up" named "TestMenu"
This button has got 10 lines of text, which creates a menu of 10  
items.

I have one field on the card named "Test"

The button contains the following code:
on mouseDown
  select line fGetMenuItem(fld "TestField") of me
end mouseDown

ON menupick vChoice
  put vChoice into fld "TestField"
  set the menuHistory of me to fGetMenuItem(fld "TestField")
END menupick

FUNCTION fGetMenuItem vMenuItemName
  put the text of button "TestMenu" into vMenuText
  put lineOffset(vMenuItemName,vMenuText) into vMenuItem
  return vMenuItem
END fGetMenuItem

and the result: The menu just pops up with item 1 underneath the  
cursor :-(



Any more suggestions?

Ton


On 1-nov-05, at 18:03, David Burgun wrote:
Have you tried:

select line GetMeniItem("theMenuString") of me

This may work.
All the Best
Dave

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

http://lists.runrev.com/mailman/listinfo/use-revolution



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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Re: popup of menu (functionality not correct implemented...)

2005-11-01 Thread Ton Kuypers

:-(

Unless I misunderstood what you ment, it doesn't work...

I have a button on the card of type "pop up" named "TestMenu"
This button has got 10 lines of text, which creates a menu of 10 items.
I have one field on the card named "Test"

The button contains the following code:
on mouseDown
  select line fGetMenuItem(fld "TestField") of me
end mouseDown

ON menupick vChoice
  put vChoice into fld "TestField"
  set the menuHistory of me to fGetMenuItem(fld "TestField")
END menupick

FUNCTION fGetMenuItem vMenuItemName
  put the text of button "TestMenu" into vMenuText
  put lineOffset(vMenuItemName,vMenuText) into vMenuItem
  return vMenuItem
END fGetMenuItem

and the result: The menu just pops up with item 1 underneath the  
cursor :-(



Any more suggestions?

Ton


On 1-nov-05, at 18:03, David Burgun wrote:
Have you tried:

select line GetMeniItem("theMenuString") of me

This may work.
All the Best
Dave

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


Re: popup of menu (functionality not correct implemented...)

2005-11-01 Thread Ton Kuypers

Dave,

That is something I already implemented, right after Scott Rossi's  
suggestion...


But the problem is that menuHistory doesn't work for buttons with the  
menu type "Pop Up" :-((


Ton



On 1-nov-05, at 17:06, David Burgun wrote:


Hi,

All you have to do is this:

function GetMenuItem theMenuItemName
put lineOffset(theMenuItemName,the text of button "popUp") into my  
myMenuItem

return myMenuItem



Then use it like this:

set the menuHistory of button "popUp" to GetMenuItem("TheMenuString")

All the Best
Dave




Scott,

MenuHistory is indeed is the function I need, but this doesn't  
work for buttons of type "popup".
Furthermore it is very strange that you would have to supply a  
number instead of the text selected...
I'm displaying data from a database, when a user clicks on a  
record he gets the data displayed and some of the data can be  
changed using pop-up menu's. So when a user clicks, I would first  
have to find the item in the list and set the menuhistory every  
time the user selects another record... Would be much easier when  
I could popup the menu with the text in a field...


If it would work for a regular pop-up menu :-(

Thanks anyway,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 1-nov-05, at 15:57, Scott Rossi wrote:



Recently, Ton Kuypers  wrote:


In the "old days", when I didn't know better, I was using  
SuperCard.
I seem to recall there was a possibility to popup menu's with a  
basic

value...
What I mean is the user selected item 27 from a menu and the next
time he opened the menu, the menu showed item 27 of the menu at the
mouseposition.

I think the command was popup menu "XXX" at the topleft of me with
fld "menuresult" (or something like that...)

In Revolution this works for a button of type "Option" but I  
need to

use a regular pop-up button.

Anybody any suggestions?




If I understand what you're asking, I believe you want the  
menuHistory

property.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

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

http://lists.runrev.com/mailman/listinfo/use-revolution




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

http://lists.runrev.com/mailman/listinfo/use-revolution



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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Re: popup of menu (functionality not correct implemented...)

2005-11-01 Thread Ton Kuypers

Scott,

MenuHistory is indeed is the function I need, but this doesn't work  
for buttons of type "popup".
Furthermore it is very strange that you would have to supply a number  
instead of the text selected...
I'm displaying data from a database, when a user clicks on a record  
he gets the data displayed and some of the data can be changed using  
pop-up menu's. So when a user clicks, I would first have to find the  
item in the list and set the menuhistory every time the user selects  
another record... Would be much easier when I could popup the menu  
with the text in a field...


If it would work for a regular pop-up menu :-(

Thanks anyway,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 1-nov-05, at 15:57, Scott Rossi wrote:


Recently, Ton Kuypers  wrote:



In the "old days", when I didn't know better, I was using SuperCard.
I seem to recall there was a possibility to popup menu's with a basic
value...
What I mean is the user selected item 27 from a menu and the next
time he opened the menu, the menu showed item 27 of the menu at the
mouseposition.

I think the command was popup menu "XXX" at the topleft of me with
fld "menuresult" (or something like that...)

In Revolution this works for a button of type "Option" but I need to
use a regular pop-up button.

Anybody any suggestions?



If I understand what you're asking, I believe you want the menuHistory
property.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


popup of menu

2005-11-01 Thread Ton Kuypers

Hi,

In the "old days", when I didn't know better, I was using SuperCard.  
I seem to recall there was a possibility to popup menu's with a basic  
value...
What I mean is the user selected item 27 from a menu and the next  
time he opened the menu, the menu showed item 27 of the menu at the  
mouseposition.


I think the command was popup menu "XXX" at the topleft of me with  
fld "menuresult" (or something like that...)


In Revolution this works for a button of type "Option" but I need to  
use a regular pop-up button.


Anybody any suggestions?

Regards,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Enhancement for Constellation?

2005-10-26 Thread Ton Kuypers
forgot to mention that I really would like to have these comments set  
when Constellation reformats the script (using TAB or ENTER).
Now it capitalises these structures, should be easy to add the  
comments when a structure grows...

And of course make the amount of lines a preference ;-)

Ton


On 27-okt-05, at 01:03, Mark Wieder wrote:


Ton-

Wednesday, October 26, 2005, 2:40:30 PM, you wrote:



When working in larger structures, I found it handy to automatically
insert a comment at the end of a control structure, showing the name
of the control structure.
The comment is only placed when the structure is more then 5 lines
big, including the start- and endline.



I do the same, only I rarely limit it to structures five lines or
longer - I know that I'll be going in and adding things to the
conditional structure later on, whether I intend to or not, so adding
the comment when I create it makes it harder to forget about it when
the structure grows later.

--
-Mark Wieder
 [EMAIL PROTECTED]

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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Is there a userlist or a forum for Constellation?

2005-10-26 Thread Ton Kuypers
I really like this one, but is it fair to use this list for questions  
and remarks on Constellation?


Of course I could use [EMAIL PROTECTED] as stated on http:// 
www.daniels-mara.com, but then the suggestions or remars aren't  
visible to all other users...


Any suggestions are welcome


Ton Kuypers
___
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


Missing option in Constellation

2005-10-26 Thread Ton Kuypers

And another enhancement suggestion:

When editing a script in the regular Revolution IDE, the "Edit" menu  
has got 2 nifty items that are missing when using Constellation:

- Paste as comment
- Paste as formatted string

Both I use quite a lot, and are (probably the only) option I miss  
since switching to Constellation...



Regards,

Ton Kuypers
___
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


Enhancement for Constellation?

2005-10-26 Thread Ton Kuypers

Hi,

Started using Constellation a few days ago and after some getting  
used to it, I must say I LIKE IT!!


As probably a lot of us, I've created a few "helper" stacks to put in  
the missing parts in the basic Revolution IDE but all of my items are  
incorporated in Constellation a lot better.

Except for one...

When working in larger structures, I found it handy to automatically  
insert a comment at the end of a control structure, showing the name  
of the control structure.
The comment is only placed when the structure is more then 5 lines  
big, including the start- and endline.


Example:
IF it would be summer all year THEN
Do something line 1
Do something line 2
Do something line 3
ELSE
Do another thing line 1
Do another thing line 2
Do another thing line 3
Do another thing line 4
IF it is winter and there is a lot of snow THEN
REPEAT with a = 1 to the amount of snow
Do snowboard thing line 1
Do snowboard thing line 2
Do snowboard thing line 3
END REPEAT  -- with a = 1 to the amount of snow
END IF  -- it is winter and there is a lot of snow
END IF  -- it would be summer all year

This way it is very easy to see what end belongs to what beginning...

Maybe a suggestion for the next version of Constellation?


Regards,

Ton Kuypers
___
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: Slightly OT: Setting privileges on OS-X

2005-10-21 Thread Ton Kuypers

Sarah,

I knew I had to use the chmod command, but thanks to you it is up and  
running :-))


Many thanks for your help!

Ton


On 20-okt-05, at 01:16, Sarah Reichelt wrote:


Are there Unix-wizzkids out there?

I've created a small RR app that creates a bunch of standard folders
(like the list below) where users can drop job-related items in.

Now I need to secure these folders, but not the content...
The folders I create may not be deleted by a user, only by the owner,
which will be me :-)) but the users are allowed to create new folders
or files in the basic folders. These files and folders they should be
able to change, delete, rename, etc.




Hi Ton,

I don't claim to be a Unix-wizzkid at all, but I have learnt some
stuff about privileges.

Each file or folder in Unix / OS X has 3 sets of privileges: owner,
group & guest.
There are 3 settings in each set: read, write and execute (r, w & x).

If you open a Terminal window and type "ls -l" and press Return, you
will see a list of items in the current folder. The first section of
the data shows the current privilege settings.
Here is an example:
-rwxr-xr-xa file where the owner can do anything (rwx) , the group
can read & execute but not write (r-x) and guests (anyone else) can
also read & execute but not write (r-x).

If the first character was "d" instead of "-", then it would be a
folder (directory).

To change these settings, you need to use the "chmod" command.
To add write privileges for all users to a file, use a command like  
this:

 chmod a+w filename
To remove write privileges, use this:
chmod a-w filename

However this does not stop people deleting your files or folders. To
make a folder "sticky" i.e. make it so that users other than the owner
can only add files and not delete them, use this command:
chmod +t foldername

To make files undeletable, I would use an AppleScript to toggle their
"locked" setting:
Here is an example that asks for a file, then locks it so it cannot  
be deleted.


tell application "Finder"
set tFile to choose file
set the locked of file tFile to true
end tell

I hope this helps, but please email me directly if you think I can be
of any further assistance.

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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Slightly OT: Setting privileges on OS-X

2005-10-17 Thread Ton Kuypers

Hi,

Are there Unix-wizzkids out there?

I've created a small RR app that creates a bunch of standard folders  
(like the list below) where users can drop job-related items in.


Now I need to secure these folders, but not the content...
The folders I create may not be deleted by a user, only by the owner,  
which will be me :-)) but the users are allowed to create new folders  
or files in the basic folders. These files and folders they should be  
able to change, delete, rename, etc.


I've found a lot of examples on the web, but I don't know anything on  
unix privileges, Sticky Bits, etc...
Is there anyone around who has created a shell script or an app that  
does thins like this? If not I will have a sleepless night in solving  
this, because I know it should be possible...



Any help is welcome

Ton Kuypers


Example:
Job 1 Read Write
Folder 1Read Write
Folder 1Read Write
UserFolder 1   Read Write Delete
UserFile 1Read Write Delete
UserFile 2Read Write Delete
UserFile 3Read Write Delete
UserFile 1Read Write Delete
UserFile 2Read Write Delete
UserFile 3Read Write Delete
Folder 2Read Write
UserFolder 2   Read Write Delete
UserFile 1Read Write Delete
UserFile 2Read Write Delete
UserFile 3Read Write Delete
UserFile 1Read Write Delete
UserFile 2Read Write Delete
UserFile 3Read Write Delete
Folder 2Read Write
Folder 1Read Write
Folder 2Read Write
Folder 1Read Write
UserFolder 1   Read Write Delete
UserFile 1Read Write Delete
UserFile 2Read Write Delete
UserFile 3Read Write Delete
Folder 2Read Write
Folder 3Read Write
Folder 3Read Write
Folder 4Read Write
Job 2 Read Write
Folder 1Read Write
Folder 1Read Write
Folder 2Read Write
Folder 2Read Write
Folder 1Read Write
Folder 2Read Write
Folder 1Read Write
Folder 2Read Write
Folder 3Read Write
Folder 3Read Write
Folder 4Read Write

etc.




___
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: TCP/IP error addendum

2005-10-03 Thread Ton Kuypers
In the Standalone Application Settings I've checked the mySQL and  
Valentia libs... They also appear in the folder next to the standalone.


It used to work and on Windows it still does, that's the strange thing.

Ton


On 3-okt-05, at 16:11, [EMAIL PROTECTED] wrote:


Hi Ton

Seems like maybe you forgot to include the revdatabase library...

cheers
Xavier

[EMAIL PROTECTED] wrote on 03/10/2005 16:06:33:



This morning I've posted an error with RR:
When connecting to a mySQL database I get the error "Can't create  
TCP/

IP socket (43)"

The strange thing is that there is no problem when using the IDE or a
standalone for Windows, only when creating a standalone for Mac OS9.

Anyone any suggestions before I put all kind of answer messages in
the source to see where things go wrong in the standalone?

Regards,

Ton Kuypers

___
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





-
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you  
are

not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




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


TCP/IP error addendum

2005-10-03 Thread Ton Kuypers

This morning I've posted an error with RR:
When connecting to a mySQL database I get the error "Can't create TCP/ 
IP socket (43)"


The strange thing is that there is no problem when using the IDE or a  
standalone for Windows, only when creating a standalone for Mac OS9.


Anyone any suggestions before I put all kind of answer messages in  
the source to see where things go wrong in the standalone?


Regards,

Ton Kuypers

___
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


TCP/IP error

2005-10-03 Thread Ton Kuypers

Very small & quick question:

RR application running on Mac OS9. It used to work fine, but now I  
get an error when connecting to the mySQL database:

Can't create TCP/IP socket (43)

Anyone an idea on what could cause this error? It looks like a Mac OS  
error...



Regards,

Ton Kuypers

___
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: "Kinky" sort...

2005-09-19 Thread Ton Kuypers
hmmm, after implementing it and looking to your mail again, this is  
not what the outcome should be :-(

This code does the same thing as
Sort vData with item 3 of each
Sort vData with item 4 of each
The result first shows the lines without any groups, followed by the  
lines containing groups.


When I use your code (or mine) all lines without groups are put at  
the bottom of the list, not between the grouped items...


so making it even simpler:
Nrgroupdate
1 AOctober
2 ANovember
3September
4 BAugust
5 BJuly
6 CJuly
7 CAugust
8January
Should become
Nrgroupdate
8January
5 BJuly
4 BAugust
6 CJuly
7 CAugust
3September
1 AOctober
2 ANovember

So first the date within the group, and then the other items with the  
first date in the group as a key...


h, is this clear what I need?

Thanks,

Ton


On 19-sep-05, at 12:27, Mark Smith wrote:


Something like this, in transcript?


repeat for each line L in vData
  -- split the data into an array using the group as keys (no group  
lines go into groupZ)

if item 3 of L is not empty then
  put L & cr after groupArray[item 3 of L]
else
  put L & cr after groupArray[groupZ]
end if
  end repeat
  put the keys of groupArray into kList
  sort lines of kList
  repeat for each line L in kList
sort lines of groupArray[L] numeric by item 4 of each
put groupArray[L] & cr after theSortedList
  end repeat

  filter theSortedList without empty -- strip any empty lines from  
trailing crs


gives you:

1,text 1,group1,20050104
2,text 2,group1,20050104
8,text 8,group1,20050104
5,text 5,group2,20050104
3,text 3,group2,20051004
10,text 10,group3,20050104
4,text 4,group3,20051004
7,text 7,,20050104
6,text 6,,20050204
9,text 9,,20050204

(I inserted commas as the itemDelimiter into the original data)

Is this the order you wantd?


Mark


On 19 Sep 2005, at 09:45, Ton Kuypers wrote:









Hi gang,

I am out of inspiration, somebody please help me...

I've got a listbox containing a list of data:
IDDescriptionGroupDate
1 text 1 group1   20050104
2 text 2 group1   20050104
3 text 3 group2   20051004
4 text 4 group3   20051004
5 text 5 group2   20050104
6 text 6  20050204
7 text 7  20050104
8 text 8 group1   20050104
9 text 9  20050204
10text 10group3   20050104

The date column is in fact the result of the seconds-function.
The data is the result of a SQL query to mySQL

I need to sort the list on date, without splitting the groups and  
thats where I'm out of luck:

When I use
Sort vData with item 4 of each
Sort vData with item 3 of each
the groups are divided, when I use
Sort vData with item 3 of each
Sort vData with item 4 of each
the result first shows the lines without any groups, followed by  
the lines containing groups.


How do I display these lines in the correct order without  
splitting the groups?
The dates within a group could differ (but not likely) but in that  
case the first first date should be the line to sort.


Anybody any suggestions for using a kinky SQL statement or how to  
setup a sort in RR?


Regards & many thanks in advance,

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

http://lists.runrev.com/mailman/listinfo/use-revolution
















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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Re: "Kinky" sort...

2005-09-19 Thread Ton Kuypers

Mark,

I hope you don't mind, but you are a "kinky" guy
I will implement this but it looks exactly what I was looking for :-)

Thanks

Ton


On 19-sep-05, at 12:27, Mark Smith wrote:


Something like this, in transcript?


repeat for each line L in vData
  -- split the data into an array using the group as keys (no group  
lines go into groupZ)

if item 3 of L is not empty then
  put L & cr after groupArray[item 3 of L]
else
  put L & cr after groupArray[groupZ]
end if
  end repeat
  put the keys of groupArray into kList
  sort lines of kList
  repeat for each line L in kList
sort lines of groupArray[L] numeric by item 4 of each
put groupArray[L] & cr after theSortedList
  end repeat

  filter theSortedList without empty -- strip any empty lines from  
trailing crs


gives you:

1,text 1,group1,20050104
2,text 2,group1,20050104
8,text 8,group1,20050104
5,text 5,group2,20050104
3,text 3,group2,20051004
10,text 10,group3,20050104
4,text 4,group3,20051004
7,text 7,,20050104
6,text 6,,20050204
9,text 9,,20050204

(I inserted commas as the itemDelimiter into the original data)

Is this the order you wantd?


Mark


On 19 Sep 2005, at 09:45, Ton Kuypers wrote:









Hi gang,

I am out of inspiration, somebody please help me...

I've got a listbox containing a list of data:
IDDescriptionGroupDate
1 text 1 group1   20050104
2 text 2 group1   20050104
3 text 3 group2   20051004
4 text 4 group3   20051004
5 text 5 group2   20050104
6 text 6  20050204
7 text 7  20050104
8 text 8 group1   20050104
9 text 9  20050204
10text 10group3   20050104

The date column is in fact the result of the seconds-function.
The data is the result of a SQL query to mySQL

I need to sort the list on date, without splitting the groups and  
thats where I'm out of luck:

When I use
Sort vData with item 4 of each
Sort vData with item 3 of each
the groups are divided, when I use
Sort vData with item 3 of each
Sort vData with item 4 of each
the result first shows the lines without any groups, followed by  
the lines containing groups.


How do I display these lines in the correct order without  
splitting the groups?
The dates within a group could differ (but not likely) but in that  
case the first first date should be the line to sort.


Anybody any suggestions for using a kinky SQL statement or how to  
setup a sort in RR?


Regards & many thanks in advance,

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

http://lists.runrev.com/mailman/listinfo/use-revolution
















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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


"Kinky" sort...

2005-09-19 Thread Ton Kuypers

Hi gang,

I am out of inspiration, somebody please help me...

I've got a listbox containing a list of data:
IDDescriptionGroupDate
1 text 1 group1   20050104
2 text 2 group1   20050104
3 text 3 group2   20051004
4 text 4 group3   20051004
5 text 5 group2   20050104
6 text 6  20050204
7 text 7  20050104
8 text 8 group1   20050104
9 text 9  20050204
10text 10group3   20050104

The date column is in fact the result of the seconds-function.
The data is the result of a SQL query to mySQL

I need to sort the list on date, without splitting the groups and  
thats where I'm out of luck:

When I use
Sort vData with item 4 of each
Sort vData with item 3 of each
the groups are divided, when I use
Sort vData with item 3 of each
Sort vData with item 4 of each
the result first shows the lines without any groups, followed by the  
lines containing groups.


How do I display these lines in the correct order without splitting  
the groups?
The dates within a group could differ (but not likely) but in that  
case the first first date should be the line to sort.


Anybody any suggestions for using a kinky SQL statement or how to  
setup a sort in RR?


Regards & many thanks in advance,

Ton Kuypers
___
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


Posting formdata to URL

2005-09-12 Thread Ton Kuypers

Hi,

I have a problem posting a file to a website using RR

I need to supply some parameters and the file, just like a normal  
webform would post, but I keep on getting errors...
Uploading the file doesn't work, if I try to retrieve information  
including parameters, there is no problem (put URL XXX into url (/ 
Users/Ton/desktop/etc, etc, etc).

Using post vPostData to vURL then I get an error.

Anybody any suggestions how to upload a file to an .aspx page?



Warm regards,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Posting formdata to URL

2005-09-12 Thread Ton Kuypers

Dave,

thanks for this URL, Ill be checking it first thing when I get back  
in the office, but I guess this is indeed the part I was missing


Ton


On 12-sep-05, at 15:54, Dave Cragg wrote:



On 12 Sep 2005, at 13:27, Ton Kuypers wrote:



Hi,

I have a problem posting a file to a website using RR

I need to supply some parameters and the file, just like a normal  
webform would post, but I keep on getting errors...
Uploading the file doesn't work, if I try to retrieve information  
including parameters, there is no problem (put URL XXX into url (/ 
Users/Ton/desktop/etc, etc, etc).

Using post vPostData to vURL then I get an error.

Anybody any suggestions how to upload a file to an .aspx page?




You'd have to confirm what encoding the server script expects, but  
posting files is normally done using a content type of multipart/ 
form-data. (If you have an html version of the form, check if the  
form tag has an ENCTYPE attribute of "multipart/form-data".)


Then take a look at the libUrlMultipartFormData function. (I just  
noticed that the standard Rev dictionary leaves out an important  
piece of data in this entry. I think the docs incorrectly interpret  
some of the text as an xml tag.) I suggest you look at the web  
version of the libUrl documentation:


   http://support.runrev.com/resources/ 
liburlrealdocs.html#libUrlMultipartFormData


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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Posting formdata to URL

2005-09-12 Thread Ton Kuypers

Hi,

I have a problem posting a file to a website using RR

I need to supply some parameters and the file, just like a normal  
webform would post, but I keep on getting errors...
Uploading the file doesn't work, if I try to retrieve information  
including parameters, there is no problem (put URL XXX into url (/ 
Users/Ton/desktop/etc, etc, etc).

Using post vPostData to vURL then I get an error.

Anybody any suggestions how to upload a file to an .aspx page?



Warm regards,


Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: "Decompile" Windows RR application

2005-08-04 Thread Ton Kuypers

GREAT!!
This one worked, saved me a lot of work!

Tnx

Ton

On 3-aug-05, at 23:38, Pat Trendler wrote:


Ton,

This was on the list some time ago, can't remember who, I think it  
was Monte.


I've used this myself a couple of times.

on mouseUp
 answer file "Standalone"
 if it is "cancel" then exit to top
 put url ("binfile:"&it) into tStack
 repeat forever
 -- there's more than one stackfile in there which isinteresting ;-)
   put offset("#!/bin/sh",char 10 to -1 of tStack) into tOff
   if tOff = 0 then exit repeat
   put char tOff+9 to -1 of tStack into tStack
 end repeat
 ask file "Stack"
 if it is "cancel" then exit to top
 set the fileType to "RevoRSTK"
 put tStack into url ("binfile:"&it)
 answer "conversion finished" with "OK"
end mouseUp

When finished rename the stack with a rev extension.

Pat
[EMAIL PROTECTED]


- Original Message - From: "Ton Kuypers" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: Thursday, August 04, 2005 2:29 AM
Subject: "Decompile" Windows RR application




Hi gang,

I've had a disk-crash a couple of months ago and lost almost all   
files on that disk.
Among the lost files is also the RR source of a program I've  
created.  The only thing I have is the windows exe file.


Is there a way to "decompile" this back to a working RR project  
(or  even just parts of it) or do I just start all over again?


Ton Kuypers

___
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


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.9/62 - Release Date:  
2/08/2005





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

http://lists.runrev.com/mailman/listinfo/use-revolution




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


  1   2   >