Re: [OT] WePad

2010-04-11 Thread John Craig
Check out http://www.ubergizmo.com/15/archives/2010/03/wepad.html On 12/04/2010 00:25, stephen barncard wrote: I like this. Now we're talking. Can't wait to see the specs and a real one. On 11 April 2010 16:20, John Craig wrote: _

[OT] WePad

2010-04-11 Thread John Craig
I'm looking forward to the iPad being available in the UK. I'm also looking forward to the WePad launch; http://wepad.mobi/en/index It sounds interesting. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscrib

[ANN] Game update

2009-06-28 Thread John Craig
For anyone interested in wasting some time, I've updated the 'Air Traffic Control' game stack on Rev Online. The animation is a bit smoother in the new version. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to

moving multiple stacks - slight stutter

2009-06-24 Thread John Craig
I saw rocketdock mentioned recently a couple of times and it's reminded me of a small problem (more of an annoyance) I encountered. I wrote a dock using rev and used individual stacks for each icon to get the transparency effect. The stacks are lined up next to each other and moved/resized as

change textfont

2008-01-04 Thread John Craig
A slightly shorter alternative :-) put the short name of the topstack into tStackList put the substacks of the topstack into line 2 of tStackList repeat for each line tStack in tStackList repeat with n = 1 to the number of controls in stack tStack set the textfont of control n of stack tStack

Re: Calculating Numbers

2007-05-22 Thread John Craig
The following might be of some use - or even tweakable; go stack URL "http://www.molekular.co.uk/tmp/seriesTest.rev"; JC Scott Rossi wrote: Being math challenged as I am, I'm wondering if any of the math experts out there can explain how to increase the value of a variable by a progressively

Re: Read File at > 2GB Problem

2007-05-17 Thread John Craig
Hi, Dave. I just tried a 4GB file with Suse Linux and it was lightening fast. I read from position 3,221,225,472 (3GB mark). Maybe it depends on platform? JC Dave wrote: Hi, I have a File that is greater than 2GB in size. I am using: read from file theFile at myFilePosition for myCount pu

Re: Tiny, but fast hardware for running Rev app

2007-05-06 Thread John Craig
CF to IDE adapters are inexpensive - just pop one on the mother board and stick a CF card in. I got some on ebay a while ago - here's the first link that popped up in google; http://www.digitalera.co.uk/product/cf-to-ide-adapter-direct.html [EMAIL PROTECTED] wrote: http://www.mini-tft.de/x

Re: Check Boxes in Revolution

2007-05-03 Thread John Craig
I think I understand, but apologies if this is off the mark - type the following into the rev message box; go stack URL "http://www.molekular.co.uk/tmp/demo.rev"; :-) JC Ted Mills wrote: I purchased revolution months ago and have been unable to work with it much until now. This is probably

Connecting Rev 2.6.1 to MySQL

2007-05-02 Thread John Craig
Hi, all. I've tried connecting Rev. 2.6.1/Linux to MySQL 3.23.58 and MySQL 4.1.13, but always get the 'invalid database type' error returned. When trying with a standalone, I get; 'Failed to load dbMySQL.so error dbMySQL.so: cannot open shared object file: No such file or directory' Rev can't

Re: [OT] CGI - web site help

2007-04-30 Thread John Craig
Another example - http://www.molekular.co.uk/tmp/test2.php To link using a radio button, you can use the following; onClick="javascript:window.location.href='http://localhost/cgi-bin/catSearch.cgi?searchfor=1234&discount=5';"> Option1 HTH JC Sarah Reichelt wrote: Effectively, what I want

Re: [OT] CGI - web site help

