RE: Combobox filled from database

2009-05-11 Thread Josep
Hi, I want that the list of options will be showed as combobox. The use if for example to select the currency by name, but in the database the currency is stored as one number, or select one category name but in the database is stored as number. I think that can store as custom property the

RE: Combobox filled from database

2009-05-11 Thread Josep
Well, I found that with lineoffset (Choice 1, button cb_manufacturer) I obtain the line where the value is. Great... but now I need to select this line... Salut, Josep -- View this message in context: http://www.nabble.com/Combobox-filled-from-database-tp23474905p23478253.html Sent from the

Re: Repeat Process To Check Contents of File on HTTP Server?

2009-05-11 Thread Phil Davis
Hi John, I'm assuming the following things are true: * everyone is using Windows, or at least all the kids * all the computers have access to the same shared hard disk, whether it's a file server or one person's computer. * there's a 'GoodLinks' folder on the shared disk where

Re: Combobox filled from database

2009-05-11 Thread Bill Marriott
The predefined options of a combo box = the text of btn combo The currently specified value of a combo box = the label of btn combo Please note that a combo box by definition allows the specification of values that are not pre-defined, and would seem to be a poor choice for an indexed value

Re: On-Rev links

2009-05-11 Thread Bill Marriott
Why was it less than satisfactory? Just a wild guess here that if you cannot send email, your ISP (Orange) is blocking port 25 and you should instead use 587. I noted, though, that the mail hosting was less than satisfactory -- but I am not sure whether it's on-rev's fault, or Orange's fault!

Re: Combobox filled from database

2009-05-11 Thread Josep
Yes, I better with a button option but how can limit the visible items when click? I need the combo presentation so in other cases exist many values... Salut, Josep -- View this message in context: http://www.nabble.com/Combobox-filled-from-database-tp23474905p23480818.html Sent from the

sort cards dateTime by field day dont works

2009-05-11 Thread Reinhold Venzl-Schubert
Hi! I have a stack work with 14 cards. Each has a field day. I create a new card with the script: create cd put the short system date into fld day Then I want to sort the card by field day with the script sort cds of stack work dateTime by fld day But I failed. My cards are orderd

Re: Combobox filled from database

2009-05-11 Thread Bill Marriott
Hi Josep, Yes, I better with a button option but how can limit the visible items when click? I need the combo presentation so in other cases exist many values... I am not sure I understand this issue? The syntax for working with a combo box and option menu are identical. The only

Re: sort cards dateTime by field day dont works

2009-05-11 Thread kl...@major.on-rev.com
Hi Reinhold, Hi! I have a stack work with 14 cards. Each has a field day. I create a new card with the script: create cd put the short system date into fld day Then I want to sort the card by field day with the script sort cds of stack work dateTime by fld day But I failed. My cards

Re: sort cards dateTime by field day dont works

2009-05-11 Thread Jan Schenkel
--- On Mon, 5/11/09, Reinhold Venzl-Schubert r.venzl-schub...@macbay.de wrote: From: Reinhold Venzl-Schubert r.venzl-schub...@macbay.de Subject: sort cards dateTime by field day dont works To: use-revolution@lists.runrev.com Date: Monday, May 11, 2009, 3:33 AM Hi! I have a stack work

Re: App on Linux - really slow... any ideas why?

2009-05-11 Thread Luis
Hiya, Erm... GLX2 on Linux?! Did I miss a post/update? Cheers, Luis. On 9 May 2009, at 17:53, Mark Wieder wrote: Peter- Wednesday, May 6, 2009, 7:58:58 AM, you wrote: Oh dear what a dispiriting thread. I haven't experienced all this stuff, Thanks to this thread I've gone back and

Re: Combobox filled from database

2009-05-11 Thread Josep
Yes, the syntax is the same, but how combo or option show the values when click is different. In combo you have a scrollbar to move between the values and with option all the values are showed.. Bill Marriott wrote: Hi Josep, Yes, I better with a button option but how can limit the

RE: Combobox filled from database

