Re: How do you solve this dilemma?

2009-08-09 Thread Mark Schonewille

Hi,

I would love to host those teaching materials on a web site :-)

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software products to http://www.quickestpublisher.com and  
get found!


On 9 aug 2009, at 06:43, Judy Perry wrote:

FWIW, I agree that this is an issue that badly needs current  
addressing.


Can you tell me much about the demographics of your fellow teachers  
and coworkers?  e.g., how old are they, what do they teach, what do  
they want to do with the software, what sorts of software do they  
already know how to use, etc.??


Depending upon the answers to these questions, and whether it was in  
my ability range, I'd be happy to develop teaching materials for  
them...


Let me know...

Judy



___
use-revolution mailing list
use-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 do you solve this dilemma?

2009-08-09 Thread capellan

Hi Judy,

Many thanks for replying to my questions!
Now i remember that you have already teach
this platform in your classes. :-)

Teachers that i have met in Courses, Seminaries and
Workshops have the most diverse background and skills:
Age: From 25 to 55
Subjects: Language (spanish, english), Math (elemental and advanced),
Social Sciences (Economics, Education, Geography, History, Psychology)
English language skills: From Basic to Advanced

Coworkers in the Proyecto Entra 21:
http://www.isa.edu.do/isaweb/entra21.html
Age: From 30 to 50
Know how to use (and offer classes) of very specific
Computer Software:
(Excel, Word, Powerpoint, Photoshop, etc..)
English language skills: From Basic to Advanced

Ideally, these educational materials and user mail
list and user forums should be hosted in runrev site,
in many languages (translated by volunteers)
so they will be always available from a central place.

In theory, most of HyperCard teaching materials should be
applicable to this platform, but this would require to adapt
them for this new software.

Have a nice weekend!

al
-- 
View this message in context: 
http://www.nabble.com/How-do-you-solve-this-dilemma--tp24878034p24886376.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


copy audioClip?

2009-08-09 Thread Richard Gaskin
I have an audioClip in an old stack for which I've lost the source file. 
 I'd like to use this clip in another stack.


Is there a way to copy audioClips from one stack to another?

It's been years since I've used them at all, my memory's getting rusty. :)

TIA -

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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: copy audioClip?

2009-08-09 Thread Richard Gaskin

Richard Gaskin wrote:
I have an audioClip in an old stack for which I've lost the source file. 
 I'd like to use this clip in another stack.


Is there a way to copy audioClips from one stack to another?

It's been years since I've used them at all, my memory's getting rusty. :)


Nevermind - turned this up in the archives:
http://lists.runrev.com/pipermail/use-revolution/2006-June/083957.html

Looks like the copy command does the trick.

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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: delete last char in Datagrid

2009-08-09 Thread Robert M.

I just had same problem and finally decided NOT to use the datagrid editcell,
but to stick to the normal cell behaviour (with focusable propertty of grid
template fields on) and to trap the openfield closefield msg at the group
level, in the datagrid behavior script. It workds like a charm, with one
click (I might need a license for that!).

Except.. I'm just opeening up a pbl thread with datagrid.. relative to the
order of visit of lines using tabulations (see on list)

Robert


Trevor DeVore wrote:
 
 On Aug 4, 2009, at 7:54 PM, Josep wrote:
 
 But how can edit directly the cell of the datagrid without making a
 doubleclick?
 
 This lesson should do what you need. It shows you how to update data  
 in a row (or cell).
 
 How Do I Update Data In a Row?:
 http://revolution.screenstepslive.com/spaces/revolution/manuals/datagrid/lessons/5434-How-Do-I-Update-Data-In-a-Row-
  
  
 
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/delete-last-char-in-Datagrid-tp24818097p24886891.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: copy audioClip?

2009-08-09 Thread Scott Morrow

Hello Richard,
Try this
copy audioCLip coolsound.wav  of stack untitled 1 to stack  
Untitled 2


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--




On Aug 9, 2009, at 5:45 AM, Richard Gaskin wrote:


Richard Gaskin wrote:
I have an audioClip in an old stack for which I've lost the source  
file.  I'd like to use this clip in another stack.

Is there a way to copy audioClips from one stack to another?
It's been years since I've used them at all, my memory's getting  
rusty. :)


Nevermind - turned this up in the archives:
http://lists.runrev.com/pipermail/use-revolution/2006-June/083957.html 



Looks like the copy command does the trick.

--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.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: How do you solve this dilemma?

2009-08-09 Thread Judy Perry

Hi Al,

What sorts of things would your colleagues like to be able to do with Rev?

Thanks,

Judy

On Sun, 9 Aug 2009, capellan wrote:



Hi Judy,

Many thanks for replying to my questions!
Now i remember that you have already teach
this platform in your classes. :-)

Teachers that i have met in Courses, Seminaries and
Workshops have the most diverse background and skills:
Age: From 25 to 55
Subjects: Language (spanish, english), Math (elemental and advanced),
Social Sciences (Economics, Education, Geography, History, Psychology)
English language skills: From Basic to Advanced

Coworkers in the Proyecto Entra 21:
http://www.isa.edu.do/isaweb/entra21.html
Age: From 30 to 50
Know how to use (and offer classes) of very specific
Computer Software:
(Excel, Word, Powerpoint, Photoshop, etc..)
English language skills: From Basic to Advanced

Ideally, these educational materials and user mail
list and user forums should be hosted in runrev site,
in many languages (translated by volunteers)
so they will be always available from a central place.