2007-04-27 Thread John Craig
Hi, Sarah. I've thrown a crude demo on http://www.molekular.co.uk/tmp/test.php Seems to work ok on Windows using Firefox and IE7. Hopefully this will help. JC Sarah Reichelt wrote: On 4/27/07, Bernard Devlin <[EMAIL PROTECTED]> wrote: > a set of radio > buttons that alter the search result

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
Applescript to handle single calls, so not much help for you. Jim Ault Las Vegas On 4/23/07 4:24 PM, "John Craig" <[EMAIL PROTECTED]> wrote: For only 1 folder containing 34,782 files on MY machine (3GHz, 512Mb RAM) which is not running any services. Time taken to get '

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
dir for the particular file you're interested in? "John Craig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] For only 1 folder containing 34,782 files on MY machine (3GHz, 512Mb RAM) which is not running any services. Time taken to get 'the detail

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
For only 1 folder containing 34,782 files on MY machine (3GHz, 512Mb RAM) which is not running any services. Time taken to get 'the detailed files'; 26888 millisecs = 26.888 seconds Size of output generated by rev for 'the detailed files'; 2543957 bytes = 2.5Mb On a busy server, the results co

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
Ken, I'll just buy a brand new set of typing gloves :-) Ken Ray wrote: On Mon, 23 Apr 2007 09:55:25 +0100, John Craig wrote: Thanks for the info. I am just of the opinion that the file functions in rev could possibly be more economical - it's as easy as that. I a

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
ab a whole tree and then process it with Rev's chunk expressions before you start looping. - Bill "John Craig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, Stephen. I'm very comfortable with rev. It became my 'weapon of choice' very quic

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
Hi, Stephen. I'm very comfortable with rev. It became my 'weapon of choice' very quickly once I discovered it. economic: using the minimum of time or resources necessary for effectiveness One example is needing the size of a file in a folder of thousands. Creating the output generated by 't

Re: repeat until the mouseClick

2007-04-23 Thread John Craig
Another variation; repeat until the mouseClick or the keysDown is not empty end repeat Mike Hughes wrote: I use the following 2 lines of code to pause a program until the user clicks the mouse: repeat until the mouseClick end repeat I would like to extend the functionality of this script so

Re: Obtaining the size of a file

2007-04-23 Thread John Craig
Thanks for the info. I am just of the opinion that the file functions in rev could possibly be more economical - it's as easy as that. Chipp Walters wrote: Hi John, I'm coming rather late to this party. But it does appear you're missing something important here. I assume you're new to progra

Re: Obtaining the size of a file

2007-04-22 Thread John Craig
Apology accepted. Richard Gaskin wrote: Sorry if my attempt to help you find an immediate solution struck you as "bizarre". ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: Obtaining the size of a file

2007-04-22 Thread John Craig
it and only need the size of 1 file in that particular folder, it seems like wasted CPU time to pull the entire folder contents. Richard Gaskin wrote: John Craig wrote: I'm recursing through a (sometimes large) list of files and folders which can take a while, so I was trying to av

Re: Obtaining the size of a file

2007-04-22 Thread John Craig
to relax a bit ;-) http://www.emanator.demon.co.uk/bigclive/tickle.htm Have fun, JC Richard Gaskin wrote: John Craig wrote: Maybe I should have said 'another lengthy function call per line'... I already use a cached file list, but if I hit a folder with thousands of files in it and only need the size o

Re: Obtaining the size of a file

2007-04-22 Thread John Craig
Richard Gaskin wrote: John Craig wrote: I'm recursing through a (sometimes large) list of files and folders which can take a while, so I was trying to avoid another function call per line. A perfect case for using "the detailed files", so you can rapidly get all of the size inf

Re: Obtaining the size of a file

2007-04-21 Thread John Craig
" after tPathAndFile set the defaultfolder to tPathAndFile put the detailed files into tFiles filter tFiles with urlencode(tFile) & comma & "*" return tFiles END theFileDetail These only took a few days to write, I am not quite as fast as Richard :-) On Apr 20,

Re: Obtaining the size of a file

2007-04-20 Thread John Craig
rksmith/Desktop/add.tiff")) end mouseUp Of course, it means reading the whole file into memory, which might not always be ideal. Best, Mark On 20 Apr 2007, at 23:32, John Craig wrote: Does anyone know of a native rev. method to obtain the size of a file without using shell or 'the detai