2009-05-11 Thread Jim Bufalini
Hi Joseph, Put the value a into a combo box. Put the corresponding value b into a custom property of the combo box. Let's say you call this custom property uValueB Then on menuPick do something like: Get line (the menuHistory of me) of the uValueB of me Aloha from Hawaii Jim Bufalini Hi

Re: sort cards dateTime by field day dont works

2009-05-11 Thread Reinhold Venzl-Schubert
Hi Klaus, What a stupid mistake ;-) The engine is english, so you have to tell her that you are not :-D ... ## Force the engine to use your (local german) format for your dateitem sort: set the usesystemdate to true sort cds of stack work dateTime by fld day ... Thanks from old

RE: Combobox filled from database

2009-05-11 Thread Jim Bufalini
When I saw my own response come through I saw a syntax error. ;-) Leave out the quotes around uValueB. Also, use an option menu instead of a combo box. Aloha from Hawaii, Jim bufalini Hi Joseph, Put the value a into a combo box. Put the corresponding value b into a custom property of the

Just one more question for Richmond re globals

2009-05-11 Thread Graham Samuel
I can't help flogging this moribund nag, because I did not understand Richmond's response to my question. Do you NEVER use globals, Richmond? I think that would make you pretty unusual, unless you are completely sold on custom props... Just curious really. Graham Richmond Mathewson

Re: Preferred Multi-Platform Development Method

2009-05-11 Thread David Beck
Devin and Derrik, Thanks very much for sharing your expertise in this area! I'll likely write global install-time preferences on the Mac to a folder in: /Library/Application Support/ And use a forking method similar to what Richard and Derrik shared. David Beck Rotunda Software

revOnLine upLoad problem

2009-05-11 Thread DunbarX
It seems I can upload any stack I wish to, except one. I tried several others, they went in fine, and I deleted them. The one I want to upload, though, just will not go. I am led to random, already uploaded stacks by others, instead of the open input arena where one writes tags, instructions,

interesting things hiding in rev