In theory, most of HyperCard teaching materials should be
applicable to this platform, but this would require to adapt
them for this new software.

Have a nice weekend!

al
--
View this message in context: 
http://www.nabble.com/How-do-you-solve-this-dilemma--tp24878034p24886376.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


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


[datagrid] bug? TAB navigation follows INDEX order instead of LINE order

2009-08-09 Thread Robert M.

Hi , I finally solved the problem so far, but in a trick-diry way, and I
wondered if I was the only one to have experienced this problem.

problem is : on adding a line to the datagrid. The inserted line is IGNORED
by tabulation. And it cannot be hilited (visaully the hiliting just bounces
on it until next line! 

In detail : I selectHilite the line before (Line), but add a line from the
next one since it is inserted before (Line+1), the new line gets in position
Line+1 with an index (total lines+1), the former line+1 becomes line+2.
- When I tab from line LINE the tab jumps to line+2.
- I f I keep on tabbing, it goes past the latest line.. and back to the new
line+1
So temporalrily, the normal tabulation follows line numbering is out and the
tabulation follows index.. 

Solution is : I noticed, that, this behavior would stop and the normal line
to line tabulations work again as soon as the list is reconstructed on the
screen... 
So adding a line, then adding a character at the end of line LINE, then
deleting it, and then tab does the trick so far.. tab goes to the new line+1
and tab navigation is restored.


but I suspect it not the most efficient way to walk around.. this bug could
have other consequences.
-- Trevor do you have a clue on what's going on there?
-- have other people moniteroed this? (have looked into forums but saw
nothing of the sort.. )

thanks all
Robert






-- 
View this message in context: 
http://www.nabble.com/-datagrid--bug--TAB-navigation-follows-INDEX-order-instead-of-LINE-order-tp24887075p24887075.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


A Slightly More Complex revLet Question

2009-08-09 Thread Len Morgan
I'm trying to convert one of Tcl/TK programs to work on a web server 
instead of the desktop.  Because of the Sarbanes/Oxley Act, this will 
save them a lot of money.


My question is:

I can convert the screens/tabs/menus fairly easily to a revLet.  In 
fact, this is going rather smoothly.  The problem is that the data to 
fill the fields comes from a SQL server.  I assume that I'm going to 
need some sort of .cgi/.irev program to send a query to and get the 
results back from.  Will this require a connect/disconnect every time I 
need to get data?  Can I create a generic cgi/irev program to receive a 
query and return tab delimited records?


Better still, can I connect from my revLet and keep the connection 
open and talk to the server directly from the revLet?


As I said in my subject, this is a much more complex use of the revLet 
than I've seen talked about here.


Any help and/or advice would be appreciated.

Len Morgan
KTTK, Inc.
___
use-revolution mailing list
use-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 Slightly More Complex revLet Question

2009-08-09 Thread Mark Schonewille

Hi Len,

Yes, if the server allows it, you can do all you describe. It is  
indeed recommendable to use a cgi or irev to connect to MySql. I use  
PHP for this. Many hosts, including yours sincerely, don't allow a  
direct a connection to a database from a MySQL client.


Why would you put effort into keeping a connection alive? I don't  
think that keeping a connection alive will increase transaction speed  
significantly, unless you can connect to a database directly, without  
cgi/irev/php.


You can write a cgi or php script, for instance, which interprets a  
query from your client and executes it. I would consider this rather  
insecure, because a hacker who finds out how to send queries gets full  
control over your database.


You can get a url or use the post command to connect to a server and  
send your query from your revlet the same way you can from a desktop  
standalone.


Why is this complex?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software products to http://www.quickestpublisher.com and  
get found!


On 9 aug 2009, at 18:43, Len Morgan wrote:

I'm trying to convert one of Tcl/TK programs to work on a web server  
instead of the desktop.  Because of the Sarbanes/Oxley Act, this  
will save them a lot of money.


My question is:

I can convert the screens/tabs/menus fairly easily to a revLet.  In  
fact, this is going rather smoothly.  The problem is that the data  
to fill the fields comes from a SQL server.  I assume that I'm going  
to need some sort of .cgi/.irev program to send a query to and get  
the results back from.  Will this require a connect/disconnect every  
time I need to get data?  Can I create a generic cgi/irev program to  
receive a query and return tab delimited records?


Better still, can I connect from my revLet and keep the connection  
open and talk to the server directly from the revLet?


As I said in my subject, this is a much more complex use of the  
revLet than I've seen talked about here.


Any help and/or advice would be appreciated.

Len Morgan
KTTK, Inc.



___
use-revolution mailing list
use-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 Slightly More Complex revLet Question

2009-08-09 Thread Len Morgan
The particular customer would have the web server farm and SQL Server 
(Microsoft's) in the same server room so security shouldn't be an issue 
unless the revlet can somehow be broken into on the client end.  Most of 
the end users have trouble spelling G.E.D. so this is a minimal risk but 
it is there.  Perhaps I AM making it more complicated (in my head) than 
it really is.  I'll have to use ODBC because we don't have either other 
DB Driver that can speak to a SQL Server.


My immediate issue is they would like to see some sort of demonstration 
of what's possible (after all, the app I'm trying to replace was written 
over a 10 year period!)  not the finished product.  Therefore, I'd like 
to upload the sample program to my on-Rev account and have them access 
the data on my desktop computer at home (which has a SQL Server and some 
old data on it).  I don't offhand know what port SQL Server uses but I 
have no problems with them accessing the data directly for a limited 
time and I don't think they will have a problem with this revLet 
accessing THEIR SQL Server if they decide to green-light the project.


I'll do some playing around with it.

Len Morgan
KTTK, Inc.

Mark Schonewille wrote:

Hi Len,

Yes, if the server allows it, you can do all you describe. It is 
indeed recommendable to use a cgi or irev to connect to MySql. I use 
PHP for this. Many hosts, including yours sincerely, don't allow a 
direct a connection to a database from a MySQL client.


Why would you put effort into keeping a connection alive? I don't 
think that keeping a connection alive will increase transaction speed 
significantly, unless you can connect to a database directly, without 
cgi/irev/php.


You can write a cgi or php script, for instance, which interprets a 
query from your client and executes it. I would consider this rather 
insecure, because a hacker who finds out how to send queries gets full 
control over your database.


You can get a url or use the post command to connect to a server and 
send your query from your revlet the same way you can from a desktop 
standalone.


Why is this complex?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software products to http://www.quickestpublisher.com and 
get found!


On 9 aug 2009, at 18:43, Len Morgan wrote:

I'm trying to convert one of Tcl/TK programs to work on a web server 
instead of the desktop.  Because of the Sarbanes/Oxley Act, this will 
save them a lot of money.


My question is:

I can convert the screens/tabs/menus fairly easily to a revLet.  In 
fact, this is going rather smoothly.  The problem is that the data to 
fill the fields comes from a SQL server.  I assume that I'm going to 
need some sort of .cgi/.irev program to send a query to and get the 
results back from.  Will this require a connect/disconnect every time 
I need to get data?  Can I create a generic cgi/irev program to 
receive a query and return tab delimited records?


Better still, can I connect from my revLet and keep the connection 
open and talk to the server directly from the revLet?


As I said in my subject, this is a much more complex use of the 
revLet than I've seen talked about here.


Any help and/or advice would be appreciated.

Len Morgan
KTTK, Inc.



___
use-revolution mailing list
use-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: How do you solve this dilemma?

2009-08-09 Thread J. Landman Gay

capellan wrote:


Ideally, these educational materials and user mail
list and user forums should be hosted in runrev site,
in many languages (translated by volunteers)
so they will be always available from a central place.


The scripting conference stacks would be a natural source of materials 
if someone wants to translate them. These stacks teach the basics of 
Revolution and assume no prior knowledge. I'd be happy to host them on 
my web site alongside the English versions. You can download them here:


http://www.hyperactivesw.com/revscriptconf/scriptingconferences.html

The stacks are mirrored at my site with the permission of Runtime, since 
there are no direct links any more on the RR site. Please feel free to 
download, translate, and send back the materials to me off list, and I 
will put them up for you. I'm fairly sure that RR would also post them 
to the RR site, but there may not be any direct link there.


--
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: A Slightly More Complex revLet Question

2009-08-09 Thread Mark Wieder
Len-

Sunday, August 9, 2009, 11:01:18 AM, you wrote:

 old data on it).  I don't offhand know what port SQL Server uses but I
 have no problems with them accessing the data directly for a limited