Re: Obtaining the size of a file

2007-04-20 Thread John Craig
Richard Gaskin wrote: John Craig wrote: Does anyone know of a native rev. method to obtain the size of a file without using shell or 'the detailed files'? What's the objection to using 'the detailed files'? It was added to the language specifically to provide

Obtaining the size of a file

2007-04-20 Thread John Craig
Does anyone know of a native rev. method to obtain the size of a file without using shell or 'the detailed files'? Thanks, JC ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage y

Re: image data

2007-04-10 Thread John Craig
Check out http://www.jpeg.org/jpeg/ Wilhelm Sanke wrote: I would very much like to try out to come up with a routine to manipulate pixels on the basis of the "text of image" property (to compare it with the possibilities the imagedata format offers). Where could I find background information

Re: image data

2007-04-10 Thread John Craig
Jeanne A. E. DeVoto wrote: For what it's worth, "put XXX into " does the same thing as "set the text of to XXX", and is considerably more intuitive. But I wouldn't object at all to adding a synonymous "content" property or something similar. I had a variable 'pObject' which contained the nam

Re: image data

2007-04-06 Thread John Craig
Thanks for the replies! The 'text' is what I was after :-) Trevor DeVore wrote: On Apr 6, 2007, at 6:02 AM, John Craig wrote: Is there a property I can use to set the actual image data of an image object? (example: JPG format) (Not imageData). I know I can 'put tData into

image data

2007-04-06 Thread John Craig
Is there a property I can use to set the actual image data of an image object? (example: JPG format) (Not imageData). I know I can 'put tData into image testImage', but can I 'set [property] of image "testImage" to tJPGData'? Thanks, JC ___ use-revo

Export snapshot - with mouse cursor

2007-04-03 Thread John Craig
Does anyone know if it's possible to include the mouse cursor using 'export snapshot'? Thanks, JC ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences

Re: group horizontal scrollbar movement

2007-03-24 Thread John Craig
Thanks - you are right - did an update and it's fixed - happy days. :-) Devin Asay wrote: On Mar 23, 2007, at 6:08 AM, John Craig wrote: Anyone know if there is a reason why clicking on the arrows on a horizontal scrollbar on a group moves the thumb AWAY from the arrow you click

group horizontal scrollbar movement

2007-03-23 Thread John Craig
Anyone know if there is a reason why clicking on the arrows on a horizontal scrollbar on a group moves the thumb AWAY from the arrow you clicked on? (Windows + Rev 2.8) JC ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit

Re: Implications of limited wash to flash drives

2007-03-17 Thread John Craig
My current flash drive got washed at 40 degrees when I accidentally left it in my jeans pocket - still seems to work perfectly, but be warned; Like all flash memory devices, flash drives can sustain only a limited number of wash and rinse cycles before failure.

Re: [ANN] Son 2.0

2007-02-22 Thread John Craig
Congratulations, Malte. Best of luck with sleeplessNight2.0 and nappyChanger1.2 Malte Brill wrote: Hi all, just wanted to let you know that my second kid arrived today. Mattis Johan Pfaff Length 55 cm Weight 4280 gramm http://www.derbrill.de/linusundmattis.jpg All the best, Malte

Re: [ANN] revRacer demo

2007-02-20 Thread John Craig
I've thrown up a version that attempts to detect how quick the host machine is and adjust itself accordingly. This may allow the app to run on some older machines. Same URL - http://www.molekular.co.uk/racerTest.rev Scott Rossi wrote: Recently, John Craig wrote: I've uploa

Re: [ANN] revRacer demo

2007-02-20 Thread John Craig
Thanks, Scott - it's actually possible to do 10 laps in a lot less than 3 minutes! - you just have to have some time to waste. Scott Rossi wrote: Fun, but I wonder, is it really possible to do 10 laps within 3 minutes? Granted I crashed every 10 seconds... Nicely done John! Regards, Scott Ro