2009-05-11 Thread Shao Sean
been busy snooping around rev and noticed some undocumented features these show up in the commandNames: _internal rsadecrypt rsaencrypt rsasign rsaverify We know that _internal is currently used for script colourization in the new engine and can only be used in the IDE (does not work in

Re: Just one more question for Richmond re globals

2009-05-11 Thread Richmond Mathewson
Ahh. Now that is not as quite as simple as it looks. I never use globals for the simple reason that my programs are for teaching English as a Foreign Language and, therefore, not highly mathematical. Most of my programs consist of dragging small images around, typing text into fields,

Re: accessing https URLS with basic authentification

2009-05-11 Thread Ben Rubinstein
On 8/5/09 12:42, Paul Williams wrote: Don't forget only Rev Enterprise supports https. On 8/5/09 12:24, Bernard Devlin wrote: Basic Auth should still work with https. I think the problem might be to do with the verification of the SSL certificate. Try running this before you make your

Re: Math issue, isn't it?

2009-05-11 Thread Bob Sneidar
I think we are mincing words here. It's a simple matter of changing the way the math function works. It should be doing math on the displayed value not the stored value, because that is what a human being who doesn't know about processor math errors would expect. And by the way I think

Re: Combobox filled from database

2009-05-11 Thread Bill Marriott
Only on Mac. Windows shows a scrollbar for both So if you use the built-in controls you'll have to choose between the untidy screen presentation of a long list, or the potential for someone to enter arbitrary data into the box that is not part of the index. Either way the two script lines

Re: interesting things hiding in rev

2009-05-11 Thread Mark Wieder
S- Monday, May 11, 2009, 8:30:41 AM, you wrote: watchedvariables Anyone have any info about the rest? The watchedvariables is a list of variable contexts (one per line) that you would like to trigger breakpoints. The format is context,handler,variable,value Probably not useful unless

Re: Math issue, isn't it?

2009-05-11 Thread Colin Holgate
On May 11, 2009, at 12:11 PM, Bob Sneidar wrote: I think we are mincing words here. It's a simple matter of changing the way the math function works. I understand that it's an oddity that the computer doesn't quite see how simple the numbers are, but that happens for humans too. Take a

Re: Math issue, isn't it?

2009-05-11 Thread Brian Yennie
Agree on the mathPrecision value. While it is true that floating point values are an issue in any programming language, Rev should NOT be failing on simple comparisons with two decimal places. Computers are limited in floating point math, but they are perfectly capable of handling 2

Re: accessing https URLS with basic authentification

2009-05-11 Thread Bernard Devlin
http://www.lacscentre.com/liburl/liburldoc.html#libUrlSetSSLVerification For some strange reason there is additional libURL documentation that is not included with Rev. Bernard On Mon, May 11, 2009 at 5:05 PM, Ben Rubinstein b...@cogapp.com wrote: I've tried Bernard's suggestion of

Re: accessing https URLS with basic authentification

2009-05-11 Thread David Bovill
2009/5/11 Ben Rubinstein b...@cogapp.com Any insights gratefully received, None I can think of Ben - had a similar problem trying to debug an https connection. The only thing I can think of is changing HTTP Agent in the headers - it is the sort of thing that https sites do block. AFAIK -

Re: Math issue, isn't it?

2009-05-11 Thread Bob Sneidar
I was thinking of a new property called MathPrecision or something. Set the mathprecision to -2 would round to 2 decimal places for the result of any math equasion. Set the mathprecision to 2 would round to the nearest 100. The default could be -9 in which case the prior error in floating

Quoted or unquoted literals

2009-05-11 Thread J. Landman Gay
I was curious about the time difference between quoted and unquoted literals, which we were discussing in another thread. Though our tests seemed to show there is no significant difference, conceptually it didn't make any sense to me. So I asked one of the engineers at RR about it and got some

Re: Quoted or unquoted literals

2009-05-11 Thread Devin Asay
On May 11, 2009, at 12:38 PM, J. Landman Gay wrote: I was curious about the time difference between quoted and unquoted literals, which we were discussing in another thread. Though our tests seemed to show there is no significant difference, conceptually it didn't make any sense to me. So I

Re: Combobox filled from database

2009-05-11 Thread J. Landman Gay
Josep wrote: Yes, the syntax is the same, but how combo or option show the values when click is different. In combo you have a scrollbar to move between the values and with option all the values are showed.. I agree with Bill that a combo box isn't the best choice for this, but you could do

[OT] GIMP paint studio

2009-05-11 Thread Richmond Mathewson
Those of you who cannot afford Photoshop, have 'funny feelings' about proprietary software, don't do either Macintosh or Windows, can afford Photoshop but would rather spend the money on Runtime Revolution :) (err, why would you spend an awful lot of money on something when there is something

Re: Math issue, isn't it?

2009-05-11 Thread Jan Schenkel
--- On Mon, 5/11/09, Bob Sneidar b...@twft.com wrote: From: Bob Sneidar b...@twft.com Subject: Re: Math issue, isn't it? To: How to use Revolution use-revolution@lists.runrev.com Date: Monday, May 11, 2009, 10:21 AM I was thinking of a new property called MathPrecision or something. Set the

Re: Math issue, isn't it?

2009-05-11 Thread Colin Holgate
On May 11, 2009, at 3:40 PM, Jan Schenkel wrote: Scott Raney - the original developer of Metacard, the underlying engine for Revolution - opted for the better speed of CPU-native numbers, instead of the byte arithmetic algorithm as implemented in HyperCard While that is interesting,

Re: Quoted or unquoted literals

2009-05-11 Thread Bob Sneidar
Are you sure you are not from the planet Vulcan? ;-) Bob Sneidar IT Manager Logos Management Calvary Chapel CM On May 11, 2009, at 11:38 AM, J. Landman Gay wrote: I was curious about the time difference between quoted and unquoted literals, which we were discussing in another thread. Though

Re: Math issue, isn't it?

