FnEval

Share your advanced PureBasic knowledge/code with the community.
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post by Pupil »

Perhaps they have a 3:rd party lib that interferes?
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Perhaps theres something corrupting when the code is cut and paste from the browser.

Is there any chance you could provide the file as a download?
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

The code is great and works.

So does RSet, however a while back in a project I ran into the same problem and ended up doing a workaround:

  ProcedureReturn Right(ReplaceString(RSet(str,sz)," ","0"),sz)

I thought maybe a later version of PB had dropped the fill character option and the docs hadn't caught up. But now I try again and ProcedureReturn RSet(str,sz,"0") works. Go figure.
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

I'm stumped too.

Tomorrow, I'll check the source file with a hex editor, perhaps something was injected by the cutting it from this forum and pasting it into the IDE, something that stumps the PB parser as well...
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
tejon
User
User
Posts: 29
Joined: Sat May 17, 2003 12:38 am

Post by tejon »

..
Last edited by tejon on Sat Apr 17, 2004 3:40 pm, edited 1 time in total.
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

Problem solved:

I found out, that installing PB versions over one another is a bad idea. I had a 3.8 demo and after registering, I installed 3.81 over the old demo 3.8. Bad idea!
After starting with a clean slate and installing PB anew, the problem went away.
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Post by Doobrey »

tejon wrote:i am stumped, it compiles just fine on my machine.
does anyone else have problems compiling the updated routine :?:
Do those of you having problems compiling this have the StringLibraryEx userlibrary installed?
Could be a clash in commands, as that lib has a command called RSet().
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Worked fine here.
Freshly installed 3.81 on WinXP w/SP2.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Post by TronDoc »

both the download version
and cutNpaste from forums
(although there are
differences in the code)
still works here v3.81
Joe
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Post by djes »

Doesn't work anymore with 4.30.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

wow... EPIC BUMP :o

... not surprizing for me a code for 3.81 doesn't work with 4.30

perhaps anyone kept the include updated thru the versions? Image
oh... and have a nice day.
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Post by djes »

Kaeru Gaman wrote:wow... EPIC BUMP :o

... not surprizing for me a code for 3.81 doesn't work with 4.30

perhaps anyone kept the include updated thru the versions? Image
I know, I found it in my hd and as it was interesting, I thought that maybe we have forgot it ;)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

A very useful library. I wouldn't mind tackling it.. if it wasn't written in assembly. :wink:
MikeB
Enthusiast
Enthusiast
Posts: 183
Joined: Sun Apr 27, 2003 8:39 pm
Location: Cornwall UK

Post by MikeB »

I don't know what's happening here, I have been using Eval() since downloading a version October 2005, but after copying and pasting this one I get "C.5ADA82B70B59E0000e-0017" returned whatever I enter. Even something simple like “debug eval("25*5")”.

The previous version works perfectly and has been used by me in my calculator program almost everyday for years, which is why I can't understand what's happening with this version.


EDIT while typing this it seems the answer has been supplied, V4.30
Mike.
(I'm never going to catch up with the improvements to this program)
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post by Little John »

Here on the German forum is something similar, which works for PB 4.30, does not contain ASM code, and can easily be extended.

Regards, Little John
Post Reply