I believe this is configurable at the server end (and if their IT
folks are on the ball they will have changed it) but by default SQL
Server uses ports 1433 (TCP) and 1434 (UDP). HTH.

-- 
-Mark Wieder
 mwie...@ahsoftware.net

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


Franklin 3D for Revolution Update

2009-08-09 Thread Lynn Fredricks
Hello all,

A quick update on Franklin 3D - the 3D game and rendering engine for
Revolution.

We are going to be able to expose Franklin 3D for Revolution very soon to
founders - I want one more example stack update. We have demo stack just
about ready - some tasty bits:

- Rendering includes OpenGL, two software renderers and Direct X 9
(Windows only)
- Loading a Quake Map
- Unnative UI (there is a UI engine built right into it)
- 2D sprite engine
- Collision detection/gravity
- Custom Scene Nodes
- Movement
- Terrain Rendering
- Rendering to Texture
- Split Screens (more to come on this - shows multi camera views - maybe
multiplayer games...)

Some of the effects aren't quite right yet, that's why the delay.

That's the first batch of examples. There's one in the works that show how
to handle call backs - several more coming.

The demo stack will let you locate the media folder, select windows size,
select renderer.

Here's my top five Why This is Cool:

- hardware accelerated graphics - both 3D AND 2D
- lots of model formats supported, game and not game (like OBJ)
- OpenGL gives you a great cross-platform option when the Mac OS X version
is available
- A lot of stuff like collision detection/gravity is REALLY easy
- Useful for simulations, 3D viewers for graphics catalogs and more

Founders will be able to pre-order, get codes right away and get into a
private Google Group. Licenses will include 12 months of updates. The
licensing system will be very similar to how Valentina works.

Ill post other details soon.

Best regards,

Lynn Fredricks
President
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 

___
use-revolution mailing list
use-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 Slightly More Complex revLet Question

2009-08-09 Thread Brian Yennie

Len,

FWIW, I would recommend going the PHP route (or any server side  
language). That way you will never have to worry about a firewall, and  
won't have to maintain any sort of database connectivity from inside a  
browser. Do revLets support ODBC?


You can just say something like:

put url http://myserver.com/db.php?query=clientdataparam1=george;  
into georgeData


On the server:

mysql-connect(..)

$query = $_GET[query]

switch ($query) {
case clientdata
$sql = SELECT * FROM clients WHERE username = 
'.$_GET['param1'].';
break;
...
}

