Re: RunRev 4 on Mac OS 10.3

2010-01-01 Thread Richmond Mathewson
Well, here I am in Merry England - or, to put it another way, Smug
England; the
country that is creeping towards a police state, and where everybody is
convinced
the place is better than anywhere else. Nice to see Mum and Dad, but will be
jolly
glad to go back to Bulgaria; at least the Bulgarians, despite all the really
obvious
problems with their country don't have CCTV cameras on every corner,
draconian
regulations about everything, and think they are the bee's knees.

Somebody eve said well, at least we still have a free press. Har, har,
har.

So, to RunRev:

I am typing this on an original, tray-loading iMac:

 Machine Model:iMac
  CPU Type:PowerPC 750  (2.2)
  Number Of CPUs:1
  CPU Speed:233 MHz
  L2 Cache (per CPU):512 KB
  Memory:160 MB
  Bus Speed:67 MHz
  Boot ROM Version:1.3.f2

running Mac OS X 10.3.9

glacially slow (as I will be taking possession of this machine in the summer
I will run the Crucial scanner on it and pop it up to its max of 512 RAM
then),
but it runs RunRev Studio 4 without any hitches at all. The only real snags
being the
lack of a firewire port (backups run very slowly onto an external HD via
USB) and
the max screen res of 1024 x 768.

Auto-detected Dad's Ethernet-Broadband modem!

very nice, compact little machine.

