Re: Close field anomaly

2007-04-30 Thread Mark Smith
At a guess, I'd think it's because when you click in fld 2, you close fld1, selecting it's text (re-opening it), thereby preventing you from selecting fld 2...ie. once fld 1 is selected, selecting anything else will cause fld 1 to be re-selected... Best, Mark On 30 Apr 2007, at 23:57,

Re: milliseconds timing subliminal stimuli

2007-04-27 Thread Mark Smith
David, you may well have been down this route, but the following little experiment I found quite interesting: on mouseUp put the millisecs into t0 show img alex unlock screen put the millisecs into t1 repeat if the millisecs = t1 + 30 then hide img alex unlock screen

Re: line endings on OS X

2007-04-24 Thread Mark Smith
Bernard, in Rev itself, numToChar(10) is used for line endings (showing its Unix origins), but if written to a file on a Mac, using URL file:, they're translated to numToChar(13). If using URL binfile:, no translation happens, so numToChar(10) is preserved. I think what you're seeing is a

Re: line endings on OS X

2007-04-24 Thread Mark Smith
Bernard, I do agree that it might be more fully documented, though once you've figured it out it's not exactly a burden. write to file does the same thing as URL file:, so you can do open file somefile for binary write, just as you can do URL binfile: Best, Mark On 24 Apr 2007, at 10:55,

Re: Cleaning up stack URLs

2007-04-24 Thread Mark Smith
I think UrlEncode is exactly what you're after, isn't it? from the docs: Returns a string that has been transformed so that it can be posted to an HTTP server as a URL. Best, Mark On 24 Apr 2007, at 19:18, Devin Asay wrote: I'm working on a stack that launches stacks from the web with

Re: repeat until the mouseClick

2007-04-22 Thread Mark Smith
repeat until the mouseClick if the keysDown is not empty then exit repeat end repeat Best, Mark On 23 Apr 2007, at 00:12, 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

Re: Obtaining the size of a file

2007-04-20 Thread Mark Smith
Well, I guess the detailed files actually is the native rev method, but this works: on mouseUp put /Users/marksmith/Desktop/add.tiff into tUrl put length (URL (binfile:/Users/marksmith/Desktop/add.tiff)) end mouseUp Of course, it means reading the whole file into memory, which might

Re: Using non standard characters with a format statement

2007-04-19 Thread Mark Smith
I'd guess that the engine thinks that plat is a function, and the (1) is a parameter...so assuming that guess,plat(1) is a string you want to format, simply enclosing it in quotes should cure the problem, so: put format(%11s %9s\n , guess, plat(1)) into fld myReport if 'guess' is a

Re: QT Player Challenge - Play Remote Movie