[ANN] revRacer demo

2007-02-20 Thread John Craig
For anyone in need of some light entertainment I've uploaded a demo game at http://www.molekular.co.uk/racerTest.rev With features such as annoying sounds and jaggy edges, it's not to be missed! Only one track so far, but the high score table should work. Enjoy! ___

Re: Error in external

2007-02-13 Thread John Craig
Thanks for the replies, T & J. I'll be on a windows machine later today, so I'll check it out - I can also post the code. JC J. Landman Gay wrote: John Craig wrote: I wrote a small external a while back after Mark Waddington's newsletter article. The external seems to wo

Re: Big/Little Endian and Externals - Was how to Display/Print a Hex Number???

2007-02-13 Thread John Craig
Dave, here's a function I've used to convert big endien numbers. pData is a big endien value read directly from a binary file. If pSigned is empty then the data is assumed to be unsigned. Hopefully this will be of some help. function littleEndien pData, pSigned put length(pData) into tLen

Error in external

2007-02-12 Thread John Craig
I wrote a small external a while back after Mark Waddington's newsletter article. The external seems to work fine most of the time, but every once in a while throws an error. The variable watcher tells me that the temp vars that were set prior to calling the external function have mysteriously

Re: Quartam PDF lib

2007-02-06 Thread John Craig
Thirded. I'd also done some work on a pdf library (document creation, adding pages, simple text and zlib compression so far), so had a look at Jan's out of interest - excellent - very well put together. JC Trevor DeVore wrote: On Jan 31, 2007, at 12:37 PM, Mark Smith wrote: Just a quick not

Re: revolution in background catchig arrow keys

2007-02-01 Thread John Craig
if you call a handler every so often and check 'the keysDown' you can catch key presses. on openStack checkKeys end openStack on checkKeys -- check for LEFT key if 65361 is in the keysDown then -- do snapshot end if send "checkKeys" to this stack in 100 millisecs end checkKeys Hop

User groups

2007-02-01 Thread John Craig
Following on from the Rev newsletter - anyone in the Glasgow, UK area interested? If so, drop me a mail off-list. B-) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subsc

Re: AltBrowser licensing/documentation

2007-01-12 Thread John Craig
Google's cache may help; |http://www.google.com/search?q=cache:Kxz5_cCvTZYJ:www.altuit.com/webs/altuit2/AltBrowserSub/Documentation.htm+altBrowser+stack&hl=en&gl=uk&ct=clnk&cd=8&client=firefox-a| Michael D. wrote: Hello I downloaded these plugins too and its great there available early, but

Re: [ANN] Creating paths for animation

2006-12-12 Thread John Craig
writing an existing path saved in a stack. JC Judy Perry wrote: John, Can't wait to try it out! This will be great for my students! Judy On Sat, 9 Dec 2006, John Craig wrote: I have uploaded 'Steam Roller' to user space Jock_McTartan. This plugin is for creating paths for s

[ANN] Creating paths for animation

2006-12-09 Thread John Craig
I have uploaded 'Steam Roller' to user space Jock_McTartan. This plugin is for creating paths for sprites to follow in games, etc. I'll update the molLibSprite library shortly with some routines for using paths created with this plugin. Feedback welcome. Enjoy! JC

Re: preventing deletion of linefeds

2006-12-06 Thread John Craig
Viktoras, here's a handler that will stop the backspace and delete keys working in a text field. I hope I understand you correctly, because I was struggling to think of a use for this! Like Jim says, you may want to handle the cutKey message, etc. This handler blocks multi line selecting and

Re: slide with multiples of x?

2006-12-06 Thread John Craig
Here's another similar wee snippet. on mouseUp set the thumbPos of me to round(the thumbPos of me / 20) * 20 end mouseUp :-) Jim Ault wrote: Same result, just a little bit shorter and one less handler, but probably the same speed. on mouseUp get the thumbposition of me set th

Re: Image collision detection