On Sun, Dec 20, 2009 at 8:44 AM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 What problems are you having, Richmond? Here, the 3.5 updater crashes on
 10.3 :-(

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer

 Full PayPal integration and automation in web site or
 (Revolution/SuperCard/other) software. Contact me for a quote before 1 Jan
 2010 and we'll charge (reduced) 2009 prices.
 http://economy-x-talk.com/contact.html

 Op 20 dec 2009, om 09:33 heeft Richmond Mathewson het volgende geschreven:


  Has anybody got RunRev 4 running on Mac OS 10.3 (Panther)?

 sincerely, Richmond Mathewson.



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




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


Re: Imagesource of char not working as expected in Windows

2010-01-01 Thread David Glasgow
Firstly, Happy New Year.

It has started well for me because with the help of the list I have solved the 
above.  Last problem of 2009, and first solution of 2010!

I tried pretty much all the suggestions.  (I skipped the suggestion of saving 
to the standalone folder, because the Windows virtualisation dragon would eat 
the data.)

I relabelled the path to avoid non vanilla characters...

I rescripted to save by changing the defaultfolder.

In fact, I rescripted several times to use different methods.  All worked in OS 
X, and none worked in Windows.

As far as I can make out, the problem is something to do with representing the 
path as a variable.  If the path was in quotes, it worked OK both as a script 
and in the message box.  If defined as a variable, it didn't work.  The 
solution was simply to refer directly to the line in the field containing the 
full path.  So, 

 set the imageSource of last char of fld ResultsT to binfile:  the last 
line of field snapshots

worked, but ..

put the last line of field snapshots into k
set the imageSource of last char of fld ResultsT to binfile:  k

.. didn't.

The only thing I could think of is that on Win a character in the URL which is 
benign on the Mac is interpreted as part of the address, but only when copied 
into a variable, not when read directly from the field.  Anyhoo.  Fixed now.

Now to get going with ScreenSteps, and make a manual.

Thanks again for all the suggestions.

David Glasgow



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


Happy New Year

2010-01-01 Thread David Bovill
Happy New year to all you lovely list people,

  and may the forthcoming decade (should that be the teenies?) be truly
Revolutionary for each and every one of you!

David
___
use-revolution mailing list
use-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: Imagesource of char not working as expected in Windows

2010-01-01 Thread Jim Ault

Of course this should make no difference...
try using parens
set the imageSource of last char of fld ResultsT to (binfile:  k)
answer (binfile:  k)


Of course, Win32 may like \ instead of / in path names so try

replace / with \ in k
set the imageSource of last char of fld ResultsT to binfile:  k
answer (binfile:  k)

On Jan 1, 2010, at 4:00 AM, David Glasgow wrote:


put the last line of field snapshots into k
set the imageSource of last char of fld ResultsT to binfile:  k

.. didn't.


Jim Ault
Las Vegas



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


Easier syntax for quoting text and html?

2010-01-01 Thread David Bovill
2009/12/31 Jim Ault jimaultw...@yahoo.com

   --// html honors both quote types, ignores extra spaces
   --// javascript honors both quote types

   --build the Rev string without ANY ampersands
   --use single, not double quotes


I use single quote - but run into some problems so got lazy and replaced
then at the end with replace ' with quote. Not sure what situations cause
the problems - is it OK to use single quotes in Rev htmlText? Not sure. But
thanks for the tip

NB - I do think that RunRev should add syntax to the language to make html
quoting very easy to use for both iRev scripts We need an elegant solution
to quoting html - other languages are easier to use and read with regard to
html quoting! using our own custom functions does not make read/writeability
that much easier, and makes it harder to share scripts.

My personal choice would be to have an in-script syntax for putting raw text
into a variable. The idea would be that you could type the text inside some
sort of markup, in a way in which you could write anything, and then assign
it to a variable. That way you could just copy html or whatever and paste it
into the script editor - easy and readable.

While you can do this with custom properties - and the IDE could be changed
to make it easier to relate values in custom properties to the scripts by
showing both in the same window - I'd prefer the ability to do this all in a
script. This is also important for iRev server side scripts, where custom
properties are less easy to use.

My suggestion is to extend the syntax for local variables and constants.
Currently we have:

local someHtml = b hello world /


How about something like:

local someHtml = {
 b hello world /
 }



This would then allow doing things like:

local someHtml = {
 It is btraditional/ to say Happy New Year at this time of year,  why
 not?

 You could 'single quote' or double quote etc
 }


Alternatives could be to use quotes as they are (but allow a special
exception for multiple lines):

local someHtml = 
 b hello world /
 


or to use C style quotes:

local someHtml = /*
 b hello world /
 */


If you like this suggestion maybe vote for it / improve it here -
http://quality.runrev.com/qacenter/show_bug.cgi?id=8517

NB - at the same time perhaps as implementing this RunRev could take the
opportunity to enhance local/constant functionality by allowing a script to
assign values to locals (and constants?) as the value of an expression:

local someHtml = the htmltext of fld 1
 local someValue = fetchSomething(new)

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


Strange behaviour of arrowkey handler

2010-01-01 Thread Zarpa Iracunda
Hi all,

happy new year to all of you!

My new year started with some confusion, which I am sure one of you can help me 
with.

I have a data grid group, which should do something when the user changes the 
selected line using an arrow key. I have put the following handler into the 
group script:

on arrowKey tkey
   local tdata
   local mykey
   put tkey into mykey
   answer the key was   mykey with Ok! titled Arrow Key
   if ( ( mykey is down ) or ( mykey is up  ) ) then
  put the dgdata[the dgline of group procdg] of group procdg into tdata
  answer tdata[id] with Ok! titled selected process
   end if
   pass arrowKey
end arrowKey

It does throw the first answer, displaying the correct key value. 
Unfortunately, it does not evaluate the if clause. The second answer is never 
fired.

Can anybody point me into the direction of the mistake I made?

Many thanx!

Zarpa___
use-revolution mailing list
use-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: Easier syntax for quoting text and html?

2010-01-01 Thread Jim Ault
Imagine in my right hand I hold a snowball, and off to my left is an  
actuarial expert with a very powerful calculator that will determine  
the odds of it reaching the target of multi-line and C-style code in  
the xTalk IDE.  I hurl the snowball, the LED display flickers and the  
answer is 7734.
Oh wait, it is the old calculator trick of showing the answer upside  
down.


Could not resist the joke that made the rounds in the late 1960's when  
I was in college.


Anyway, the archives have the discussion of the anomaly of being able  
to set a variable using an equal sign instead of 'put'.
I think this only occurs when declaring a local or constant with a  
value.

To me the origins are uncertain.

Consider that IREV allows the following 3-line script to work by  
reading each line literally...


html
It is btraditional/b to say Happy New Year at this time of year,  
 why

/html


The real power of the web servers is in javascript, jquery, and php...  
so now where do we stop on the slippery slope of editing features that  
appeal to web programmers?


As you can tell, I am fine with Rev editor conventions since I use the  
chunking tools to build the many constructs I need for web server  
programming.


As Trevor did many years ago, someone may build a lib stack that does  
the same thing for HTML as he did for SQL.

Maybe the team is working on this already.

Happy New Year

Jim Ault
Las Vegas

On Jan 1, 2010, at 6:10 AM, David Bovill wrote:


2009/12/31 Jim Ault jimaultw...@yahoo.com


 --// html honors both quote types, ignores extra spaces
 --// javascript honors both quote types

 --build the Rev string without ANY ampersands
 --use single, not double quotes



I use single quote - but run into some problems so got lazy and  
replaced
then at the end with replace ' with quote. Not sure what  
situations cause
the problems - is it OK to use single quotes in Rev htmlText? Not  
sure. But

thanks for the tip

NB - I do think that RunRev should add syntax to the language to  
make html
quoting very easy to use for both iRev scripts We need an elegant  
solution
to quoting html - other languages are easier to use and read with  
regard to
html quoting! using our own custom functions does not make read/ 
writeability

that much easier, and makes it harder to share scripts.

My personal choice would be to have an in-script syntax for putting  
raw text
into a variable. The idea would be that you could type the text  
inside some
sort of markup, in a way in which you could write anything, and then  
assign
it to a variable. That way you could just copy html or whatever and  
paste it

into the script editor - easy and readable.

While you can do this with custom properties - and the IDE could be  
changed
to make it easier to relate values in custom properties to the  
scripts by
showing both in the same window - I'd prefer the ability to do this  
all in a
script. This is also important for iRev server side scripts, where  
custom

properties are less easy to use.

My suggestion is to extend the syntax for local variables and  
constants.

Currently we have:

local someHtml = b hello world /




How about something like:

local someHtml = {

   b hello world /
}




This would then allow doing things like:

local someHtml = {
It is btraditional/ to say Happy New Year at this time of  
year,  why

not?

You could 'single quote' or double quote etc
}



Alternatives could be to use quotes as they are (but allow a special
exception for multiple lines):

local someHtml = 

b hello world /




or to use C style quotes:

local someHtml = /*

b hello world /
*/



If you like this suggestion maybe vote for it / improve it here -
http://quality.runrev.com/qacenter/show_bug.cgi?id=8517

NB - at the same time perhaps as implementing this RunRev could take  
the
opportunity to enhance local/constant functionality by allowing a  
script to
assign values to locals (and constants?) as the value of an  
expression:


local someHtml = the htmltext of fld 1

local someValue = fetchSomething(new)




___
use-revolution mailing list
use-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: Context menu for Header of DataGrid

2010-01-01 Thread Trevor DeVore

On Dec 30, 2009, at 8:24 PM, Mark Stuart wrote:


I followed your lessons with success. But now the mouseDown handler
overrides any normal behavior of the DataGrid.

That is, resizing of columns no longer works. Clicking on a column  
header no

longer sorts a column.

So it seems a else - end if section of script is needed to detect  
left

mouse button, to complete normal behavior actions.

Could you please amend the lesson to correct the missing behaviors?


I forgot to add a call to dgMouseDown to the mouseDown handler. I've  
updated the code in the lesson.


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/8411-How-Do-I-Display-a-Contextual-Menu-When-the-User-Clicks-on-a-Column-Header- 



For more information about dgMouseDown see this lesson:

http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7316-How-Do-I-Add-a-mouseDown-Event-To-The-Data-Grid-Without-Breaking-It- 



--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


[ANN] tRev Feature Friday - make bookmarks in handler list with handler tags

2010-01-01 Thread Jerry Daniels

Dear tRev users and watchers,

With our new handler tags feature, you can turn short comments within  
your code into bookmarks within your handler list. We have a short  
video showing how to make and use handler tags:


   http://reveditor.com/feature-friday-leave-bookmarks-in-handler-lis

Handler Tags!
- now you can tag your handlers by typing handler comments like this:  
-- my tag
- place these special tag comments inside the handler, not outside  
with folder comments
- handler tags show up in the handler list indented beneath their  
parent handler

- these tags work like bookmarks within the handlers list
- handlers tags are never sorted in the handler list
- click a handler's tag in handler list and navigate quickly to a  
specific area within a large handler
- handler tags themselves cannot be dragged, but are dragged when  
parent handler is dragged

- using these tags beats folding control structures, IMHO

Fixes:
- leading spaces at top of handler are now removed when handler is  
formatted
- removing these spaces making make the handler appear properly in the  
handler list
- dropping a handler on its home line no longer leaves orange  
insertion bar
- a home line drop will no longer select the first line of the script  
when it should not
- after dragging and dropping text within editor's code field, the tab  
is now marked dirty


Best,

Jerry Daniels

Want to edit something? We can help with tText!
http://reveditor.com/purchase-ttext




___
use-revolution mailing list
use-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: Imagesource of char not working as expected in Windows

2010-01-01 Thread J. Landman Gay

Jim Ault wrote:

Of course this should make no difference...
try using parens
set the imageSource of last char of fld ResultsT to (binfile:  k)
answer (binfile:  k)


I was about the suggest the same thing. It does make a difference. The 
parentheses are required to force evaluation.


--
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: [ANN] tRev Feature Friday - make bookmarks in handler list with handler tags

2010-01-01 Thread Troy Rollins


On Jan 1, 2010, at 11:40 AM, Jerry Daniels wrote:

With our new handler tags feature, you can turn short comments  
within your code into bookmarks within your handler list. We have a  
short video showing how to make and use handler tags:


Brilliant. Jerry, this one kicks @ss.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.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: [ANN] tRev Feature Friday - make bookmarks in handler list with handler tags

2010-01-01 Thread Jerry Daniels

Thanks, Troy!

Best,

Jerry Daniels

The latest Rev Editor Video:
http://reveditor.com/feature-friday-leave-bookmarks-in-handler-lis

On Jan 1, 2010, at 11:55 AM, Troy Rollins wrote:



On Jan 1, 2010, at 11:40 AM, Jerry Daniels wrote:

With our new handler tags feature, you can turn short comments  
within your code into bookmarks within your handler list. We have a  
short video showing how to make and use handler tags:


Brilliant. Jerry, this one kicks @ss.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.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


on deleteGroup

2010-01-01 Thread David Bovill
Just noticed that the deleteGroup message is not sent when the group is
nested - anyone got an idea how to get around this?

Say you have a group that you want to do some tidying up if a user deletes
it - and so you put a handler like this in the group itself:

on deleteGroup
beep
doSomeTidying
pass deleteGroup
 end deleteGroup


Which works fine if it is a toplevel group - but when this group is inside
another group deleting the toplevel group triggers a deleteGroup message
which travels up the hierarchy to the card - but no deleteGroup messages are
sent from the inner groups - this means you can't attach appropriate
behaviors to the groups.

Wandering if anyone has looked at this - I can't think how to do it as
deleteGroup is sent after deletion so even a frontscript would not be able
to tell what was inside a deleted group. Even the new closeControl message
does not seem to be sent in these circumstances?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Opening a doc in a cd or fld

2010-01-01 Thread zryip theSlug
Hi Hershel,

Not tried yet, but it could be possible to open a pdf directly on a
Rev stack by using the revBrowser external.
The revBrowser external allow you to open a browser on a stack. Since
it is possible to open a pdf in a common browser, no reason that the
revBrowser could not do same.

For .doc and .xls it depends if you're on mac or windows. On windows
it maybe possible to open those formats in a browser by using ActiveX
controls.


-Zryip TheSlug- wish you the best! 8)