$data = mysql-query(..);

...


Maintenance becomes very easy. One line on the client to make a query,  
just write the PHP script once and add queries as you need them.



The particular customer would have the web server farm and SQL  
Server (Microsoft's) in the same server room so security shouldn't  
be an issue unless the revlet can somehow be broken into on the  
client end.  Most of the end users have trouble spelling G.E.D. so  
this is a minimal risk but it is there.  Perhaps I AM making it more  
complicated (in my head) than it really is.  I'll have to use ODBC  
because we don't have either other DB Driver that can speak to a SQL  
Server.


My immediate issue is they would like to see some sort of  
demonstration of what's possible (after all, the app I'm trying to  
replace was written over a 10 year period!)  not the finished  
product.  Therefore, I'd like to upload the sample program to my on- 
Rev account and have them access the data on my desktop computer at  
home (which has a SQL Server and some old data on it).  I don't  
offhand know what port SQL Server uses but I have no problems with  
them accessing the data directly for a limited time and I don't  
think they will have a problem with this revLet accessing THEIR SQL  
Server if they decide to green-light the project.


I'll do some playing around with it.

Len Morgan
KTTK, Inc.

Mark Schonewille wrote:

Hi Len,

Yes, if the server allows it, you can do all you describe. It is  
indeed recommendable to use a cgi or irev to connect to MySql. I  
use PHP for this. Many hosts, including yours sincerely, don't  
allow a direct a connection to a database from a MySQL client.


Why would you put effort into keeping a connection alive? I don't  
think that keeping a connection alive will increase transaction  
speed significantly, unless you can connect to a database directly,  
without cgi/irev/php.


You can write a cgi or php script, for instance, which interprets a  
query from your client and executes it. I would consider this  
rather insecure, because a hacker who finds out how to send queries  
gets full control over your database.


You can get a url or use the post command to connect to a server  
and send your query from your revlet the same way you can from a  
desktop standalone.


Why is this complex?

--
Best regards,

Mark Schonewille

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


post command

2009-08-09 Thread Yves COPPE

Hello,


I have a big problem
  put fld myFld into Myvar
  post Myvar to http://www.mondomaine.be/dossierscripts/test.php;


the php script doesn't takeUp the variable MyVar

If I send a text from a form in a web page onto the test.php script,  
the text is taken by the php script



what is wrong ?

Thanks.

Greetings.

Yves COPPE
yvesco...@skynet.be

___
use-revolution mailing list
use-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: post command

2009-08-09 Thread Mark Schonewille

Yves,

What is the contents of your field?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software products to http://www.quickestpublisher.com and  
get found!


On 9 aug 2009, at 22:45, Yves COPPE wrote:


Hello,


I have a big problem
 put fld myFld into Myvar
 post Myvar to http://www.mondomaine.be/dossierscripts/test.php;


the php script doesn't takeUp the variable MyVar

If I send a text from a form in a web page onto the test.php script,  
the text is taken by the php script



what is wrong ?

Thanks.

Greetings.

Yves COPPE
yvesco...@skynet.be


___
use-revolution mailing list
use-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: post command

2009-08-09 Thread Yves COPPE


Le 09-août-09 à 22:49, Mark Schonewille a écrit :


Yves,

What is the contents of your field?





re,

text fld

text tab text tab text
text tab text tab text
text tab text tab text

about 10 lines


Greetings.

Yves COPPE
yvesco...@skynet.be

___
use-revolution mailing list
use-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: post command

2009-08-09 Thread Mark Schonewille

Yves,

First of all, you need to define a variable. Without variables, php  
isn't even aware that you tried to send something. Second, you need to  
urlEncode your data. For example:


put myVar=  urlEncode(fld myFld) into myString
post myString to url http://www.mondomaine.be/dossierscripts/test.php;

If you have multiples variables, myString should be of the following  
format:


myVar1=  myData1  myVar2=  myData2

where myDataX is urlEncoded.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software products to http://www.quickestpublisher.com and  
get found!


On 9 aug 2009, at 22:56, Yves COPPE wrote:


re,

text fld

text tab text tab text
text tab text tab text
text tab text tab text

about 10 lines


Greetings.

Yves COPPE
yvesco...@skynet.be


___
use-revolution mailing list
use-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: post command

2009-08-09 Thread Yves COPPE


Le 09-août-09 à 23:12, Mark Schonewille a écrit :


Yves,

First of all, you need to define a variable. Without variables, php  
isn't even aware that you tried to send something. Second, you need  
to urlEncode your data. For example:


put myVar=  urlEncode(fld myFld) into myString
post myString to url http://www.mondomaine.be/dossierscripts/ 
test.php


If you have multiples variables, myString should be of the following  
format:


myVar1=  myData1  myVar2=  myData2

where myDataX is urlEncoded.






re Mark,

yesss ! it works !!

thank you very much

Bonjour from Belgium !

Greetings.

Yves COPPE
yvesco...@skynet.be

___
use-revolution mailing list
use-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: post command

2009-08-09 Thread Jim Ault
Please remember that a 'variable' in Rev is not the same as a  
'variable' in a POST command sent to a PHP script.


The PHP script parses the *single string* that is passed into the  
following:

pairs of names and values...
the name of the variable PHP will use, the string value of the variable

Send this from Rev flower=roseplant=treeshrub=Arbor%20Vitae
( the %20 represents a valid space character to PHP)
--
put flower=roseplant=treeshrub=Arbor%20Vitae into stringToSend
post  to http://thisdomain.com/landscaping/inventory.php;