2006-12-05 Thread John Craig
great! -Scott Morrow Elementary Software On Dec 3, 2006, at 10:53 AM, John Craig wrote: For anyone interested in image collisions, I have uploaded a demo to user space Jock_McTartan. I'll upload a library file shortly for using in your own projects. Feedback would be appreciated - IMHO i

Re: Image collision detection

2006-12-04 Thread John Craig
Library is available at http://www.molekular.co.uk for anyone who wants it. :-) JC John Craig wrote: For anyone interested in image collisions, I have uploaded a demo to user space Jock_McTartan. I'll upload a library file shortly for using in your own projects. Feedback wou

Re: [ANN]libUUID

2006-12-03 Thread John Craig
Nice one, Mark - this looks pretty comprehensive! JC Mark Smith wrote: I've uploaded a library that will generate UUIDs of types 1, 2 and 3 to RevOnline: Name: libUUID User: Mark Smith Category: Programming Any comments/criticism/suggestions welcome. Best Mark

Re: Image collision detection

2006-12-03 Thread John Craig
In fact, it's more basic than that - it's whether opaque points in each image overlap. JC David Bovill wrote: John what is an image collision - detecting edges of images based on imagedata? ___ use-revolution mailing list use-revolution@lists.runrev.

Re: Image collision detection

2006-12-03 Thread John Craig
Hi, David. Yes I'm using the image data (and alpha data) to decide if a collision has occurred. David Bovill wrote: John what is an image collision - detecting edges of images based on imagedata? ___ use-revolution mailing list use-revolution@lists.r

Re: Completely OT: Bank of America song

2006-12-03 Thread John Craig
To add to the mirth... http://howtoprankatelemarketer.ytmnd.com/ Jeffrey Reynolds wrote: My wife works in the credit card industry and this has been the biggest laugh riot all around. the line "we will make a lot of money while sticking to our core values" well to make a lot of money in tha

Image collision detection

2006-12-03 Thread John Craig
For anyone interested in image collisions, I have uploaded a demo to user space Jock_McTartan. I'll upload a library file shortly for using in your own projects. Feedback would be appreciated - IMHO it's pretty fast even with reasonably large images. Intended for use with PNG images, it has

Re: Matchtext script results

2006-12-01 Thread John Craig
Jeez! Did the office lights dim and flicker when you ran the regex version? :-0 Mark Smith -- native syntax: 18 ticks. Found 2 matches Mark Smith -- filter: 18 ticks. Found 2 matches Mark Smith -- array: 15 ticks. Found 2 matches Dick Kriesel -- array: 8 ticks. Found 1 match John Craig

Re: Matchtext for multiple words

2006-11-29 Thread John Craig
Oops. I meant to say - check the list is passed as "list,dog,house" (comma separated, and without parenthesis) J. Landman Gay wrote: John Craig wrote: And a script to create the regex from a word list. My apologies if this stuff turns out useless - but you can get absorbed in

Re: Matchtext for multiple words

2006-11-29 Thread John Craig
J. Landman Gay wrote: John Craig wrote: And a script to create the regex from a word list. My apologies if this stuff turns out useless - but you can get absorbed in this mince... I passed three random words to your script (list,house,dog) and got this regex from it: Here is the correct

Re: Custom Properties Lookup Table

2006-11-29 Thread John Craig
Good old rev - an even nicer script; on mouseUp put 51 into tage put tAge,field "subFld",field "rsFld" into theMatch repeat for each line theMatch2 in the scaledScore["memory"] of field "data1" if item 1 to 3 of theMatch = item 1 to 3 of theMatch2 then put item 4 of theMatch2 into fi

Re: Custom Properties Lookup Table

2006-11-29 Thread John Craig
Sorry - the following line should have been deleted from the example; put the scaledScore["memory"] of field "data1" into theMatch2 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and m

Re: Custom Properties Lookup Table