2009-05-11 Thread François Chaplais
Le 11 mai 09 à 22:09, Colin Holgate a écrit : On May 11, 2009, at 3:40 PM, Jan Schenkel wrote: Scott Raney - the original developer of Metacard, the underlying engine for Revolution - opted for the better speed of CPU-native numbers, instead of the byte arithmetic algorithm as

Re: Quoted or unquoted literals

2009-05-11 Thread J. Landman Gay
Bob Sneidar wrote: Are you sure you are not from the planet Vulcan? ;-) Shhh! You'll blow my cover. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution

Re: Quoted or unquoted literals

2009-05-11 Thread Paul Looney
Jacque, It is wonderful geek trivia! Seems like it has been a very long time since we've had a speed comparison like this on the list. I love them. Hope you get curious again, soon '-) Paul Looney ___ use-revolution mailing list

Re: Math issue, isn't it?

2009-05-11 Thread Mark Wieder
sigh I forgot that this thread comes up once a year or so as well. There should probably be a FAQ somewhere for questions like Why isn't Revolution open source? What's wrong with global variables? What does unquoted literal mean? Why can't computers do math? Why can't I say x = 3? -- -Mark

Re: Math issue, isn't it?

2009-05-11 Thread Bob Sneidar
Well it looks for all the world then, that in order to write any kind of accounting application in Revolution, one would have to write their own functions like newADD(), newSUBTRACT() and the like, which internally would use the value() function on every argument, as well as the result of

Re: revOnLine upLoad problem

2009-05-11 Thread J. Landman Gay
dunb...@aol.com wrote: It seems I can upload any stack I wish to, except one. I tried several others, they went in fine, and I deleted them. The one I want to upload, though, just will not go. I am led to random, already uploaded stacks by others, instead of the open input arena where one

Re: OT Re: Newbie... Strict Compilation mode

2009-05-11 Thread J. Landman Gay
Scott Rossi wrote: Recently, J. Landman Gay wrote: Personally I think we should next discuss the practice of putting little sticker labels on every single individual piece of fruit in the supermarket. If you really want to push my buttons, that'll do it. Dude: I saw a food-related program

Re: Math issue, isn't it?

2009-05-11 Thread J. Landman Gay
Mark Wieder wrote: sigh I forgot that this thread comes up once a year or so as well. There should probably be a FAQ somewhere for questions like Why isn't Revolution open source? What's wrong with global variables? What does unquoted literal mean? Why can't computers do math? Why can't I say

Re: Quoted or unquoted literals

2009-05-11 Thread J. Landman Gay
Paul Looney wrote: Seems like it has been a very long time since we've had a speed comparison like this on the list. You know what I miss? Remember those scripting competitions we used to have on the HC list? Someone would propose a challenge and everyone would jump in and write their best

Re: [OT] GIMP paint studio

2009-05-11 Thread Stephen Cox
Does the Gimp still require xwindows to run on the mac? Or did someone finally port it to run natively? On 5/11/09 3:17 PM, Richmond Mathewson richmondmathew...@gmail.com wrote: Those of you who cannot afford Photoshop, have 'funny feelings' about proprietary software, don't do either

Scripting competition

2009-05-11 Thread Mark Wieder
Jacque- Monday, May 11, 2009, 2:05:48 PM, you wrote: You know what I miss? Remember those scripting competitions we used to have on the HC list? Someone would propose a challenge and everyone would jump in and write their best shot at the most elegant solution. Those were fun. Thanks. I've

Re: Scripting competition

2009-05-11 Thread Colin Holgate
On May 11, 2009, at 5:27 PM, Mark Wieder wrote: ...Calculate the 211th Fibonacci number... That's so easy!: put item 2 of 3.1415926, 55835073295300465536628086585786672357234389, 2.718281828 ___ use-revolution mailing list

Re: Scripting competition

2009-05-11 Thread J. Landman Gay
Mark Wieder wrote: Jacque- Monday, May 11, 2009, 2:05:48 PM, you wrote: You know what I miss? Remember those scripting competitions we used to have on the HC list? Someone would propose a challenge and everyone would jump in and write their best shot at the most elegant solution. Those were