PHP *parses* this incoming string to (case sensitive)
$flower  with a value of rose
$plant  with a value of tree
$shrub  with a value of Arbor Vitae

but not   $Shrub  or  $sHrub  or  $shruB

Trying to refer to $Shrub if it is not defined will produce and error  
and stop the PHP script execution.

PHP will render the error message as part of your visible web page.


To pass an array, you need to (in Rev) convert the array to a single  
string with delimiters, pass this to PHP, and then run script lines in  
PHP to convert the string into an array (usually using a series of the  
'explode' function)


If a stack has a card for each {guitar, drum}
and a field listing {Flaminco, 400 and Stratocaster,3000}{snare,150   
base,350  tympani,2900}

An example string sent to PHP
build the string and then choose a name for the PHP script to use as  
the variable


*note, you must pass the legal variable name for PHP, and it needs to  
match the name that the PHP script will use to work with the variable.


musicArr=guitar~Flaminco,400^Stratocaster,3000|drum~snare,150^base, 
350^tympani,2900


//PHP allows multi dimensional arrays, so we need to build it from the  
string

$instruments = explode('|', $musicArr);
then you explode each instrument and add it to the $instruments array
then you explode each listed kind (Flaminco) and add it to the  
$instruments array
   and set the value at the same time  =  with the price (eg $2900  
for the tympani)


The result is one PHP variable that is a multidimensional array such  
that

$price = $instruments['guitar']['Stratocaster']   // 3000
$price = $instruments['drum']['tympani']   // 2900

Fun and games and a little bit of stress.

Jim Ault
Las Vegas

On Aug 9, 2009, at 2:12 PM, Mark Schonewille wrote:


Yves,

First of all, you need to define a variable. Without variables, php  
isn't even aware that you tried to send something. Second, you need  
to urlEncode your data. For example:


put myVar=  urlEncode(fld myFld) into myString
post myString to url http://www.mondomaine.be/dossierscripts/ 
test.php


If you have multiples variables, myString should be of the following  
format:


myVar1=  myData1  myVar2=  myData2

where myDataX is urlEncoded.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software products to http://www.quickestpublisher.com  
and get found!


On 9 aug 2009, at 22:56, Yves COPPE wrote:


re,

text fld

text tab text tab text
text tab text tab text
text tab text tab text

about 10 lines


Greetings.

Yves COPPE
yvesco...@skynet.be


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

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


Jim Ault
jimaultw...@yahoo.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 do you solve this dilemma?

2009-08-09 Thread capellan

Judy Perry wrote:

 What sorts of things would your colleagues like to be able to do with Rev?

Actually, it will be better to show them by example:
What you could do with Rev in your classes.
(Now, i remember Mark Greenberg stacks)

Already, i have show them templates for Multiple choice exams,
Reading Tests and the kind of tests used in Moodle.

Some have asked about SCORM compliance
http://www.loaz.com/learning-objects/learning-object-standards-scorm.html
and the avalability of training from the source like Adobe and Microsoft
offer.
(this seems really important and looks related to new requisites of training
and actualization for teachers)

Jacque,
About the conferences, i will look for them for translating, as soon
my workload return to normal. Many thanks for your help!

al


-- 
View this message in context: 
http://www.nabble.com/How-do-you-solve-this-dilemma--tp24878034p24892045.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


formattedText and Unicode

2009-08-09 Thread Richard Gaskin
I've been avoiding using Unicode because of all the difficulties noted 
here with Rev, and I just haven't needed it.  But now I have a bunch of 
files in which I don't know whether they're UTF-8 or UTF-16, and I don't 
know which language's character set they use.


First, I need to just display these in a field. That would seem simple 
enough, but I haven't figured out a reliable way to do this without 
knowing some external information about the files.  Use the wrong 
character set and they look like junk.


Then I need to get the formattedText of the field so I can measure 
distances to line breaks.  So far it seems that the formattedText 
property is limited to ASCII only -- is that correct?


Am I just missing something obvious here?

I'll continue with my experiments, but if you have any pointers they 
would be much appreciated.


TIA -

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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: post command (typo correction)

2009-08-09 Thread Jim Ault
Please remember that a 'variable' in Rev is not the same as a  
'variable' in a POST command sent to a PHP script.


The PHP script parses the *single string* that is passed into the  
following:

pairs of names and values...
the name of the variable PHP will use, the string value of the variable

Send this from Rev flower=roseplant=treeshrub=Arbor%20Vitae
( the %20 represents a valid space character to PHP)
--
put flower=roseplant=treeshrub=Arbor%20Vitae into stringToSend
post stringToSend to http://thisdomain.com/landscaping/inventory.php;

PHP *parses* this incoming string to (case sensitive)
$flower  with a value of rose
$plant  with a value of tree
$shrub  with a value of Arbor Vitae

but not   $Shrub  or  $sHrub  or  $shruB

Trying to refer to $Shrub if it is not defined will produce and error  
and stop the PHP script execution.

PHP will render the error message as part of your visible web page.


To pass an array, you need to (in Rev) convert the array to a single  
string with delimiters, pass this to PHP, and then run script lines in  
PHP to convert the string into an array (usually using a series of the  
'explode' function)


If a stack has a card for each {guitar, drum}
and a field listing {Flaminco, 400 and Stratocaster,3000}{snare,150   
base,350  tympani,2900}

An example string sent to PHP
build the string and then choose a name for the PHP script to use as  
the variable