2006-11-29 Thread John Craig
Hi, Charles - hopefuly this will help - if I have understood you mail! on mouseUp put 51 into tage put tAge,field "subFld",field "rsFld" into theMatch put the scaledScore["memory"] of field "data1" into theMatch2 repeat for each line theMatch2 in the scaledScore["memory"] of field "data1"

Re: Matchtext for multiple words

2006-11-29 Thread John Craig
mp; i & "|" after tRegex end repeat delete char -1 of tRegex put ")" after tRegex end if put tWordsPattern & "\b" after tRegex if tCurrentWord < tTotalWords then put ".*" after tRegex end if end repeat -- test our

Re: Matchtext for multiple words

2006-11-29 Thread John Craig
I still think it's working ok - someone slap me if I'm wrong. The (?! is looking ahead and saying 'you can't begin with. (?!\1) - you can't begin with the first match (?!\1|\2) - you can't begin with the 1st or second match JC J. Landman Gay wrote: Sorry if this comes through twice, I'm having

Re: Matchtext for multiple words

2006-11-29 Thread John Craig
Maybe I'm too tired but I think this works. on mouseUp put "The purple dinosaur inadvertently stepped on the cat." & return & "The white dog howled." into tString put "The purple dinosaur inadvertantly stepped on the cat." & return & "The white cat howled." into tString2 put "(?is)\b(c

Re: Matchtext for multiple words

2006-11-29 Thread John Craig
Just experimaented with; "(?is)\b(cat|dinosaur|dog)\b.*\b(?!\1)(cat|dinosaur|dog)\b" and got some success - further investigation needed. :-) J. Landman Gay wrote: Sorry if this comes through twice, I'm having trouble sending to the list. I need a matchtext/regex that will tell me if all sup

Re: Matchtext for multiple words

2006-11-29 Thread John Craig
Although you can invert character matching using [^ ... , I don't think there's an equivalent for words. You could have used; "(is)\b(cat|dinosaur|dog)\b.*\b_(cat|dinosaur|dog)\b" ... if there was a way to say 'not beginning with the first match' where the underscore appears in the above - then

Re: remove element from array

2006-11-29 Thread John Craig
Hi, Paolo. delete variable tArray[5] will remove element 5 from the array named tArray JC paolo mazza wrote: How can I delete (or remove) an element from an array so that it does not appear anymore in the keys of the array? Thanks Paolo Mazza __

Re: MySQL

2006-11-27 Thread John Craig
Hi, Mark. I've used the following to get a list of MySQL tables; put revDataFromQuery(tab, return, lDB, "show databases") into tResult and the following to list tables in a database; put revDataFromQuery(tab, return, lDB, "show tables from mysql") into tResult ('mysql' being the database na

Re: MatchWithin

2006-11-26 Thread John Craig
Oh - I forgot to say - very useful! Mark Wieder wrote: All- Yesterday I had a need for a utility function that returns the text between two HTML tags, so I cobbled this together, but it will work for any text, not just tags. If you have, for example, pText = "click hereThis is a title" you ca

Re: MatchWithin

2006-11-26 Thread John Craig
There are some extra parenthesis - a more concise version is; FUNCTION MatchWithin pRawText, pStartText, pEndText if matchText(pRawText, "(?Uis)" & pStartText & "(.+)" & pEndText, tReturn) then return tReturn END MatchWithin JC Mark Wieder wrote: All- Yesterday I had a need for a utility

Re: Is it possible to script the choice of a tab in a tabbed button ?

2006-11-23 Thread John Craig
To select a tab, you can use; select menuItem 2 of btn "btTabs" to select the 2nd tab JC André.Bisseret wrote: Hi, On a card, I have a tabbed button with four groups. One of these groups only (say, group1) is a field with share text property and background behavior so that another card c

Custom objects

2006-11-22 Thread John Craig
I have uploaded 'revLunchBox' to user space Jock_McTartan. It's another toolbox, but for 'custom' Rev objects. I'm thinking that it would be very handy to be able to drag composite objects like Tereza's tree control straight into your project complete with scripts, etc. Take a look at the 2

Re: problem with transfert of data from one substack to another one

2006-11-22 Thread John Craig
Hi, Andre. The following line will work in the script of 'possibleDuration'; do "put theItem into" && gTheTarget Otherwise, you are putting the choice into the variable 'gTheTarget' instead. JC André.Bisseret wrote: Hi, On a card, in a substack I have a field « duration » to be filled in

Re: row and column of table clicked on

2006-11-17 Thread John Craig
Thanks, Josep - I'll check this out. Josep M Yepes wrote: Hi, You can try this, I found one interesting tutorial about Table Fields and her mysteries. Thanks for it Eric! :) set the cRevTable["currentxcell"] of fld pFieldName to pValueX set the cRevTable["currentycell"] of fld pFieldName to

password fields

2006-11-17 Thread John Craig
If anyone has a spare minute, please let me know if the 'password field converter' plugin in user space Jock_McTartan behaves itself using different OS's (esp. Mac). I tried a few demo stacks to create password fields, but seemed to keep ending up with strange results in the field (especially wi

Re: row and column of table clicked on

2006-11-16 Thread John Craig
Perfect - thanks for that! :-) Sarah Reichelt wrote: On 11/17/06, John Craig <[EMAIL PROTECTED]> wrote: Can you tell which row and column the user clicks on a table field? I have used the clickChunk, but you must click on the text - the whitespace around it returns empty. Here