2007-04-18 Thread Mark Smith
I wonder if this has anything to do with bug 3639 (frequent timeouts on https connections). Dave Cragg found it was down to some failure to write to a socket, I think. Best, Mark On 18 Apr 2007, at 05:58, Sivakatirswami wrote: Mark Smith wrote: Just did it here, on Mac 10.4.9 (G4

Re: I wish we had a do ... repeat statement!!!

2007-04-18 Thread Mark Smith
You could also just initialize x to something greater than zero... Best, Mark On 18 Apr 2007, at 11:02, Dave wrote: Hi, I've just finished coding one of the most complicated multiple loops I've ever had to do! I must say that the amount of code that I had to write could have been cut

Re: Rev as Web Server CGI programming language?

2007-04-18 Thread Mark Smith
Kee, I'm pretty sure that what happens is that each connection spawns an instance not just of the initial text script, but of the rev CGI engine, and therefore also whatever stacks (each instance of) it loads into memory. The propblem, as you have suggested, is what happens when 100

Re: QT Player Challenge - Play Remote Movie

2007-04-17 Thread Mark Smith
Just did it here, on Mac 10.4.9 (G4 Powerbook), WiFi. 1st time (player named Tutorial) I got spinning deathball and no video. (forced quit to get out of it). 2nd time (didn't name player, referenced player 1), all was fine 3rd time (player named Tutorial) all was fine. Best, Mark On 17

Re: SMS message

2007-04-17 Thread Mark Smith
You could also use placeholders with the replace command. So store this in a field or a custom prop. tell application SMS Mac Scripting set account to !ACCOUNT! set pin to !PIN! set m to make new outgoing sms with

Re: RevZip anyone?

2007-04-10 Thread Mark Smith
Chipp, worked fine on the two archives I gave it, folder structures intact. One small caveat (I don't know if this is addressable) is that one of the archives contained some old PICT files, and in the unzipped folder they had lost their file-type, and so would open in a text editor rather

Re: image data

2007-04-10 Thread Mark Smith
Wilhelm, I would think that it's not possible with JPEGs and PNGs , since they are compressed formats, and running filters on them would be a bit like trying to run a spellcheck on a zipped text file. With uncompressed formats like TIFFs, you would have to parse the file headers to extract

Re: A string doesn't equal itself

2007-04-09 Thread Mark Smith
And just for completeness, this also return false: put 09114E715806 is 09114E715806 (I wondered if 'is' instead of '=' might produce a different result). Best, Mark On 9 Apr 2007, at 07:00, Ken Ray wrote: On Sun, 8 Apr 2007 22:16:32 -0700, Mark Wieder wrote: string that represented a

Users language

2007-04-07 Thread Mark Smith
Can anyone tell me if it's possible to discover the language that a users computer is using? Is there a $USER - type environment variable which would give us English, French or whatever? Thanks, Mark ___ use-revolution mailing list

Re: Users language

2007-04-07 Thread Mark Smith
Thanks, Eric (and Trevor, of course). Got it. Best, Mark On 7 Apr 2007, at 12:58, Eric Chatonet wrote: Hi Mark, Your solution is in Trevor's GetUserLang stack on RevOnline. Le 7 avr. 07 à 13:32, Mark Smith a écrit : Can anyone tell me if it's possible to discover the language

Re: What's wrong with Globals?

2007-04-03 Thread Mark Smith
to do this via a specific command? Cheers Si. Simon Harper 2.44 Kilburn Building University of Manchester (UK) Pri: [EMAIL PROTECTED] Alt: [EMAIL PROTECTED] On 2 Apr 2007, at 23:20, Mark Smith wrote: Well, I'm certainly not going to presume to criticise your method, but in the spirit

Re: Question (more or less) about arrays

2007-04-03 Thread Mark Smith
JB, there are various requests in place at the qa center for enhancements to both the implementation and documentation of arrays in Rev (type 'array' into the search field, and you'll see them). As it stands, Revs arrays are just different from normal variables, and what you've found is

Re: Question (more or less) about arrays

2007-04-03 Thread Mark Smith
Exactly. I really can't think of a better behaviour, however strange it is to have a large array appear empty when accessed directly. However, it might be a good idea to have a small list of the more 'unintuitive' features of rev arrays in the user guide when they gvet around to the

Rev Prefs

2007-04-03 Thread Mark Smith
My installation of Rev Studio 2.8.0 has just dumped all my preferences (I haven't installed or un-installed anything), and will not reliably save any changes I make to them (sometimes it saves some, sometimes others, sometimes none, but never all, so far). I seem to remember having this

Re: Framed

2007-04-02 Thread Mark Smith
On 2 Apr 2007, at 04:31, Cal Horner wrote: Mark, I was trying to keep from starting another long discussion as to the merits of Rev. Cal, I'm with you on that! I was just intrigued by the word 'artistic' (particularly since there's just been a discussion about the merits or otherwise of

Rotate/Set angle

2007-04-02 Thread Mark Smith
Hi, is anyone else finding that the 'rotate' command is even more broken than it used to be? If I import snapshot from fld aField, and then rotate img tImg by 45, not only does it now have jagged black lines all around it, but the size of it's rect increases with each rotation. If I set

Re: What's wrong with Globals?

2007-04-02 Thread Mark Smith
Well, I'm certainly not going to presume to criticise your method, but in the spirit of you show me yours, I'll show you mine, what I tend to do is to have a stack in my apps which is put 'in use' at startup, and which has various getters and setters. The actual data it returns could be in

Re: Framed

2007-03-31 Thread Mark Smith
On 1 Apr 2007, at 00:03, Cal Horner wrote: It just seems funny that a simple control that has become such a standard in the building of interfaces, should be hidden within a complex object. In what sense are groups (as described by Ken) complex? Of course, you can nest groups, which can

Re: Disable menu item

2007-03-28 Thread Mark Smith
Charles, you might find it a bit more manageable to check the fields in a repeat loop: put false into resultsExist repeat for each item i in vmiFld,nvmiFld,cmiFld,vdriFld,aciFld,sriFld,friFld,ariFld,liFld if fld i of card index is not empty then put true into resultsExist end repeat if

Re: Disable menu item

2007-03-28 Thread Mark Smith
Sorry, that should have been: put false into resultsExist repeat for each item i in vmiFld,nvmiFld,cmiFld,vdriFld,aciFld,sriFld,friFld,ariFld,liFld if fld i of card index is not empty then put true into resultsExist end repeat if resultsExist AND the short name of this cd is index then

Re: Installing a Standalone on Windows

2007-03-26 Thread Mark Smith
I think InnoSetup et al. is for more complex apps that need to place various files in different places (these exist on Macs, too). For a simple app without that requirement, just dragging and clicking as you describe should work fine. Best, Mark On 26 Mar 2007, at 20:45, Joe Lewis

Re: Enabling a Menu

2007-03-25 Thread Mark Smith
Joe, you can also enable btn Edit. and disable btn Edit... Best, Mark On 25 Mar 2007, at 08:17, Joe Lewis Wilkins wrote: Well, I figured it out. You don't set enable to true. You set disabled to false. Thanks, anyway, Joe Wilkins On Mar 24, 2007, at 11:11 PM, Joe Lewis Wilkins

Re: Trouble with script

2007-03-25 Thread Mark Smith
Charles, if you use 'binfile' to read and write the file, it should remain a .rtf. So put URL (binfile: tFileName) into tRtfData modify the data... put tRtfData into URL (binfile: tFileName) Best, Mark On 26 Mar 2007, at 00:46, Charles Szasz wrote: Thanks to Eric and everybody else,

Re: multicore and true threading

2007-03-24 Thread Mark Smith
repeat forever if the mouse is down then exit repeat do stuff end repeat best, Mark On 24 Mar 2007, at 21:42, Viktoras Didziulis wrote: And a practical question - how to stop a long loop with a single click of a button ? I tried on mouseclick exit to top end mouseclick without any

Re: Another Export Snapshot Problem

2007-03-20 Thread Mark Smith
Shouldn't you be using relative points for the rect? From the docs (2.8) :If a window, stack or object is specified, the rectangle is given in relative (window) coordinates; otherwise, it is given in absolute coordinates. So: put the windowID of this stack into tWindowID put the rect of

Re: Memory Leak on export png????

2007-03-20 Thread Mark Smith
on mouseUp set the directory to /Users/marksmith/Desktop/xpics/ repeat with x = 1 to 1000 if the mouse is down then exit to top end if put x .png into tDest set the backgroundColor of grp counter to any item of red,blue set the backgroundColor of fld counter to any

Re: Memory Leak on export png????

2007-03-20 Thread Mark Smith
Dave, as I said, it's now working as you would hope, and I can't reproduce the problem. Just out of interest, in view of what was happening here before, have you tried putting x= x into fld counter, rather than just x? Best, Mark On 20 Mar 2007, at 16:05, Dave wrote: This is the kind

Re: Memory Leak on export png????

2007-03-20 Thread Mark Smith
Images At this point the system becomes unusable and RunRev will either quit itself or you will have to quit or force quit. Thanks a lot All the Best Dave On 20 Mar 2007, at 16:20, Mark Smith wrote: Dave, as I said, it's now working as you would hope, and I can't reproduce the problem. Just

Re: Moving a button

2007-03-19 Thread Mark Smith
Charles, the label of a button is a property of that button and does not have properties of it's own. I think what you need to test for is the showName property of the button itself. if the showName of button check3 is not true and the showName of button check6 is true then set the

Re: Bug with token chunk type?

2007-03-19 Thread Mark Smith
And put token 1 of s800s returns s800s The docs say: 'Use the token keyword to parse a Revolution statement.' (I assume that means a transcript statement, in the old parlance). So maybe these strings don't count as Revolution statements? Best, Mark On 20 Mar 2007, at 01:33,

Re: Revolution and Unicode

2007-03-18 Thread Mark Smith
Does get URL http://; put uniencode(it,UTF8) into fld blah not work? Best, Mark On 18 Mar 2007, at 04:19, kee nethery wrote: If this is hopeless using get URL http:// ... to grab utf8 and convert it to unicode it would be great to know that now. Thanks in advance, Kee Nethery

Re: Revolution and Unicode

2007-03-18 Thread Mark Smith
I meant to write set the unicodeText of fld blah to uniencode(it,UTF8) although I wonder if the page content also needs to be urlDecoded? Best, Mark On 18 Mar 2007, at 13:53, kee nethery wrote: On Mar 18, 2007, at 5:09 AM, Mark Smith wrote: Does get URL http://; put uniencode

Re: label filed properties

2007-03-18 Thread Mark Smith
Matthias, if you haven't named the label fields, then this should work: repeat with n = 1 to the number of fields in this card if label is not in the name of fld n of this card then put empty into fld n of this card end repeat best, Mark On 18 Mar 2007, at 16:51, [EMAIL PROTECTED]

Re: Export Snapshot question

2007-03-16 Thread Mark Smith
Just FYI, PPM is a very simple non-compressed format which can be binary ( filesize about that of TIFF) or ASCII text (file size several times bigger). http://netpbm.sourceforge.net/doc/ppm.html Best, Mark On 16 Mar 2007, at 17:43, Dave wrote: Thanks Scott, this for TV broadcast

Re: OK to pass big data in 'the result'?

2007-03-15 Thread Mark Smith
If the data is really big (which i guess is relative to how much RAM you have), then you're duplicating it, which could be quite inefficient ie. noticeably slow. Unless there's some other reason not to, I might do on processRecords repeat for each line tLine in the uBigList of stack XYZ

Re: concatenating with the ampersand

2007-03-11 Thread Mark Smith
On 11 Mar 2007, at 22:59, Stephen Barncard wrote: I would use the term 'parentheses'get shmengie(200+56) not 'brackets'. Well, to be pedantic, parentheses refers to any kind of brackets, while brackets usually means round brackets for Brits and square brackets for North

Re: Bluetooth physiological data acquisition

2007-03-09 Thread Mark Smith
I think I would have script locals to hold the names of source and destination files, and then simply write to the destination file each time new data is read, closing it only when finished: local sSourceFile local sDestFile on run open file sDestFile for update nextUpdate end run on

Re: Sorting text

2007-03-07 Thread Mark Smith
Greg, you can certainly sort items, but what an item is depends on what the global property the itemDelimiter is (it defaults to comma). So if you want to sort the words in a container, you might try set the itemDelimiter to space sort items of tContainer You can sort lines and items, but I

Re: Moving a File

2007-03-07 Thread Mark Smith
Well, not to belabour the point (much), but since it's quite clear from the docs that the rename command can move a file to a new location, it seems pretty reasonable to expect that a developer would consider checking for the existence of a similarly named file in the target location and

Re: BinaryDecode

2007-03-06 Thread Mark Smith
Brent, you need to use the base64Decode function: put base64Decode(tData) into tBinaryData then the binaryDecode functions should do what you need. Best, Mark On 6 Mar 2007, at 01:35, Brent Anderson wrote: Correction: The base 64 version of the data is this:

Re: XP and Vista question

2007-03-02 Thread Mark Smith
On 3 Mar 2007, at 00:09, Richard Gaskin wrote: Here's the part I don't understand, though: Steve Jobs has publicly said he would prefer to ditch the DRM, but that Apple does it because the record companies insist on it. Why doesn't the EU take the record labels to court? Because the

Re: Umlaut

2007-02-28 Thread Mark Smith
Looking through the Character Palette on my Mac, I see a character called Combining Diaresis which seems to be some kind of 'standalone' umlaut. It has the Unicode value '0308' and the UTF8 value of 'CC88'. According to Wikipedia In Unicode, diacritics are always added after the main

Re: Umlaut

2007-02-28 Thread Mark Smith
Franz, I think the problem here is that the particular character/ diacritic that we want (n + trema) does not seem to occur as a 'precomposed' character (unlike n + tilde) - and although it can be represented in unicode as a combination of the character followed by the code for the trema,

Re: How to use XFCNs XCMDs in Rev?

2007-02-27 Thread Mark Smith
I'm pretty sure that they'd only work under Mac OS 9. Best, Mark On 27 Feb 2007, at 15:52, Joe Lewis Wilkins wrote: Dave, while we're at it, and I know this has been asked and answered a kajillion times: is there any chance that HC XCMDs and XFCNs will work with Rev? They were created

Re: If statements vs case

2007-02-26 Thread Mark Smith
I just ran a very simple benchmark test, which suggests that if/then goes about 20% faster than switch/case. Best, Mark On 26 Feb 2007, at 02:33, Hershel Fisch wrote: On 2/25/07 9:21 PM, Jim Ault [EMAIL PROTECTED] wrote: How about speed? Hershel On 2/25/07 6:16 PM, Hershel Fisch [EMAIL

Re: If statements vs case

2007-02-26 Thread Mark Smith
Richard, I bow to your more extensive test. All I did was a simple five-way switch/if (based on a random input) that actually did nothing, so I think your test is probably more useful. Best, Mark On 26 Feb 2007, at 17:35, Richard Gaskin wrote: Mark Smith wrote: I just ran a very simple

Re: Complementary RGB Color Pairs

2007-02-25 Thread Mark Smith
Stephen, in RGB, the values below are yellow and blue. I have a distant memory that complementary colors are opposites on a color wheel - for each primary color, a mixture of the other two, so if primary color = blue then complementary color = red + green = yellow. Do you get the effect you

Re: Performance Problem with large file

2007-02-24 Thread Mark Smith
Accessing fields is generally much slower than using variables, so I'd do something like: put fld txtInput into tInput repeat for each line curLine in tInput I'm assuming that the function xmlWriteNewInmateRecord() writes to the hidden field xmlOutput. Again, I'd write all the xml to a

Re: ANN: Vista Gotchas You Should Know About

2007-02-23 Thread Mark Smith
Developers don't generally make computers, just as brake-pad manufacturers don't generally build cars. Best, Mark On 23 Feb 2007, at 06:12, Joe Lewis Wilkins wrote: After all, Cadillac was profitable and viable for years and years by just providing the best available car at a premium

Re: Repeat bug???

2007-02-22 Thread Mark Smith
I've encountered this one, and it seems like a bug to me, though maybe there's an argument that it's correct behaviour. My workaround is to always subtract the step value -1 from the limit: repeat with itemIndex = 1 to the number of items in valueList - 3 step 4 Best, Mark On 22 Feb 2007,

UTF8 to unicode

2007-02-21 Thread Mark Smith
Dear all, in a current project, I have to deal with many strings, some of which are iso-8559-1, and some of which are various flavours of unicode. I've taken the good advice of the list and I store all of these strings as UTF8 for internal use, but now I have another problem. The spec for

Re: Where is stack?

2007-02-20 Thread Mark Smith
Bill, this seems to work: on mouseUp answer folder Select destination folder for backup: if it is not Cancel then revCopyFile the effective fileName of this stack, it end if end mouseUp Best, Mark On 20 Feb 2007, at 06:49, Bill Vlahos wrote: I want to be able to have the user

Re: Where is stack?

2007-02-20 Thread Mark Smith
Good point. You could always put save this stack in the handler so the file on disk is the same as the file in memory, but then you wouldn't have the flexibility of your approach. Best, Mark On 20 Feb 2007, at 10:36, Eric Chatonet wrote: Hi Bill, Actually, if you duplicate the file on

Re: Old bug still in Rev 2.8 :( Chapter 3

2007-02-20 Thread Mark Smith
Joe, I believe the startup handler is only sent to a stack when it's the mainstack in a standalone. I could be wrong about this, but it seems to be borne out by my experience (and yours, from the sound of it). My solution is to have startup call an initApp handler that does initialising

Re: Storing arrays in a custom property

2007-02-18 Thread Mark Smith
Ian, to store an array, you need to set a customPropertySet: set the customProperties[uSolutionList] of this stack to tSolnA then, to access it put the uSolutionList[key] of this stack into tVar set the uSolutionList[key] of this stack to tVar Best, Mark On 18 Feb 2007, at 15:14, Ian

Re: Storing arrays in a custom property

2007-02-18 Thread Mark Smith
Ian, if you've managed to set the customPropertySet uSolutionList to your array, then you don't need to make it the current set in order to get at it. so to create it: set the customProperties[uSolutionList] of this stack to someArray and to get and set the individual elements: get the

Re: Storing arrays in a custom property

2007-02-18 Thread Mark Smith
I use it all the time...but then I stink :) best, Mark On 19 Feb 2007, at 00:02, Richard Gaskin wrote: Mark Smith wrote: set the customProperties[uSolutionList] of this stack to someArray Is it just me or is that the funkiest syntax in the language? Don't get me wrong: it's certainly

Re: Converting sounds to MP3

2007-02-16 Thread Mark Smith
You're right, of course, and iTunes is mainly what I use, it's just that I've had QtAmateur fro a while and thought I had missed something. Incidentally, I found this: http://www.thalictrum.com/index.php?pageid=6artid=6 which installs the Lame mp3 encoder, pre-compiled and ready to go on

Re: SFW conversion

2007-02-15 Thread Mark Smith
Oh, cool. I was wondering if I was missing something, even though I've had qtAmateur for quite a while. Best, Mark On 15 Feb 2007, at 23:45, Thomas McCarthy wrote: Mark, My mistake. I was converting from mp3 to wav in order to make sound clips. To go the other way, converting batch to

Re: SFW conversion

2007-02-14 Thread Mark Smith
How do you get QTamateur to convert to mp3? best, Mark On 14 Feb 2007, at 23:43, Thomas McCarthy wrote: I'm not sure this will do flash, but it will do a lot. I've used it for a while, mainly to convert various audio files to mp3. It has a batch convert function that made it a breeze.

Re: How to Display/Print a Hex Number???

2007-02-13 Thread Mark Smith
If it's a revolution number, you can use put baseConvert(myStatus, 10,16), if it's a 4 byte binary value, you can put empty into tHexStatus get binaryDecode(H*, myStatus, tHexStatus) and tHexStatus should now contain the value as as hex chars. Hope this helps, Best, Mark On 13 Feb 2007, at

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

2007-02-13 Thread Mark Smith
displayed as 0x0100. e.g. it's a Big/Little Endian issue. Is there a standard way to handle this for both platforms??? Thanks a lot for your help. All the Best Dave On 13 Feb 2007, at 11:23, Mark Smith wrote: If it's a revolution number, you can use put baseConvert(myStatus, 10,16

Re: Binary Data???

2007-02-13 Thread Mark Smith
Dave, could you explain in what you're doing - to my non-C eyes it looks like your'e simply building a 512 * 512 list of bytes of alternating value 0 and 128. If it's any help, you can do this with put numToChar(0) numToChar (128) after tBuffer the required number of times, but I'm

Re: Dollar Format

2007-02-12 Thread Mark Smith
Jeff, try the format function put format(%1.2f,NBalance) into NBalance The numberFormat is a system property, and you can't set it for one variable. It persists (I think) until the current handler finishes. In any case, it simply limits the decimal places, and will not put the trailing

Re: Buttonclick deselects text

2007-02-10 Thread Mark Smith
Kresten, you put this in the card script: local tSelText on mouseEnter if button is in the target then put theSelectedText into tSelText end mouseEnter function getSelText return tSelText end getSelText and in the relevant button scripts: on mouseUp doSomethingWith getSelText() end

Re: Rev scripting preferences

2007-02-09 Thread Mark Smith
And me a flat-earth believer! I've always thought of the messages going away from me (the user). I guess I'm not alone in this, since we have front and back scripts, but this would be hard to represent in a diagram, except from a side view, perhaps. Mark On 9 Feb 2007, at 05:57, Mark

Re: Memory Problem?

2007-02-06 Thread Mark Smith
to disc,though, not partition to partition. I'd imagine it also depends on the particular computer and discs. best, Mark Smith On 7 Feb 2007, at 00:05, Peter Reid wrote: Hello Mark, Thanks for the rapid and detailed response. I'll have a play around with the things you suggest. However, I

Re: just noticed another potential bug

2007-02-05 Thread Mark Smith
It accused me of the same crime - I, also, was innocent. I fought the QA Center, and the QA Center won. :( Mark On 5 Feb 2007, at 17:34, Klaus Major wrote: I was accused by the QualtityCenter to have tried to change the Hardware component from Mac to all, which I did not, of course

Unicode Question

2007-02-04 Thread Mark Smith
Hi, all. I'm finally updating my id3 tag library (it will write as well as read), and I want to handle unicode issues correctly. My question is : when using any library that is going to give you back some text as the result of a function, how is it best to indicate whether it is unicode or

Re: Unicode Question

2007-02-04 Thread Mark Smith
David, thanks for the reply - it's actually both questions. I like the style of interface using set/getprops, and will probably do exactly what you suggest. However, the unicode problem is that in an ID3 tag, text information (that the library will extract from the tag) may be encoded as

Re: Unicode Question

2007-02-04 Thread Mark Smith
That's the point - I don't want the user to have to guess. The library 'knows', because the encoding information is in the id3 tag it's just read, what I'm wondering about is simplest wasy to let the user of the library know. So if the 'client' app asks the library for the title of a file,

Re: Unicode Question

2007-02-04 Thread Mark Smith
at http://www.salery.biz Op 4-feb-2007, om 18:22 heeft Mark Smith het volgende geschreven: That's the point - I don't want the user to have to guess. The library 'knows', because the encoding information is in the id3 tag it's just read, what I'm wondering about is simplest wasy to let

Re: Window Options

2007-02-04 Thread Mark Smith
You could try pulling the theme_support bundles out of the OS X standalone bundle. The effect (when the standalone builder was forgetting to include those files) was an OS 9 look and feel on OS X. Best, Mark On 4 Feb 2007, at 22:01, Joe Lewis Wilkins wrote: Hi Mark, Thanks. I had

Re: Once upon a time?

2007-02-03 Thread Mark Smith
The first (wordOffset), by a factor of 100 or so, on my machine. Best, Mark On 3 Feb 2007, at 13:24, David Bovill wrote: Thanks guys! Now I wonder which will be fastest: get wordOffset(word1, tText) if (it 0) AND (it = (wordOffset(word2, tText) - 1)) then or put space into P put

Re: Endless Looping Chapter 2

2007-02-03 Thread Mark Smith
Joe, allowInterrupts is a global (and persistent, I think) property of the IDE (which defaults to true, in 2.7.4 at least). As long is it is set to true you should be able to interrupt a runaway loop by holding command - period (Mac) or control - period (Windows). There was a version

Re: In standalone, closing a modal closes everything

2007-01-31 Thread Mark Smith
Mark, the closeStack message is sent by the engine when a stack is closed (a sort of notification that the user has closed a stack), and like other messages, will pass up the message path unless trapped. so if you wanted to use it to make sure the standalone actually quits when the

Quartam PDF lib

2007-01-31 Thread Mark Smith
Just a quick note to everyone about Jan Schenkels PDF4Rev library (currently in beta -- see http://www.quartam.com). It's simply excellent. If you've been wondering about ways to generate pdfs from Rev, this is the answer. I've been playing around with it for a couple of days, now, and of

Re: clearing a field through a variable holding the name of the field

2007-01-31 Thread Mark Smith
Try set the text of gFirstGuess to empty. Best, Mark On 31 Jan 2007, at 20:54, Curt Ford wrote: I've got a routine with a number of fields that the user can click on. I keep track of which ones they've clicked on with a mouseUp handler that includes put the target into gFirstGuess At

Re: Format

2007-01-28 Thread Mark Smith
I don't think format will do this, but it shouldn't be too hard to write a function to do it, if you're sure the numbers will be consistently 10 digits. function formatAsPhoneNumber pNumber put ( char 1 to 3 of pNumber ) space into tFormattedNumber put char 4 to 6 of pNumber - char

Re: will libURL accept chunked responses?

2007-01-28 Thread Mark Smith
Andre, this is from a correspondence with Dave Cragg a while ago: A quick answer. (I have to go out.) But, yes, liburl does handle chunked transfer-encoding. It's commonly used, especially by CGI and other non-static html responses. Best, Mark On 28 Jan 2007, at 16:20, Andre Garzia

Re: How do I query 'What object is on top?'

2007-01-22 Thread Mark Smith
Not tested but should work: get the name of control (the number of controls of this cd) of this cd Best, Mark On 22 Jan 2007, at 17:11, Mark Powell wrote: Can't find this anywhere in docs or archives. How can I determine what object is occupying the top layer of a card at a given moment?

Re: html to pure text

2007-01-21 Thread Mark Smith
Well, assuming that you want to display the text, if your HTML in a variable someHtml then you can set the htmlText of fld someField to someHtml. Best, Mark On 21 Jan 2007, at 20:26, R. Hillen wrote: Hello list, I suspect, there is a very simple solution, which I dont´t find: How to

Re: calling a remote function..

2007-01-19 Thread Mark Smith
Chipp, this seems to work for me: answer value(foo( param1 comma param2 ),btn bar) Though you seem to have answer in both button scripts... Best, Mark On 19 Jan 2007, at 12:55, Chipp Walters wrote: Trying to call function 'foo(param1,param2)' in button bar from somewhere outside the

Re: calling a remote function..

2007-01-19 Thread Mark Smith
2007, at 14:35, Chipp Walters wrote: Mark, That's close, but still no cigar. Because Param1 has a comma in it, it thinks it's two params. IOW, the answer is 1 cr 000. The soldiers is left behind :-( Any other ideas? -Chipp On 1/19/07, Mark Smith [EMAIL PROTECTED] wrote: Chipp

Re: calling a remote function..

2007-01-19 Thread Mark Smith
This is so simple and obvious that only a true genius would a have thought of it! I don't even accept that it's a hack. Thanks for this, Jacque, I honestly wonder how I get my head so far up my , sometimes. :) Best, Mark On 19 Jan 2007, at 17:58, J. Landman Gay wrote: The cheap

Re: Probably a silly question about 'find'

2007-01-18 Thread Mark Smith
Peter, in the specific case here, you could do this find 4 tab Best, Mark On 18 Jan 2007, at 09:32, Peter Alcibiades wrote: Feels like a very silly question, but it is stumping me. How do I use 'find' to find '4' when it occurs by itself but not 4 when it occurs in '4.1', when searching

Re: Error in textFont reporting?

2007-01-16 Thread Mark Smith
A workaround (assuming that the textfont is never actually going to be mixed) might be to get the textFont of char 1 of the selectedText. Best, Mark On 16 Jan 2007, at 14:34, Bob Warren wrote: on mouseMove if the selectedText is not empty then put the textFont of the selectedText into

Re: 'play' vs. 'start' ?

2007-01-16 Thread Mark Smith
I believe these are currently in beta. 'Neoprene' is a property that can be set in particularly loud stacks, and will help to insulate adjacent stacks from interference. 'Structural Engineer' is a smart scripting agent (think Microsoft Bob) that will help us to avoid programming errors

Re: image overlay

2007-01-15 Thread Mark Smith
Viktoras, check out the 'import snapshot' command. Best, Mark On 15 Jan 2007, at 11:58, Viktoras Didziulis wrote: Is there a simple way to make an overlay of 2 or more different sized images into a single image ? What I am seeking for is overlaying a small map image on a larger one,

Re: Visible Problems

2007-01-13 Thread Mark Smith
Could it be that something is in front of the graphics (a background graphic or field, maybe)? If so, setting the layer of the graphics to top should do it. One other thought is that in very dense line graphics, if the antialiased of them is set to true, they can sometimes antialias

Re: Properties not locking in

2007-01-13 Thread Mark Smith
You could simply put a fixed wait in, say 10 or 20 millisecs (not enough fro the user to notice, but enough for the player to sort itself out, you'll have to experiment to see what works well), or do a send in time that keeps going until the player is ready: on checkPlayer wait 10

Re: iPhone

2007-01-11 Thread Mark Smith
Mr. Jobs explains this in his key-note by saying that since it takes months to get all the necessary public licences (a fairly public process), they decided to announce it themselves, rather than effectively let the FCC (or whoever it is) do it for them. Or maybe he just couldn't wait :)

<    2   3   4   5   6   7   8   9   10   11   >