*note, you must pass the legal variable name for PHP, and it needs to  
match the name that the PHP script will use to work with the variable.


musicArr=guitar~Flaminco,400^Stratocaster,3000|drum~snare,150^base, 
350^tympani,2900


//PHP allows multi dimensional arrays, so we need to build it from the  
string

$instruments = explode('|', $musicArr);
then you explode each instrument and add it to the $instruments array
then you explode each listed kind (Flaminco) and add it to the  
$instruments array
  and set the value at the same time  =  with the price (eg $2900  
for the tympani)


The result is one PHP variable that is a multidimensional array such  
that

$price = $instruments['guitar']['Stratocaster']   // 3000
$price = $instruments['drum']['tympani']   // 2900

Fun and games and a little bit of stress.

Jim Ault
Las Vegas

On Aug 9, 2009, at 2:12 PM, Mark Schonewille wrote:


Yves,

First of all, you need to define a variable. Without variables, php  
isn't even aware that you tried to send something. Second, you need  
to urlEncode your data. For example:


put myVar=  urlEncode(fld myFld) into myString
post myString to url http://www.mondomaine.be/dossierscripts/ 
test.php


If you have multiples variables, myString should be of the following  
format:


myVar1=  myData1  myVar2=  myData2

where myDataX is urlEncoded.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software products to http://www.quickestpublisher.com  
and get found!


On 9 aug 2009, at 22:56, Yves COPPE wrote:


re,

text fld

text tab text tab text
text tab text tab text
text tab text tab text

about 10 lines


Greetings.

Yves COPPE
yvesco...@skynet.be


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

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


Jim Ault
jimaultw...@yahoo.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


Option Menu Coloring

2009-08-09 Thread Len Morgan
What (if any) is the property to change the background color of the 
button with the arrow on an option menu.  I set the backgroundcolor but 
that sets not only the background color of the text but also the 
background of the arrow button.


len morgan
___
use-revolution mailing list
use-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: formattedText and Unicode

2009-08-09 Thread Phil Davis

Hi Richard,

Richard Gaskin wrote:
I've been avoiding using Unicode because of all the difficulties noted 
here with Rev, and I just haven't needed it.  But now I have a bunch 
of files in which I don't know whether they're UTF-8 or UTF-16, and I 
don't know which language's character set they use.


First, I need to just display these in a field. That would seem simple 
enough, but I haven't figured out a reliable way to do this without 
knowing some external information about the files.  Use the wrong 
character set and they look like junk.


Don't know if this will help, but Klaus posted a response to Ken Ray in 
Re: Detecting UTF-8 Encoded Files on 7 Aug. It contains helpful hints 
about detecting what Unicode file format you're dealing with - I don't 
know if the tips work universally, but maybe that's a starting place.




Then I need to get the formattedText of the field so I can measure 
distances to line breaks.  So far it seems that the formattedText 
property is limited to ASCII only -- is that correct?


Am I just missing something obvious here?

I'll continue with my experiments, but if you have any pointers they 
would be much appreciated.


TIA -

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


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

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


Re: formattedText and Unicode

2009-08-09 Thread Richard Gaskin

Phil Davis wrote:
Don't know if this will help, but Klaus posted a response to Ken Ray in 
Re: Detecting UTF-8 Encoded Files on 7 Aug. It contains helpful hints 
about detecting what Unicode file format you're dealing with - I don't 
know if the tips work universally, but maybe that's a starting place.


That was just what I needed.  Well, mostly anyway.  Thanks to Mark 
Waddingham, Klaus, and Mark Smith for his swapBytes function, now I have 
some progress here.


The code posted below is as far as I've gotten.  It displays every test 
file on my drive almost perfectly, including UTF8 and UTF16 in both big- 
and little-endian.


Two challenges remain:

While the glyphs appear to be good, the line spacing is way off. 
Looking at the same files in TextEdit shows a lot of blank lines, but in 
the Rev field they're all bunched up together.