row and column of table clicked on

2006-11-16 Thread John Craig
Can you tell which row and column the user clicks on a table field? I have used the clickChunk, but you must click on the text - the whitespace around it returns empty. Thanks, JC ___ use-revolution mailing list use-revolution@lists.runrev.com Plea

Re: Programing style

2006-11-16 Thread John Craig
Say we have a 10 digit number called tInt - 1234567890 repeat with i = length(tInt) - 3 to 1 step -3 We start at length(tInt) - 3 (position 7) and put a comma after the character at position 7 This gives us 1234567,890 The next iteration (-3) takes us to position 4 - put in another comma; N

Re: rawKeyDown codes

2006-11-16 Thread John Craig
Thank for the info, Dar - the codes I'm looking at are pretty basic - like delete & backspace - I shall have a read. JC Dar Scott wrote: On Nov 16, 2006, at 1:32 PM, John Craig wrote: Does anyone know if the codes used in rawKeyDown are consistent across all platforms? The

rev online ... offline?

2006-11-16 Thread John Craig
Anyone else not able to connect to rev online? or is it just me?? JC ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mai

Re: Programing style

2006-11-16 Thread John Craig
The format function may be worth a look at in the docs; put "$" & format("%1.3f", 12345.678) into tResult would format to 3 decimal places. If you are after the thousand seperators, I don't think format can do that, but I could be wrong. Here's a snippet that will format with the thousand sep

rawKeyDown codes

2006-11-16 Thread John Craig
Does anyone know if the codes used in rawKeyDown are consistent across all platforms? Thanks, JC. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferenc

Re: specifying a custom port for a MySQL database connection

2006-11-15 Thread John Craig
I had the same problem a while back - some kind person on the list came up with the answer - so here it is regurgitated! The correct syntax is; put revOpenDatabase("MySQL", dbHost, dbName, dbUser, dbPass, dbPort) into db HTH JC Chris Sheffield wrote: Hi all, I'm having a problem. Using the

Re: Spaces in folder names on server

2006-11-13 Thread John Craig
I've just been testing on my own server with a test setup and got the same results, so it isn't just the original server. John Craig, how did you get it to work with Suse? Could you post a script? ___ use-revolution mailing l

Re: Spaces in folder names on server

2006-11-13 Thread John Craig
Works OK on Suse linux - can another folder be created with a space in the name to test - or _that_ folder recreated? JC J. Landman Gay wrote: I have a cgi that needs to work with files that are in folders whose names contain spaces. I've written a test cgi that simply returns whether a file

