Japanese text, cgi, sql (again)

2009-06-04 Thread Nicolas Cueto
Hello All,

On and off over the last three years, I've
been trying to crack the problem of
downloading Japanese text which is
contained in a mysql database by
a stack + rev.cgi combination.

It's that time of year again.

As with past attempts, my latest too
works fine except for the same old
problem --  Japanese text arrives
in the stack garbled (English text
is ok).

Having tried a variety of suggestions
from this list and from Japanese-users
of Rev (the database's and its fields'
collations; Rev uniencode/unidecode/
unicodetext commands; etc),   my
latest thought is the problem may lie
with this final part of my cgi script:


  -- put Content-Type: text/plain  cr before buffer
  -- put Content-Type: text/html; charset = utf-8  cr
  put  Content-Length:  the length of buffer  cr  cr
  put buffer


As the commented-out lines show, I've tried
different Content-Type.  But not having a full
understanding of how this or char-set work,
they're just blind guesses.

Could the cgi-script's content-type / charset
(or something else similar) be what's garbling
the Japanese text?

Perhaps this year will be the lucky one.

Thanks.

--
Nicolas Cueto
___
use-revolution mailing list
use-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: Japanese text, cgi, sql (again)

2009-06-04 Thread Martin Baxter
Nicolas Cueto wrote:
 Hello All,
 
 On and off over the last three years, I've
 been trying to crack the problem of
 downloading Japanese text which is
 contained in a mysql database by
 a stack + rev.cgi combination.
 
 It's that time of year again.
 
 As with past attempts, my latest too
 works fine except for the same old
 problem --  Japanese text arrives
 in the stack garbled (English text
 is ok).
 
 Having tried a variety of suggestions
 from this list and from Japanese-users
 of Rev (the database's and its fields'
 collations; Rev uniencode/unidecode/
 unicodetext commands; etc),   my
 latest thought is the problem may lie
 with this final part of my cgi script:
 
 
   -- put Content-Type: text/plain  cr before buffer
   -- put Content-Type: text/html; charset = utf-8  cr
   put  Content-Length:  the length of buffer  cr  cr
   put buffer
 
 
 As the commented-out lines show, I've tried
 different Content-Type.  But not having a full
 understanding of how this or char-set work,
 they're just blind guesses.
 
 Could the cgi-script's content-type / charset
 (or something else similar) be what's garbling
 the Japanese text?
 
 Perhaps this year will be the lucky one.
 
 Thanks.
 
 --
 Nicolas Cueto

Hello Nicolas,

I'm no expert but, working with mySQL and websites, I have found that
the following MySQL command is needed to tell the database what kind of
data it is about to transmit (this assumes the data is actually utf-8 of
course)

SET NAMES 'utf8'

You would use revExecuteSQL with the connection id to isssue this after
making the connection and before trying to transmit the data. Every part
of the process has to be told what kind of data it is dealing with.

Martin Baxter

-- 
If you want to go fast, go alone; if you want to go far, go together
(African proverb)
___
use-revolution mailing list
use-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: Japanese text, cgi, sql (again)

2009-06-04 Thread Kay C Lan
On Thu, Jun 4, 2009 at 2:35 PM, Nicolas Cueto nicon...@gmail.com wrote:


 On and off over the last three years, I've
 been trying to crack the problem of
 downloading Japanese text which is
 contained in a mysql database by
 a stack + rev.cgi combination.

 It's that time of year again.

 As with past attempts, my latest too
 works fine except for the same old
 problem --  Japanese text arrives
 in the stack garbled (English text
 is ok).

 How do you know where the text becomes garbled?

Have you tried with a 'local' mySQL database?

When you send Japanese Text from Rev to mySQL and view it with a 3rd party
app like Navicat, does it appear in Navicat as you would expect it to? ie
has it arrived in the db correctly?

If you use Navicat to:

SELECT japaneseTextColumn FROM myTable INTO OUTFILE
'HD/Users/Shared/textDump.txt'