Re: Scripting competition

2009-05-11 Thread J. Landman Gay
Colin Holgate wrote: On May 11, 2009, at 5:27 PM, Mark Wieder wrote: ...Calculate the 211th Fibonacci number... That's so easy!: put item 2 of 3.1415926, 55835073295300465536628086585786672357234389, 2.718281828 ROTFL! But that's only 44 chars. Keep going. -- Jacqueline Landman Gay

Re: Scripting competition

2009-05-11 Thread Mark Wieder
Colin- No fair. I meant show your work. How do you get there in xtalk? -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Scripting competition

2009-05-11 Thread Alex Tweedly
Mark Wieder wrote: Thanks. I've been looking for an excuse for this. Here's one that came my way recently (and this gets to the heart of some of the recent math stuff as well): ...Calculate the 211th Fibonacci number... I don't suppose you'd be impressed by put url

Re: Scripting competition

2009-05-11 Thread Colin Holgate
On May 11, 2009, at 6:01 PM, Alex Tweedly wrote: put url http://www.mcs.surrey.ac.uk/Personal/R.Knott/Fibonacci/fibtable.html into temp replace numtochar(13) with CR in temp filter temp with *211*:* set the itemDel to : put word 1 of item 2 of temp That was exactly the thought I had, but

Re: revOnLine upLoad problem

2009-05-11 Thread DunbarX
Jacques. It's a good thing we have you around. All the criteria you mentioned are in fact so. Will try your suggestions. Thanks again... Craig In a message dated 5/11/09 4:54:56 PM, jac...@hyperactivesw.com writes: Which RevOnline? If it is the old one (before version 3.5), and you've

Re: Sending Email with attachment

2009-05-11 Thread Phil Davis
Hi Sarah, Would you be willing to share those scripts? A Rev-generated email with attachment is exactly what I need at the moment. Thanks - Phil Davis Sarah Reichelt wrote: On Mon, Apr 20, 2009 at 9:08 PM, BNig niggem...@uni-wh.de wrote: In /library/scripts/mail scripts/ there is a

Re: Scripting competition

2009-05-11 Thread DunbarX
Colin, besides being a superb programmer as well as a wise-ass, always promoted the idea that the competition emphasize providing a solution in the fewest lines. He usually won. Craig Newman ** Recession-proof vacation ideas. Find free things to do in the U.S.

Re: Scripting competition

2009-05-11 Thread Colin Holgate
On May 11, 2009, at 6:54 PM, dunb...@aol.com wrote: Colin, besides being a superb programmer as well as a wise-ass, always promoted the idea that the competition emphasize providing a solution in the fewest lines. He usually won. I might have a real go at this one, once I understand what

Re: Scripting competition

2009-05-11 Thread Sarah Reichelt
You know what I miss? Remember those scripting competitions we used to have on the HC list? Someone would propose a challenge and everyone would jump in and write their best shot at the most elegant solution. Those were fun. Thanks. I've been looking for an excuse for this. Here's one that

Re: Scripting competition

2009-05-11 Thread Colin Holgate
Ok, I feel sure there's some recursive way that would be harder to read, and fewer lines, but this'll do: on mouseUp ask How Big if it is not empty then answer fibber(it) end mouseUp function fibber n put 0 into n1 put 1 into n2 repeat with a = 2 to n put n1+n2 into t

Re: Scripting competition

2009-05-11 Thread Mark Wieder
Colin- ROTFL. Maybe I should have specified that you have to arrive at the correct answer... -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: Scripting competition

2009-05-11 Thread Mark Wieder
Sarah- Monday, May 11, 2009, 4:15:57 PM, you wrote: I want extra credit for doing it in on-rev :-) http://troz.on-rev.com/fib.irev BUT it isn't accurate :-( OK - you get extra credit for the on-rev thing. That's very cool. And bonus points for tripping over what the problem is. But the

Re: Scripting competition