2009/12/31 Hershel Fisch hersh...@syp2u4c.com:
 Thanks, this opens it up In it own window, my question if I could open in a
 rev stack?
 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


Multipage icons

2010-01-01 Thread David Bovill
I'm used to creating icons with a separate icon for each image file. I've
noticed that there are a couple of other techniques in use:

   1. multi-page icons
   2. multiple icons in one image

I'm using some icons in a rev project of type 2. I think they are usually
formatted by scrolling and clipping the overall image using CSS - and i
guess I could do the same with an image in a group? Does anyone have any
advice on how to work together with a graphic designer who does strange
things to their icons :)
___
use-revolution mailing list
use-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: Easier syntax for quoting text and html?

2010-01-01 Thread Alex Tweedly

David Bovill wrote:

2009/12/31 Jim Ault jimaultw...@yahoo.com
  --// html honors both quote types, ignores extra spaces
  

Thanks Jim !! How did I get to this age in my life without realizing that !?

NB - I do think that RunRev should add syntax to the language to make html
quoting very easy to use for both iRev scripts We need an elegant solution
to quoting html - other languages are easier to use and read with regard to
html quoting! using our own custom functions does not make read/writeability
that much easier, and makes it harder to share scripts.
  
My first choice would be to allow either single or double quotes to 
delimit strings - then I could put the other kind within it without any 
problems (yep, idea borrowed from Python, amongst others).