does it come out as you expect?

If you use Rev's revExecuteSQL command to do the statement above does the
file come out exactly the same? (note you will have to use a different file
name as mySQL will not overwrite an existing file)

If you use Rev's revDataFromQuery command and place the result in a variable
and look at it in the Variable Watcher is it what you expect?

Does it all fall apart at the very last step, placing the variable into a
html document where it is no longer displayed correctly?

You say it arrive's in the Rev stack garbled, but you mention html char set,
is this in a revBrowser window or do you mean a html document which then
displays in Firefox incorrectly?

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


revDatabaseColumnNamed

2009-06-04 Thread Björnke von Gierke

Hi

I am trying to store arrays (using arrayen/decode) in an sqlite  
database, and then retrieve them later on. Unfortunately, It seems  
that I am unable to get binary out of the database.


Things I tried:
  --always the same query, data should be a binaryencoded array
  put select data from liveData where name=:1 into theQuery

  --using revdatafromquery (not recommended by docu)
  put revdatafromquery(,,databaseID, theQuery,theName) into  
theProp3


  --issuing revquerydatabase
  put revQueryDatabase(databaseID, theQuery, theName) into x

  --using revDatabaseColumnNamed, no output variable
  --this is not recommended for binary data
  put revDatabaseColumnNamed(x,data) into theProp2

  --using revDatabaseColumnNamed, with an output variable
  --this is recommended for binary data
  put revDatabaseColumnNamed(x,data, theProp) into x

  --test the data
  put theProp3= theProp and theProp2 = theProp