2009-05-11 Thread Colin Holgate
My answers match the online table, unless you're thinkig of zero being the first entry, in which case Your f(n) = Real f(n-1). Sent from my iPhone On May 11, 2009, at 7:30 PM, Mark Wieder mwie...@ahsoftware.net wrote: Colin- ROTFL. Maybe I should have specified that you have to arrive at

Re: Scripting competition

2009-05-11 Thread Mark Wieder
Colin- Monday, May 11, 2009, 5:01:21 PM, you wrote: My answers match the online table, unless you're thinkig of zero being the first entry, in which case Your f(n) = Real f(n-1). Using your code and answering 211 I get 55835073295300463000 -- -Mark Wieder

Re: Combobox filled from database

2009-05-11 Thread Josep
Thanks to all. I will try it... Salut, Josep -- View this message in context: http://www.nabble.com/Combobox-filled-from-database-tp23474905p23494507.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution

Set Custom property in standalone?

2009-05-11 Thread Josep
Hi list, It's posible to write the value of a custom property in a standalone? I trying but I can't obtain any succes. I use set the cpDummy of stack s_main_stack to true This work in a standalone? Can I modify the custom properties? or only are read-only? Salut, Josep M -- View this message

Best way to get the path to one stack/standalone

2009-05-11 Thread Josep
Hi list, What is the best way to get the path where is it one stack or standalone? To open it from script? Salut, Josep -- View this message in context: http://www.nabble.com/Best-way-to-get-the-path-to-one-stack-standalone-tp23494588p23494588.html Sent from the Revolution - User mailing

Re: Scripting competition