And second, I've found no way to get the formattedText in any form that 
looks usable. :(


Any tips on those would be much appreciated.  Thanks again for the code 
examples that got me this far.


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

--

on mouseUp
  answer file Selecf a file:
  if it is empty then exit to top
  put url (binfile:it) into tData
  set the unicodeText of fld 1 to RawDataToUTF16(tData)
end mouseUp


function RawDataToUTF16 pData
  -- Examine the data to determine encoding:
  switch
  case charToNum(byte 1 of pData) = 0
put UTF16BE into tTextEncoding
break
  case charToNum(byte 1 of pData) = 0xFE and charToNum(char 2 of pData) 
= 0xFF

delete byte 1 to 2 of pData
put UTF16BE into tTextEncoding
break
  case charToNum(byte 1 of pData) = 0xFF and charToNum(char 2 of pData) 
= 0xFE

delete byte 1 to 2 of pData
put UTF16LE into tTextEncoding
break
  default
put UTF8 into tTextEncoding
break
  end switch
  --
  if tTextEncoding begins with UTF16 then
-- Check byte order, swapping if needed:
if the processor is x86 then
  put LE into tHostByteOrder
else
  put BE into tHostByteOrder
end if
if byte -2 to -1 of tTextEncoding  tHostByteOrder then
  put swapbytes(pData) into pData
end if
-- Already utf16, so nothing more needs to be done:
put pData into tFieldData
  else
-- Convert from utf8 to Rev's native utf16:
put uniEncode(pData, UTF8) into tFieldData
  end if
  --
  return tFieldData
end RawDataToUTF16


function swapBytes pString
  repeat with n = 1 to length(pString) - 1 step 2
put byte n+1 of pString  byte n of pString after swappedString
  end repeat
  return swappedString
end swapBytes
___
use-revolution mailing list
use-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: Enterprises that don't allow foreign exe's

2009-08-09 Thread Edward D Lavieri Jr

Phil,

My 25-years of govt experience tells me that the answer depends upon  
which agency/department you are referring to. Take DoD for example,  
they use service-wide encrypted Intranets. They have a list of COTS  
that are authorized for installation. If your product or related plug- 
in is not on the list, it takes time and hoops to to get it there.


Ed

ID Leaders
http://idleaders.com

On Aug 4, 2009, at 1:24 AM, Phil Davis wrote:


Thanks Jim. Good idea.


Jim Sims wrote:


On Aug 4, 2009, at 8:11 AM, Phil Davis wrote:


TIA for any responses.



Maybe consulting directly with Kevin might be valuable for you.

The Rev web site does (at least did) list a US Gov't agency or two  
that uses Rev, perhaps some insight might be gained by talking to  
the people involved with them.


sims


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

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

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


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


Re: formattedText and Unicode

2009-08-09 Thread Terry Judd
On 10/08/09 12:06 PM, Richard Gaskin ambassa...@fourthworld.com wrote:

 Two challenges remain:
 
 While the glyphs appear to be good, the line spacing is way off.
 Looking at the same files in TextEdit shows a lot of blank lines, but in
 the Rev field they're all bunched up together.
 
 And second, I've found no way to get the formattedText in any form that
 looks usable. :(
 
Richard - do you have any 'sample' files that you'd be willing to share to
others prepared to do a bit of further testing/investigation?

Terry...

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


Re: formattedText and Unicode

2009-08-09 Thread Richard Gaskin

Terry Judd wrote:


On 10/08/09 12:06 PM, Richard Gaskin ambassador at fourthworld.com wrote:


Two challenges remain:

While the glyphs appear to be good, the line spacing is way off.
Looking at the same files in TextEdit shows a lot of blank lines, but in
the Rev field they're all bunched up together.

And second, I've found no way to get the formattedText in any form that
looks usable. :(


Richard - do you have any 'sample' files that you'd be willing to share to
others prepared to do a bit of further testing/investigation?


Thanks for asking, Terry.  Oddly enough, I can find the most obscure 
stuff on the web but looking for collections of Unicode sample files has 
been difficult.


Most of the texts I have are from a client, so I'm not at liberty to 
distribute them.


But I found a good trick for generating all sorts of files: if you're a 
Mac user TextEdit lets you save files in a great many different encodings.


I opened up some plain text files here, and saved 'em out various ways 
in TextEdit.  Doesn't help with the multi-lingual stuff, but at least 
lets you pin down handing different encoding methods -- and in a 
language I can read. :)


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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


Edu Ware Revlets

2009-08-09 Thread Sivakatirswami

Does anyone have any eduware (even rough cuts) running as revlets?

Can you post some URL's?

I need to show some people how it works...
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Enterprises that don't allow foreign exe's

2009-08-09 Thread Phil Davis

Thanks so much Ed.
Phil


Edward D Lavieri Jr wrote:

Phil,

My 25-years of govt experience tells me that the answer depends upon 
which agency/department you are referring to. Take DoD for example, 
they use service-wide encrypted Intranets. They have a list of COTS 
that are authorized for installation. If your product or related 
plug-in is not on the list, it takes time and hoops to to get it there.


Ed

ID Leaders
http://idleaders.com

On Aug 4, 2009, at 1:24 AM, Phil Davis wrote:


Thanks Jim. Good idea.


Jim Sims wrote:


On Aug 4, 2009, at 8:11 AM, Phil Davis wrote:


TIA for any responses.



Maybe consulting directly with Kevin might be valuable for you.

The Rev web site does (at least did) list a US Gov't agency or two 
that uses Rev, perhaps some insight might be gained by talking to 
the people involved with them.


sims


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

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


Array Question

2009-08-09 Thread Len Morgan
Can you use a variable name as the index of an array?  It doesn't appear 
so or I'm doing something wrong.  Here's what I'm trying:


put 1 into tasks[Search]
put 2 into tasks[Reports]

then in a menuPick handler:

on menuPick pChoice
   goto cd tasks[pChoice]
end menuPick

I need to do this because I have more cards than I have menu choices and 
they are intermixed with the real ones and I don't want the user to go 
directly to these hidden cards.


Am I going to have to resort to a do command?  I tried that quickly 
but it just gave me an error.


len morgan
___
use-revolution mailing list
use-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: Array Question

2009-08-09 Thread Phil Davis

Len Morgan wrote:
Can you use a variable name as the index of an array?  It doesn't 
appear so or I'm doing something wrong.  Here's what I'm trying:


put 1 into tasks[Search]
put 2 into tasks[Reports]

then in a menuPick handler:

on menuPick pChoice
   goto cd tasks[pChoice]
end menuPick


Hi Len,
If your actual script contains goto and not go to, that could be 
your problem.


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

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


Re: formattedText and Unicode

2009-08-09 Thread Terry Judd
On 10/08/09 12:28 PM, Richard Gaskin ambassa...@fourthworld.com wrote:

 I opened up some plain text files here, and saved 'em out various ways
 in TextEdit.  Doesn't help with the multi-lingual stuff, but at least
 lets you pin down handing different encoding methods -- and in a
 language I can read. :)

OK I'll give that a whirl.

Terry...

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


Re: formattedText and Unicode

2009-08-09 Thread Terry Judd
On 10/08/09 12:06 PM, Richard Gaskin ambassa...@fourthworld.com wrote:

 Two challenges remain:
 
 While the glyphs appear to be good, the line spacing is way off.
 Looking at the same files in TextEdit shows a lot of blank lines, but in
 the Rev field they're all bunched up together.
 
 And second, I've found no way to get the formattedText in any form that
 looks usable. :(
 
 Any tips on those would be much appreciated.  Thanks again for the code
 examples that got me this far.

Richard - any special instructions on what range/variety of characters the
text should contain? because I had not trouble with either line spacing or
displaying/exporting the formatted text with a chunk of text I tested
imported as UTF-8, UTF-16LE and UTF-16BE.

Terry...

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


Re: Array Question

2009-08-09 Thread J. Landman Gay

Len Morgan wrote:
Can you use a variable name as the index of an array?  It doesn't appear 
so or I'm doing something wrong.  Here's what I'm trying:


put 1 into tasks[Search]
put 2 into tasks[Reports]

then in a menuPick handler:

on menuPick pChoice
   goto cd tasks[pChoice]
end menuPick

I need to do this because I have more cards than I have menu choices and 
they are intermixed with the real ones and I don't want the user to go 
directly to these hidden cards.


Variables will work. Besides the goto issue, where are you filling the 
array? If it's in the same script as the menupick handler then it needs 
to be declared as a script local variable at the top of the script:


  local tasks -- allows all handlers in this script to access it

  on fillArray
put 1 into tasks[Search]
put 2 into tasks[Reports]
  end fillArray

  on menuPick pChoice
if the keys of tasks =  then fillArray
go to cd tasks[pChoice]
  end menuPick

Otherwise it won't be shared among the script handlers. If you are 
filling the tasks array in a different script, then you either need to 
make it a global variable or store it in a custom property (or property 
set) which you load into the tasks variable when you need it. In other 
words, there must be some way for all handlers to get access to the 
tasks variable. When it is only referenced within a handler, the 
variable will be set to empty when the handler begins and deleted when 
the handler ends.


If your stack design allows it, it's often easier to just name cards the 
same as the menu items. Since card names aren't visible to the user, you 
can call them anything, and then all you need to do is:


on menuPick pChoice
  go cd pChoice
end menuPick

It's a good idea to set the navigationArrows property to false if you 
don't want users paging through cards via the keyboard.


--
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: formattedText and Unicode

2009-08-09 Thread Richard Gaskin
In Mark Wieder's example I had mistakenly thought that he was converting 
Unicode line endings only for his PC-specific storage needs.  Turns out 
that this is needed to display as well (though I'm still not sure why it 
should be necessary).


So here's the latest function for putting binary data from a file into a 
form suitable for tucking into the unicodeText of a field:



function RawDataToUTF16 pData
  -- Examine the data to determine encoding:
  switch
  case charToNum(byte 1 of pData) = 0
put UTF16BE into tTextEncoding
break
  case charToNum(byte 1 of pData) = 0xFE and charToNum(char 2 of pData) 
= 0xFF

delete byte 1 to 2 of pData
put UTF16BE into tTextEncoding
break
  case charToNum(byte 1 of pData) = 0xFF and charToNum(char 2 of pData) 
= 0xFE

delete byte 1 to 2 of pData
put UTF16LE into tTextEncoding
break
  default
put UTF8 into tTextEncoding
break
  end switch
  --
  if tTextEncoding begins with UTF16 then
-- Check byte order, swapping if needed:
if the processor is x86 then
  put LE into tHostByteOrder
else
  put BE into tHostByteOrder
end if
if byte -2 to -1 of tTextEncoding  tHostByteOrder then
  put swapbytes(pData) into pData
end if
-- Already utf16, so nothing more needs to be done:
#put uniEncode(uniDecode(pData, utf16),16) into tFieldData
  put pData into tFieldData
  else
-- Convert from utf8 to Rev's native utf16:
put uniEncode(pData, UTF8) into tFieldData
  end if
  --
 replace CRLF with cr in tFieldData
   replace numtochar(13) with cr in tfieldData
  return tFieldData
end RawDataToUTF16


I still don't have a solution for using formattedText with Unicode, but 
may be able to find an algorithm for what I'm doing which bypasses that.


Many thanks are due to Devin Asay.  His summary notes here are a helpful 
introduction to working with Unicode in Rev:

http://revolution.byu.edu/unicode/unicodeInRev.php


PS: While having this solution is cool, and seems to reliably handle a 
wider range of files than even TextEdit does in its automatic mode, I 
find myself thinking there should be an easier way to do something as 
simple as putting text into a field.  Maybe Rev 5.0? :)


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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: formattedText and Unicode

2009-08-09 Thread Richard Gaskin

Terry Judd wrote:

Richard - any special instructions on what range/variety of characters the
text should contain? because I had not trouble with either line spacing or
displaying/exporting the formatted text with a chunk of text I tested
imported as UTF-8, UTF-16LE and UTF-16BE.


Thanks for looking into this, Terry.  Not sure why I was having line 
endings not showing, but the latest version of the function which now 
replaces platform-specific line endings with Rev-native (Unix, CR) 
line endings works a treat.


Anyone with more experience have any idea why line endings would be only 
sometimes problematic with Unicode?


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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