So we could go one step further and also borrow from Python a neat 
method of allowing multi-line strings. Instead of using *one* quote at 
start+end of the string, you use *three* of them (which is unambiguous 
with any existing valid code, afaict).  So in revTalk terms, I could do


put 'I said This way!' into tVar

put it's mine into tVar

put 
this is a long
multi line string.
I'd say It's easy to embed quotes within it !!
 into tVar

Note the starting triple-quote has to be last item on line, and the 
closing triple-quote has to be first item on its line - and the 
first/last CR within the text are not part of the resulting string.

My suggestion is to extend the syntax for local variables and constants.
Currently we have:

  
Hmmm :-(I'd much rather find a syntax that works equally for local, 
constants and plain old expressions - see above.


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


Re: Compact SQLite database

2010-01-01 Thread RevList
Christian Langers ch...@whitelotus.on-rev.com on December 30, 2009 at
10:09 AM -0800 wrote:
try somthing like this (if needed) :

global gConID
put VACUUM into tSQL
get revdb_execute(gConID,tSQL)

Worked like a charm.  Thank you.
Happy New Year to all.


**
Stewart Lynch
CreaTECH Solutions
sly...@createchsol.com
604.484.8499
Skype:StewartLynch

There are only 10 kinds of people.  Those who understand binary and those
who don't.
**


This message and any attachments are intended only for the use of the
individual to whom they are addressed and it may contain information that
is privileged or confidential. If you have received this communication by
mistake, please notify us immediately.


___
use-revolution mailing list
use-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: Easier syntax for quoting text and html?

2010-01-01 Thread Jim Ault
My plan is to use irev to call various working scripts that are run in  
Rev cgi, rather than try to build functions above working code in a  
single irev script.
The way I handle multiline storage of languages like AppleScript,  
Html, Php is the following:


A non-irev solution:
The only way I can think of at the moment to get a multiline text  
script to work in Rev so that it can be simply typed verbatim and then  
used in variables, then be shared between cards, stacks, and other Rev  
users, etc. is to do the following:



### stack script 

put line 2 to -2 of the script of btn textSnip01 into multiLineVerbatim
put line 2 to -2 of the script of btn htmlSnip02 into multiLineHtml
--and you can copy and paste buttons between cards/stacks

-- if a button is NOT in a group, its ID is different on each card
-- if a button is in a group, it is the same as setting a field to  
'sharing' thus the same script is available to all cards that use that  
group



### button textSnip01 script ###
/*  --this allows compiling without errors
this is a long
multi line string.
I'd say It's easy to embed quotes within it !!
*/

### button htmlSnip02 script ###
/*
bMajor Headline/b
p More info on the next page if you click very fast.br
If not, there will be less info.br
iThe clock is ticking.../i
/p
*/

### button appleScriptSnip03 script ###
/*
set thisUrl to http://www.mapquest.com/maps/89117/90209/;
tell application Safari
make new document
set the URL of document 1 to thisUrl
delay 5
tell window 1
set prevName to the name of current tab
make new tab
set current tab to last tab
end tell
set the URL of document 1 to thisUrl
delay 5
set listt to every document
--MapQuest: Driving Directions  Business Directory
return listt
end tell
*/

One caution:  watch for tabs and high-ascii chars that may get pasted  
from other code editors


Hope this gives you a few ideas to get up and running before the  
script editor features are added.


Jim Ault
Las Vegas


On Jan 1, 2010, at 4:18 PM, Alex Tweedly wrote:


David Bovill wrote:

2009/12/31 Jim Ault jimaultw...@yahoo.com
 --// html honors both quote types, ignores extra spaces

Thanks Jim !! How did I get to this age in my life without realizing  
that !?
NB - I do think that RunRev should add syntax to the language to  
make html
quoting very easy to use for both iRev scripts We need an elegant  
solution
to quoting html - other languages are easier to use and read with  
regard to
html quoting! using our own custom functions does not make read/ 
writeability

that much easier, and makes it harder to share scripts.

My first choice would be to allow either single or double quotes to  
delimit strings - then I could put the other kind within it without  
any problems (yep, idea borrowed from Python, amongst others).


So we could go one step further and also borrow from Python a neat  
method of allowing multi-line strings. Instead of using *one* quote  
at start+end of the string, you use *three* of them (which is  
unambiguous with any existing valid code, afaict).  So in revTalk  
terms, I could do


put 'I said This way!' into tVar

put it's mine into tVar

put 
this is a long
multi line string.
I'd say It's easy to embed quotes within it !!
 into tVar

Note the starting triple-quote has to be last item on line, and the  
closing triple-quote has to be first item on its line - and the  
first/last CR within the text are not part of the resulting string.
My suggestion is to extend the syntax for local variables and  
constants.

Currently we have:


Hmmm :-(I'd much rather find a syntax that works equally for  
local, constants and plain old expressions - see above.


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

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


Jim Ault
Las Vegas



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


Re: Easier syntax for quoting text and html?

2010-01-01 Thread Jim Ault
You may not realize that the Rev Script Editor uses html tags to  
colorize the script lines..  but it would be an interesting a  
challenge for the design team to use html tags to display html tags.


Jim Ault
Las Vegas



On Jan 1, 2010, at 4:18 PM, Alex Tweedly wrote:


David Bovill wrote:

2009/12/31 Jim Ault jimaultw...@yahoo.com
 --// html honors both quote types, ignores extra spaces

Thanks Jim !! How did I get to this age in my life without realizing  
that !?
NB - I do think that RunRev should add syntax to the language to  
make html
quoting very easy to use for both iRev scripts We need an elegant  
solution
to quoting html - other languages are easier to use and read with  
regard to
html quoting! using our own custom functions does not make read/ 
writeability

that much easier, and makes it harder to share scripts.

My first choice would be to allow either single or double quotes to  
delimit strings - then I could put the other kind within it without  
any problems (yep, idea borrowed from Python, amongst others).


So we could go one step further and also borrow from Python a neat  
method of allowing multi-line strings. Instead of using *one* quote  
at start+end of the string, you use *three* of them (which is  
unambiguous with any existing valid code, afaict).  So in revTalk  
terms, I could do


put 'I said This way!' into tVar

put it's mine into tVar

put 
this is a long
multi line string.
I'd say It's easy to embed quotes within it !!
 into tVar

Note the starting triple-quote has to be last item on line, and the  
closing triple-quote has to be first item on its line - and the  
first/last CR within the text are not part of the resulting string.
My suggestion is to extend the syntax for local variables and  
constants.

Currently we have:


Hmmm :-(I'd much rather find a syntax that works equally for  
local, constants and plain old expressions - see above.


-- Alex.





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