2009-05-11 Thread Brian Yennie
Graciously submitted. I believe this will eventually fail, because it uses naive carry the 1 logic, but seems to match up through fib(300) at least. function fib n put 0 into thisNum put 1 into nextNum repeat n-1 put 0 into tCarry put empty into tSum if (length(nextNum)

Re: Scripting competition

2009-05-11 Thread Jerry J
From: Mark Wieder mwie...@ahsoftware.net ROTFL. Maybe I should have specified that you have to arrive at the correct answer... I get digests, so I bet somebody beat me to it. This gives the right answers, I think... into your message box: go URL http://jhjensen.com/calcFibs.rev; --Jerry J

Re: Set Custom property in standalone?

2009-05-11 Thread Phil Davis
I believe you can apply cp settings to the standalone and they will 'stick' until you close the app, then they go away. Phil Davis Josep wrote: Hi list, It's posible to write the value of a custom property in a standalone? I trying but I can't obtain any succes. I use set the cpDummy of

Re: Set Custom property in standalone?

2009-05-11 Thread Richard Gaskin
Josep wrote: It's posible to write the value of a custom property in a standalone? I trying but I can't obtain any succes. http://www.revjournal.com/tutorials/saving_data_in_revolution.html -- Richard Gaskin Fourth World Revolution training and consulting: http://www.fourthworld.com

Re: Best way to get the path to one stack/standalone

2009-05-11 Thread Sarah Reichelt
What is the best way to get the path where is it one stack or standalone? To open it from script? Here is my Mac function for getting the folder containing the app or the stack: -- get folder containing actual application -- or stack if in development mode -- function applicationFolder put

Re: Set Custom property in standalone?

2009-05-11 Thread J. Landman Gay
Josep wrote: Hi list, It's posible to write the value of a custom property in a standalone? I trying but I can't obtain any succes. I use set the cpDummy of stack s_main_stack to true This work in a standalone? Can I modify the custom properties? or only are read-only? You can create, set,

Re: Set Custom property in standalone?

2009-05-11 Thread Joe Lewis Wilkins
But if you saved the changed CPs to an external text file, could you not then load those values back to the CPs on startup of the standalone? Joe Wilkins On May 11, 2009, at 7:32 PM, J. Landman Gay wrote: Josep wrote: Hi list, It's posible to write the value of a custom property in a

Re: Set Custom property in standalone?

2009-05-11 Thread J. Landman Gay
Joe Lewis Wilkins wrote: But if you saved the changed CPs to an external text file, could you not then load those values back to the CPs on startup of the standalone? Oh yes. Certainly. You can save them anywhere outside the standaone, such as in a prefs file or wherever you want. You just

Re: Scripting competition

2009-05-11 Thread Sarah Reichelt
On Tue, May 12, 2009 at 11:17 AM, Brian Yennie bri...@qldlearning.com wrote: Graciously submitted. I believe this will eventually fail, because it uses naive carry the 1 logic, but seems to match up through fib(300) at least. function fib n  put 0 into thisNum  put 1 into nextNum  repeat

Re: Scripting competition

2009-05-11 Thread Sarah Reichelt
On Tue, May 12, 2009 at 11:35 AM, Jerry J j...@jhj.com wrote: From: Mark Wieder mwie...@ahsoftware.net ROTFL. Maybe I should have specified that you have to arrive at the correct answer... I get digests, so I bet somebody beat me to it. This gives the right answers, I think... into your

Re: Scripting competition

2009-05-11 Thread J. Landman Gay
Brian Yennie wrote: function fib n put 0 into thisNum put 1 into nextNum repeat n-1 put 0 into tCarry put empty into tSum if (length(nextNum) length(thisNum)) then put 0 before thisNum repeat with i=length(nextNum) down to 1 get ((char i of thisNum) + (char i

Scripting competition results

2009-05-11 Thread Mark Wieder
Well, the correct answer to what is the 211th Fibonacci number is, of course, 55835073295300465536628086585786672357234389. This is way beyond the limits of integer arithmetic on a poor little digital computer, and you will, as Sarah Reichelt pointed out, start to overflow the accumulators at

Re: Scripting competition

2009-05-11 Thread Scott Rossi
Now that folks have posted some solutions that apparently work, can someone explain why using a simple algorithm doesn't? function findFib pNum put 0 into num1 put 1 into num2 repeat pNum - 1 put num1 + num2 into num3 put num2 into num1 put num3 into num2 end repeat

Re: Math issue, isn't it?

2009-05-11 Thread Kay C Lan
On Tue, May 12, 2009 at 4:48 AM, Bob Sneidar b...@twft.com wrote: Well it looks for all the world then, that in order to write any kind of accounting application in Revolution, one would have to write their own functions... Not just Rev but as explained above, every application has to deal

Re: Scripting competition

2009-05-11 Thread Brian Yennie
In short, the number gets too big -- for example, if you are working with 32 bit integers, anything over 2^32 is out of range and will roll over or other such wonkiness. Now that folks have posted some solutions that apparently work, can someone explain why using a simple algorithm

Re: Math issue, isn't it?

2009-05-11 Thread Kay C Lan
On Tue, May 12, 2009 at 4:57 AM, J. Landman Gay jac...@hyperactivesw.comwrote: Why isn't Revolution open source? What's wrong with global variables? What does unquoted literal mean? Why can't computers do math? Why can't I say x = 3? And how come we can't use dot syntax? The HC refugee

Re: OT Re: Newbie... Strict Compilation mode (and fruit)

2009-05-11 Thread Kay C Lan
On Mon, May 11, 2009 at 1:17 AM, J. Landman Gay jac...@hyperactivesw.comwrote: Richmond Mathewson wrote: J. Landman Gay wrote: Personally I think we should next discuss the practice of putting little sticker labels on every single individual piece of fruit in the supermarket. If you really

Re: Math issue, isn't it?

2009-05-11 Thread Mick Collins
It seems to me that significant digits might be a better way to go than mathPrecision. Problem is in comparing something like 3^-6 - 3^-7 = 0 or 3^-26 - 3^-27 = 0. If that is what you intend you would likely have a problem with the latter being true, when for your purposes it isn't,

Re: OT Re: Newbie... Strict Compilation mode (and fruit)

2009-05-11 Thread Richmond Mathewson
I cannot restrain myself from pointing out that communism is as communism does; as Bulgaria is a living monument to communism and its knock-on effects. Why bother to invest a little extra money in an electrical generator, reduce the profit margin slightly, end up with a better end-product (so,