result= true
bvg= :-(

Note that doing arrayDecode on any of the prop-vars will result in a  
runtime error.


Can anyone tell me how to store and retrieve binary data using sql,  
without it being changed in between?


thanks
Björnke

--

official ChatRev page:
http://bjoernke.com/runrev/chatrev.php

Chat with other RunRev developers:
go stack URL http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev;

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


A fix for the the Help shortcut bug

2009-06-04 Thread Mark Schonewille

Hi,

One of the most annyong bugs in Revolution is the disfunctional Help  
shortcut. It is that annyoing because first I notice at least every  
single day, when I press command-? to open the Help window, which  
doesn't happen, and second it is extremely easy to fix, really takes  
no more than 10 minutes. This bug has been around for years and I'm  
fed up with it. So, here's how to fix it, following the IDE's  
conventions. Obviously, do this only if you know what you're doing and  
don't contact support if you're suddenly experiencing new problems  
after applying this fix (*usual disclaimers apply).



Put the following into the message box:

  edit script of btn revShortCuts of stack revLibrary

Search for the line

  if the shiftkey is not down

You will see that this line is the start of an if-then-else control  
structure, which contains a switch control structure. The last case in  
the switch is case 7. Add a case, right after the break for case 7,  
and add a case for the slash (/)/. Now add, starting on a new line:


case /
  send menuPick  quote  Help Contents  quote to btn Help of  
stack revMenuBar

  break

Optionally, you can paste the following handler at the end of the  
script:


on rawKeyDown theKey
 if theKey is 268762986 then
  send menuPick  quote  Help Contents  quote to btn  
Help of stack revMenuBar

 else pass rawKeyDown
end rawKeyDown

This will allow you to press the Help key on the extended Apple  
keyboard to open the dictionary (it might even work on PC's). Now  
compile the script. Next, type the following in the messge box and  
type enter:


  edit script of btn Help of stack revMenuBar

Search for the line

  case Dictionary

and create a new empty line right after this line. Type the following  
on the new empty line:


  case Help Contents

and compile the script. As a result, the cases Dictionay and Help  
Contents will do the same from now on. Subsequently, execute the  
following line from the message box:


save stack revLibrary

as well as the syntax

save stack revMenubar

You can now close the script editor windows and you're done.

If you tried this without success or if you know a better solution,  
please let me know off-list.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.com

If you sent me an e-mail before 15 May and haven't got a reply yet,  
please send me a reminder.




___
use-revolution mailing list
use-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: Tab in datagrid

2009-06-04 Thread Trevor DeVore

On Jun 3, 2009, at 10:22 PM, Hershel Fisch wrote:

Question, How do I achieve a fld identification e.g. Line 3 fld 4 or  
a name

or whatever  via the tab key and then by leaving that particular fld
triggering a closeField?


Hi Hershel,

I'm not sure I understand what information you need. Can you describe  
the entire process of what you want to have happen?


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Tab in datagrid

2009-06-04 Thread Hershel Fisch
Ok, thanks, 
I have a populated dg editEnabled now by changing the contents of a cell
(moving via tab key because by a mouse click it will give me a fld identity
when put a mouseUp in the dgGroup) I need to trigger a closeField to
activate a sql query to update the database.
Hershel


On 6/4/09 9:18 AM, Trevor DeVore li...@mangomultimedia.com wrote:

 On Jun 3, 2009, at 10:22 PM, Hershel Fisch wrote:
 
 Question, How do I achieve a fld identification e.g. Line 3 fld 4 or
 a name
 or whatever  via the tab key and then by leaving that particular fld
 triggering a closeField?
 
 Hi Hershel,
 
 I'm not sure I understand what information you need. Can you describe
 the entire process of what you want to have happen?
 
 Regards,


___
use-revolution mailing list
use-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: Tab in datagrid

2009-06-04 Thread Trevor DeVore

On Jun 4, 2009, at 3:51 PM, Hershel Fisch wrote:


Ok, thanks,
I have a populated dg editEnabled now by changing the contents of a  
cell
(moving via tab key because by a mouse click it will give me a fld  
identity

when put a mouseUp in the dgGroup) I need to trigger a closeField to
activate a sql query to update the database


I just uploaded some new lessons about editing this morning. This  
lessons talks about the messages and commands that are used when  
editing cell contents. It also links to the API docs that I updated  
with info on the field editing commands.


Basically you want to handle CloseFieldEditor for saving.

How Do I Open a Table Cell For Editing?: http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagrid/lessons/4668-How-Do-I-Open-a-Table-Cell-For-Editing- 



Let me know if this helps.

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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


finding older versions of rev

2009-06-04 Thread Jeff Reynolds

Hi all,

In past times theres been a bunch of the major versions up on the  
revrun site to download. for some historical reasons with a client im  
trying to find a v2.8 for windows of studio. any idea of where i can  
find them?


thanks

jeff reynolds
___
use-revolution mailing list
use-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: A fix for the the Help shortcut bug

2009-06-04 Thread DunbarX
Mark.

Hi.

Help window? Do you mean the dictionary? I never heard of the help
window. The docs say that pressing F1 or the Help key will send the help
message, and they will, though as you say, they don't seem to do anything.

I keep the user guide on my lap. Is there really another resource?

Craig

In a message dated 6/4/09 11:34:25 AM, m.schonewi...@economy-x-talk.com
writes:


 when I press command-? to open the Help window,





**
We found the real ‘Hotel California’ and the ‘Seinfeld’
diner. What will you find? Explore WhereItsAt.com.
(http://www.whereitsat.com/#/music/all-spots/355/47.796964/-66.374711/2/Youve-Found-Where-Its-At?ncid=eml
cntnew0007)
___
use-revolution mailing list
use-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: A fix for the the Help shortcut bug

2009-06-04 Thread DunbarX
Mark.

The reason I asked is that I have no such menuItem Help Contents. I can 
certainly trap the help message, and:

send menuPick  quote  Dictionary  quote to btn Help of stack 
revMenuBar

I am using v. 3.5.

Craig


**
We found the real ‘Hotel California’ and the ‘Seinfeld’
 diner. What will you find? Explore WhereItsAt.com. 
(http://www.whereitsat.com/#/music/all-spots/355/47.796964/-66.374711/2/Youve-Found-Where-Its-At?nci
d=emlcntnew0007)
___
use-revolution mailing list
use-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: A fix for the the Help shortcut bug

2009-06-04 Thread Mark Schonewille

Hi Craig,

You're very right, there is no menu item Help Contents, but  
apparently there are places in the IDE that assume there is such an  
item. Because I don't want to mess up the IDE too much, my fix  
pretends the menu item to exist, which should solve all problems  
caused by calls to this menu item.


(Would you mind quoting the preceding message, when you reply? --Thanks)

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.com

If you sent me an e-mail before 15 May and haven't got a reply yet,  
please send me a reminder.




On 4 jun 2009, at 20:15, dunb...@aol.com wrote:


Mark.

The reason I asked is that I have no such menuItem Help Contents.  
I can

certainly trap the help message, and:

send menuPick  quote  Dictionary  quote to btn Help of stack
revMenuBar

I am using v. 3.5.

Craig


___
use-revolution mailing list
use-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: finding older versions of rev

2009-06-04 Thread Mark Schonewille

Hi Jeff,

Old versions are mostly unavailable. Recently, I noticed that some  
files are available on the FTP server again. You can find them at ftp://ftp.runrev.com/pub/revolution/downloads/ 
. If you need a version newer than 2.7.1 you need to contact support.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.com

If you sent me an e-mail before 15 May and haven't got a reply yet,  
please send me a reminder.




On 4 jun 2009, at 19:53, Jeff Reynolds wrote:


Hi all,

In past times theres been a bunch of the major versions up on the  
revrun site to download. for some historical reasons with a client  
im trying to find a v2.8 for windows of studio. any idea of where i  
can find them?


thanks

jeff reynolds



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


revDatabaseColumnNamed

2009-06-04 Thread Mark Stuart
Written by Björnke von Gierke on Thu Jun 4, 2009 - 09:32 AM CDT


Can anyone tell me how to store and retrieve binary data using sql,  
without it being changed in between?
thanks
Björnke


Hi Björnke,

Check out the Rev Dictionary for revDatafromQuery:

local tImageData
put the text of image MyImage into tImageData
get revDataFromQuery(, , myID, SELECT size FROM images WHERE imagedata = :1, 
*btImageData)

You can also use the name of a numerically indexed array, instead of a list of 
variable names. In this case, the elements of the array are substituted for the 
corresponding placeholders. To pass binary data in an array element, prepend 
*b to the element's value.

local tImageDataArray
put *b  the text of image MyImage into tImageDataArray[1]
get revDataFromQuery(, , myId, SELECT size FROM images WHERE imagedata = :1, 
tImageDataArray)


HTH u,
Mark Stuart
Email has been scanned for viruses by Altman Technologies' email management 
service - 
www.altman.co.uk/emailsystems___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


finding older versions of rev

2009-06-04 Thread Mark Stuart
Written by Jeff Reynolds on Thu Jun 4, 2009 - 12:53 AM CDT


im trying to find a v2.8 for windows of studio. any idea of where i can

find them?
thanks
jeff Reynolds


Hi Jeff,
I'll check tonite at home to see if I still have the Windows installer
executable for that version.
I'll reply after looking.

--
 Regards,
 Mark Stuart
Email has been scanned for viruses by Altman Technologies' email management 
service - 
www.altman.co.uk/emailsystems___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


accessing subdomains

2009-06-04 Thread -= JB =-
I have on-rev and want to access my subdomain which has been already  
added

but am not able to.

For example a simple calendar can be displayed in my on-rev by using

http://myrevdomain.on-rev.com/calendar.irev

I want to display this calendar from my subdomain.com and added the  
calendar.irev to
the subdomain.com folder which is in the public files folder.  i have  
tried a number of
different ways to access the calendar file in my subdomain.com and  
can't.  It seems
to me the below should access they calendar file in subdomain.com.   
Am I writing it

wrong or what could be the problem?

http://subdomain.com/calendar.irev/myrevdomain.on-rev.com

I have used subdomain.com as an example name but enter the proper  
name when I

am trying to access it.

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


Re: Popup menu bug?

2009-06-04 Thread J. Landman Gay

Josep wrote:

Hello Jaqueline,

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


Yes, that's right.



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


Either way will work. I don't think performance will be different. The 
main reason to use a local variable is to avoid conflicting global 
names, but if it is your own standalone then you can control that. If 
you want to keep the scripts in each button, that should be fine.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: accessing subdomains

2009-06-04 Thread Devin Asay


On Jun 4, 2009, at 2:03 PM, -= JB =- wrote:


I have on-rev and want to access my subdomain which has been already
added
but am not able to.

For example a simple calendar can be displayed in my on-rev by using

http://myrevdomain.on-rev.com/calendar.irev

I want to display this calendar from my subdomain.com and added the
calendar.irev to
the subdomain.com folder which is in the public files folder.  i have
tried a number of
different ways to access the calendar file in my subdomain.com and
can't.  It seems
to me the below should access they calendar file in subdomain.com.
Am I writing it
wrong or what could be the problem?

http://subdomain.com/calendar.irev/myrevdomain.on-rev.com

I have used subdomain.com as an example name but enter the proper
name when I
am trying to access it.


Is it a subdomain or an add-on domain?

Subdomains are accessed like this

  http://subdomain.myrevdomain.on-rev.com/calendar.irev

For an add-on domain you must have registered it previously with  
another registrar and pointed it to a folder on your on-rev site. Then  
you can access it like this:


  http://myotherdomain.com/calendar.irev

HTH

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: accessing subdomains

2009-06-04 Thread -= JB =-


On Jun 4, 2009, at 1:31 PM, Devin Asay wrote:



Is it a subdomain or an add-on domain?

Subdomains are accessed like this

  http://subdomain.myrevdomain.on-rev.com/calendar.irev

For an add-on domain you must have registered it previously with  
another registrar and pointed it to a folder on your on-rev site.  
Then you can access it like this:


  http://myotherdomain.com/calendar.irev

HTH

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


It is listed as both an add-on and a subdomain.  I have decided to
test with a file that is very simple and shows the date.  I was able
to access it using mydomain.com/date.irev which is the version
you showed for an add-on but can't access it as a subdomain.  Is
it supposed to work with both?  I like the add-on style so it doesn't
matter, just wondering.

thanks for the help.

-=JB=-
___
use-revolution mailing list
use-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: revDatabaseColumnNamed

2009-06-04 Thread Björnke von Gierke


On 4 Jun 2009, at 21:41, Mark Stuart wrote:

Written by Björnke von Gierke on Thu Jun 4, 2009 - 09:32 AM CDT

Can anyone tell me how to store and retrieve binary data using sql,
without it being changed in between?


Check out the Rev Dictionary for revDatafromQuery:
local tImageData
put the text of image MyImage into tImageData
get revDataFromQuery(, , myID, SELECT size FROM images WHERE  
imagedata = :1, *btImageData)


local tImageDataArray
put *b  the text of image MyImage into tImageDataArray[1]
get revDataFromQuery(, , myId, SELECT size FROM images WHERE  
imagedata = :1, tImageDataArray)


Uhm... I used revDataFromQuery in my example (replicated below). Note  
that my question is not about how to use binary as part of a query  
(which the examples from the dict are about), but how to store and  
retrieve binary by using sql, which i was unable to get to work.  
Additionally the dict entry you mention says (thus my comment of it  
being non-recommended):


--
Important: The revDataFromQuery function should not be used if any of  
the data being retrieved is binary, doing so will probably produce  
unexpected results.

--



my examples:
--
--always the same query, data should be a binaryencoded array
 put select data from liveData where name=:1 into theQuery

 --using revdatafromquery (not recommended by docu)
 put revdatafromquery(,,databaseID, theQuery,theName) into  
theProp3


 --issuing revquerydatabase
 put revQueryDatabase(databaseID, theQuery, theName) into x

 --using revDatabaseColumnNamed, no output variable
 --this is not recommended for binary data
 put revDatabaseColumnNamed(x,data) into theProp2

 --using revDatabaseColumnNamed, with an output variable
 --this is recommended for binary data
 put revDatabaseColumnNamed(x,data, theProp) into x
--


any other ideas?
Björnke

--

official ChatRev page:
http://bjoernke.com/runrev/chatrev.php

Chat with other RunRev developers:
go stack URL http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev;

___
use-revolution mailing list
use-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: Tab in datagrid

2009-06-04 Thread Hershel Fisch

 
 Let me know if this helps.
Yes but I have a bit difficulties understanding exactly how it works.

I would write my script in the group and not in each and every column
something like this..

On closeFieldEditor pFieldEditor
  put pColumnName into tC
  revExecuteSQL databaseId, INSERT INTO tableName  tC  VALUE  \
  the text of pFieldEditor.
End closeFieldEditor
 
 Regards,
Thanks, Hershel


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


Re: OT: Rev to Flash translation

2009-06-04 Thread George C Brackett

Thanks for your reply...three days ago (oops).  I appreciate it!
George

On Jun 3, 2009, at 3:57 AM, Dave Cragg wrote:

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


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


Cheers
Dave


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

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


George

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

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


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

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


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


Background image problems

2009-06-04 Thread Sumner, Walt
Can anyone shed some light on using paint tools and imagedata on images in a bg 
group?

Here's my situation: I have either 1 or 3 pictures to generate, each held by a 
separate image object. The user adjusts a bunch of settings and then presses a 
button to generate new pictures. To let the user see what is happening, the 
first is always visible, and is supposed to update frequently. 

Because the new picture might look a lot like the old picture, the script 
selects some gray color and uses the pencil to draw horizontal lines over the 
first picture. This is fairly quick and gives a clear impression that the 
picture is being rebuilt. This works fine if the image is not part of a group. 
It works if the image is not the only image in a group. It seems not to work if 
the image is the only image in a group (Rev takes enough time to draw gray over 
the image, but no partially or fully gray image ever appears).

Next step is to generate new images. I take the imagedata for the all gray 
image, which is automatically the right size, make copies as needed for 
additional images, and then run through the pixels of each imagedata copy, 
inserting RGB values calculated on the fly. This is 300x faster than using 
paint tools. After every 1024 pixels, the script sends the imageData on the 
screen, so it looks like the image is redrawing a line or a few lines at a 
time. This works fine if the image is not part of a group and the script 
includes unlock screen commands. It seems not to work if the image is in a 
group.  

Finally, the imagedata of the first image is set to the 1st imagedata, the 
imagedata of the second image is set to the 2nd imagedata, and same for the 
third. If all three images are in a group with bg behavior, the second and 
third look right and the first never updates - it's just gray. This problem 
persists with a 1-card stack. If all three images are not in a group, they all 
work fine. 

This application lends itself to making many cards bearing different pictures, 
so I was hoping to put images in a group with bg behavior. However this seems 
not to work. I expect that I can remove the images from the group and make new 
image objects as needed, but what a kluge. Any thoughts on what is going wrong?

Rev Ent 3.5.0 dp7 build 820, Intel Macbook Pro OSX, 10.5.5

Thanks,

Walt Sumner

___
use-revolution mailing list
use-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: Background image problems

2009-06-04 Thread Joe Lewis Wilkins

Hi Walt,

Instead of telling us what you have done, and that it apparently  
doesn't do what you want it to do, is there a chance that you can just  
tell us in good old plain English what it is you are expecting to  
accomplish? Maybe there is an easier way to do what you want to do  
that will not produce the chain of events you've described, since I  
think many of us have ways of doing things that use our own  
approaches. And there is usually more than one way to skin a cat in  
Revolution. Just a thought.


Joe Wilkins

On Jun 4, 2009, at 7:11 PM, Sumner, Walt wrote:

Can anyone shed some light on using paint tools and imagedata on  
images in a bg group?


Here's my situation: I have either 1 or 3 pictures to generate, each  
held by a separate image object. The user adjusts a bunch of  
settings and then presses a button to generate new pictures. To let  
the user see what is happening, the first is always visible, and is  
supposed to update frequently.


Because the new picture might look a lot like the old picture, the  
script selects some gray color and uses the pencil to draw  
horizontal lines over the first picture. This is fairly quick and  
gives a clear impression that the picture is being rebuilt. This  
works fine if the image is not part of a group. It works if the  
image is not the only image in a group. It seems not to work if the  
image is the only image in a group (Rev takes enough time to draw  
gray over the image, but no partially or fully gray image ever  
appears).


Next step is to generate new images. I take the imagedata for the  
all gray image, which is automatically the right size, make copies  
as needed for additional images, and then run through the pixels of  
each imagedata copy, inserting RGB values calculated on the fly.  
This is 300x faster than using paint tools. After every 1024 pixels,  
the script sends the imageData on the screen, so it looks like the  
image is redrawing a line or a few lines at a time. This works fine  
if the image is not part of a group and the script includes unlock  
screen commands. It seems not to work if the image is in a group.


Finally, the imagedata of the first image is set to the 1st  
imagedata, the imagedata of the second image is set to the 2nd  
imagedata, and same for the third. If all three images are in a  
group with bg behavior, the second and third look right and the  
first never updates - it's just gray. This problem persists with a 1- 
card stack. If all three images are not in a group, they all work  
fine.


This application lends itself to making many cards bearing different  
pictures, so I was hoping to put images in a group with bg behavior.  
However this seems not to work. I expect that I can remove the  
images from the group and make new image objects as needed, but what  
a kluge. Any thoughts on what is going wrong?


Rev Ent 3.5.0 dp7 build 820, Intel Macbook Pro OSX, 10.5.5

Thanks,

Walt Sumner


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


numeric sorting doesnt work

2009-06-04 Thread Serge Brami
I have a very simple stack  i have tried to make a banking account  
report.

Column 1 = DATE
Column 2 = TEXT
Column 3 = NUMBER with 2 decimals
Column 4 = NUMBER with 2 decimals

if i want to sort Column 3 or 4  by numeric ascending or descending it  
doesntwork (either choosing the sort key in the group inspector or by  
script)

mac OS 10.5 french system

I send this little stack attached help  thanks


by the way i signal a little bug (not very important but...) if you  
try to delete a datagrid  you select it and you delete it taping  
backkey or choosing delete a standard alert answer  dialog comme to  
front would you like to delete the record template associated with  
this data grid this action cannot be undone  with two button  
choiceYES and NO  (which is preselected) if you choose NO the datagrid  
IS DELETED if you choose YES the datagrid is NOT DELETED) ...




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

DATAGRID numeric sorting doesnt work

2009-06-04 Thread Serge Brami



Début du message réexpédié :


De : Serge Brami sbr...@noos.fr
Date : 5 juin 2009 07:27:46 HAEC
À : How to use Revolution use-revolution@lists.runrev.com
Objet : numeric  sorting doesnt work
Répondre à : How to use Revolution use-revolution@lists.runrev.com

I have a very simple stack  i have tried to make a banking account  
report. WITH a DATAGRID

Column 1 = DATE
Column 2 = TEXT
Column 3 = NUMBER with 2 decimals
Column 4 = NUMBER with 2 decimals

if i want to sort Column 3 or 4  by numeric ascending or descending  
it doesntwork (either choosing the sort key in the group inspector  
or by script)

mac OS 10.5 french system

I send this little stack attached help  thanks


by the way i signal a little bug (not very important but...) if you  
try to delete a datagrid  you select it and you delete it taping  
backkey or choosing delete a standard alert answer  dialog comme to  
front would you like to delete the record template associated with  
this data grid this action cannot be undone  with two button  
choiceYES and NO  (which is preselected) if you choose NO the  
datagrid IS DELETED if you choose YES the datagrid is NOT DELETED) ...




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

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

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