Re: Shell commands are blocking -- work around?

2006-11-12 Thread John Craig
You could write a request to a text file and have a cron job (maybe running every couple of minutes) pick up the request from the text file, do the processing and write the results to a result file. You can then poll the result file from your rev app. I've use this technique many times with P

Re: UDP question

2006-11-10 Thread John Craig
I also had a look at Alex Tweedly's UDP examples when I started looking at networking with Rev. - saved a lot of time. I've also got two very minimal test stacks on user space Jock_McTartan - about 10 lines of code each - client and server. They have just enough in them to show the mechanism wor

Re: When my relatives moved to Linux

2006-11-09 Thread John Craig
Didn't work as standalone on Suse either. Bill Marriott wrote: Followup: Are you running this on Linux as a standalone? I bet you are, because the stack doesn't work on Windows or Mac as a standalone, either. You're running into the 10-statement runtime limitation with that "do field 'fSum'

Re: When my relatives moved to Linux

2006-11-09 Thread John Craig
OK - so I had to read your email one more time - ignore picture remark! John Craig wrote: Works fine on Suse Linux 10 and Rev 2.6.1 - after I reread your mail and actually played it properly and clicked the check marks! You're a lot younger than I imagined you - that picture IS up to

Re: When my relatives moved to Linux

2006-11-09 Thread John Craig
Works fine on Suse Linux 10 and Rev 2.6.1 - after I reread your mail and actually played it properly and clicked the check marks! You're a lot younger than I imagined you - that picture IS up to date, isn't it?? JC Richmond Mathewson wrote: I made a jolly little stack (on a Mac computer), "Fa

Revolution user space

2006-11-06 Thread John Craig
I uploaded a plugin to my space which changes it's mode to palette on openStack. Is the openStack message bypassed when downloading from a user space (security?) or has something went wrong? Thanks, JC ___ use-revolution mailing list use-revolution@l

Re: More on php and Rev cgi

2006-11-06 Thread John Craig
Check out the following; http://uk.php.net/manual/en/ref.exec.php http://uk.php.net/manual/en/function.exec.php exec("stuff.cgi", $results); will return an array of lines of output from your script. Hop this helps - I'll need to try some rev cgi stuff - sounds good. JC You can call your CGI

Re: links again]

2006-11-06 Thread John Craig
I've uploaded my first attempt at a plugin for formatting field text (including links). User = Jock_McTartan I've only tested it a couple of times so far, so make sure your work is backed up up if you give it a try! Feedback welcome :-) JC Timothy Miller wrote: As you might guess, I'm strugg

Re: Revolution Web Browser Plugin

2006-11-02 Thread John Craig
Just a side comment - I had never heard of Rev and was pleasantly surprised when I accidentally stumbled upon it. It's the industry's best kept sectret - ssshh! Viktoras Didziulis wrote: let's hope somebody will do this within the next 5 years ;-). I wonder why Rev attracted so few Open S

Re: Getting data prepped for database entry.

2006-11-02 Thread John Craig
You could use; if item x of Mylist is not a number and item x of Mylist is not a date then do the string bits... JC Dave Herndon wrote: This script pretty much gets the job done. Stripps unwanted spaces before and aft, changes mixed or small caps to ALL CAPS, and makes ready the data for

Re: Linux standalone

2006-11-02 Thread John Craig
I've been told that it's next in line, Kevin - fingers crossed :-) Kevin Brooks wrote: I am running Rev Studio 2.7.4 and notice that in the standalone applications settings, I don't have the option of producing a Linux app. The message at the top of the preferences pane reads, "Build for Linux

Re: formatting data

2006-11-01 Thread John Craig
here's a snippet that should work for 10 rows of fields - c1r1, c2r1, c1r2, c2r2, etc... put 1 into writeRow repeat with i = 1 to 10 put fld("c1r" & i) into value1 put fld("c2r" & i) into value2 if value1 <> empty or value2 <> empty then if i > writeRow then put value1 into

  1   2   >