Real Software Forums
http://forums.realsoftware.com/

RB Benchmark
http://forums.realsoftware.com/viewtopic.php?f=13&t=46953
Page 2 of 3

Author:  Djamel [ Tue Feb 19, 2013 7:02 am ]
Post subject:  Re: RB Benchmark

MonkeybreadSoftware wrote:
Maybe you try FormatMBS in our plugins?

for example:

dim d as Double = 123.4567890
listbox1.AddRow FormatMBS("%f", d)
listbox1.AddRow FormatMBS("%e", d)
listbox1.AddRow FormatMBS("%g", d)

listbox1.AddRow FormatMBS("%5.5f", d)
listbox1.AddRow FormatMBS("%5.5e", d)
listbox1.AddRow FormatMBS("%5.5g", d)

d = 0.000000123456
listbox1.AddRow FormatMBS("%f", d)
listbox1.AddRow FormatMBS("%e", d)
listbox1.AddRow FormatMBS("%g", d)

listbox1.AddRow FormatMBS("%5.5f", d)
listbox1.AddRow FormatMBS("%5.5e", d)
listbox1.AddRow FormatMBS("%5.5g", d)

gives this output:

123.456789
1.234568e+02
123.457
123.45679
1.23457e+02
123.46
0.000000
1.234560e-07
1.23456e-07
0.00000
1.23456e-07
1.2346e-07

so you can have various styles.

Greetings
Christian


How to get Plugins ?

Author:  Djamel [ Tue Feb 19, 2013 7:05 am ]
Post subject:  Re: RB Benchmark

MonkeybreadSoftware wrote:
Maybe you try FormatMBS in our plugins?


How to get plugins ?

Author:  MonkeybreadSoftware [ Tue Feb 19, 2013 7:17 am ]
Post subject:  Re: RB Benchmark

Download them on our page:

http://www.monkeybreadsoftware.de/realb ... gins.shtml

FormatMBS is in the util plugin.

Greetings
Christian

Author:  pixe656 [ Tue Feb 19, 2013 7:20 am ]
Post subject:  Re: RB Benchmark

There is no need to use plugins just for this:
dim x as Double
x= 2.68798271729777e43
msgbox "str="+str(x)+" format="+format(x,"0.0000000000000000000000000e00")


To understand format and other functions/features, you have the RS documentation online: http://docs.realsoftware.com/index.php/Main_Page

You also have a folder in your machine with many examples that come with the IDE, and there is the RB curriculum, which can help you getting used to RB

Pixe

Author:  DaveS [ Tue Feb 19, 2013 9:07 am ]
Post subject:  Re: RB Benchmark

You are freaking kidding?
You SELL a pllugin to do something RS already does?

Author:  MonkeybreadSoftware [ Tue Feb 19, 2013 9:14 am ]
Post subject:  Re: RB Benchmark

FormatMBS can do more things than Format().

Greetings
Christian

Author:  ktekinay [ Tue Feb 19, 2013 9:27 am ]
Post subject:  Re: RB Benchmark

DaveS wrote:
You are freaking kidding?
You SELL a pllugin to do something RS already does?

Even if his version of Format only did what the native Format did (as he points out, it does more), he includes it in a package that does, conservatively, a hundred things that native RS does not do. And that's just the one plugin.

Christian has done a huge service for the RS community.

Author:  Djamel [ Wed Feb 20, 2013 4:36 am ]
Post subject:  Re: RB Benchmark

MonkeybreadSoftware wrote:
FormatMBS can do more things than Format().

Greetings
Christian

Hello,
What is the price of this plugins ?
Regards.

Author:  Djamel [ Wed Feb 20, 2013 4:41 am ]
Post subject:  Re: RB Benchmark

pixe656 wrote:
There is no need to use plugins just for this:
dim x as Double
x= 2.68798271729777e43
msgbox "str="+str(x)+" format="+format(x,"0.0000000000000000000000000e00")


To understand format and other functions/features, you have the RS documentation online: http://docs.realsoftware.com/index.php/Main_Page

You also have a folder in your machine with many examples that come with the IDE, and there is the RB curriculum, which can help you getting used to RB

Pixe


Than you for your help, for the link also.
Other question, i do not found Date time control in Rbasic, I add MS DTPicker date time, but time control does not run , no possible to display the system time.
Any idea ?

Author:  MonkeybreadSoftware [ Wed Feb 20, 2013 4:46 am ]
Post subject:  Re: RB Benchmark

You can find prices on our website for Util plugin or Complete package:
http://www.monkeybreadsoftware.de/realbasic/buy/

Price depends on your country and VAT status.

Greetings
Christian

Author:  DaveS [ Wed Feb 20, 2013 7:35 pm ]
Post subject:  SPRINTF for FREE

Want to use "sprintf" in RealStudio (OSX only) and FOR FREE?
well here is an alternative.... Note : it does use SHELL .... but I did say it was free didn't I?

FUNCTION sprintf(fmt as string,num as double) As String
Dim sh As New shell
Dim x As Integer
Dim s As String
' for more information execute "MAN printf" from terminal
' note : use of ' is not properly documented... but does work
x=InStr(fmt,"'") ' apply thousand Separator
If x>1 And Mid(fmt,x-1)<>"\" Then fmt=Left(fmt,x-1)+"\"+Mid(fmt,x) ' make sure ' is escaped
sh.execute "printf "+fmt+" "+Str(num)
x=sh.ErrorCode
s=sh.result
If x=0 Then Return s
// an error occured
s=NthField(ReplaceLineEndings(s,EndOfLine.UNIX),EndOfLine.UNIX,1)
x=InStr(s,"line")
x=InStr(x,s,":")
Return Trim(Mid(s,x+1))
END FUNCTION

Author:  taylor-design [ Wed Feb 20, 2013 8:41 pm ]
Post subject:  Re: RB Benchmark

I've kept a current license to MBS for years. My license will sometimes lapse for a few months until I notice I need/want an upgrade, but Christian has stuffed an unbelievable amount of code and functionality into that thing. Once or twice I've run across a function in MBS that already exists in RB, but basically it's there because MBS had it first and/or adds some feature.

Einhugur's plugin is another one I keep a license to. They have cross platform date and time controls, btw.

Author:  jimmckay [ Sat Mar 30, 2013 12:25 pm ]
Post subject:  Re: RB Benchmark

Djamel wrote:
Other question, i do not found Date time control in Rbasic, I add MS DTPicker date time, but time control does not run , no possible to display the system time.
Any idea ?


You can try my CalendarControl. It is a Canvas subclass for a date chooser/calendar. Fully cross-platform.

http://www.pidog.com/CalendarControl/

Thanks,
Jim McKay
piDog.com

Author:  HMARROQUINC [ Sun Mar 31, 2013 11:08 pm ]
Post subject:  Re: RB Benchmark

jimmckay wrote:
Djamel wrote:
Other question, i do not found Date time control in Rbasic, I add MS DTPicker date time, but time control does not run , no possible to display the system time.
Any idea ?


You can try my CalendarControl. It is a Canvas subclass for a date chooser/calendar. Fully cross-platform.

http://www.pidog.com/CalendarControl/

Thanks,
Jim McKay
piDog.com


I was going to give it a try but first wanted to check the price but I can't find it in your store. Am I looking in the wrong place?

http://www.pidog.com/store.shtml

Author:  paulsondervan [ Tue Apr 02, 2013 12:47 pm ]
Post subject:  Re: RB Benchmark

http://www.pidog.com/Modules.shtml
($60 single user, 1 year update single user $20)

Page 2 of 3 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/