How to format strings or numbers???

Just starting out? Need help? Post your questions and find answers here.
Sensphere
User
User
Posts: 19
Joined: Tue May 27, 2003 3:44 pm
Location: Germany/Stuttgart
Contact:

How to format strings or numbers???

Post by Sensphere »

does anybody know how to format a string or a number in pb?

In VB i can use Format(1.33333,"00#.00") to get 001.33 but how
could this be done in pb?

Hope anyone could help me couse i need it for a recent project.

tia
__ i know that i know nothing __
__ those who swim with the stream will never reach the source __
(K7 XP @ 2.4 GHz | WinXP SP1 | 1 GB RAM | ATI Radeon 7500 | PB 3.81 [Win|Linux])
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: How to format strings or numbers???

Post by PB »

> does anybody know how to format a string or a number in pb?

See this thread, but I don't know if it still works with v3.70 (Danilo?):

viewtopic.php?t=4425
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

The lib with the Using() function was originaly from MrSkunk, who is back now....maybe he know?
I believe started working on his libs again.
Sensphere
User
User
Posts: 19
Joined: Tue May 27, 2003 3:44 pm
Location: Germany/Stuttgart
Contact:

Post by Sensphere »

Thanks for the quick answers :D

I tried Mr. Skunks library but unfortunately it seems that
Day() ist declared in another lib too (in date i guess).
__ i know that i know nothing __
__ those who swim with the stream will never reach the source __
(K7 XP @ 2.4 GHz | WinXP SP1 | 1 GB RAM | ATI Radeon 7500 | PB 3.81 [Win|Linux])
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

PrintUsing library

Post by Fangbeast »

I actually found a Print Using library recently, only done a few weeks ago and it is in German so it should be perfect for you.

Let me know your email and I'll send it to you...Can't remember where I got it from but it's here :)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Manolo
User
User
Posts: 75
Joined: Fri Apr 25, 2003 7:06 pm
Location: Spain

Re: PrintUsing library

Post by Manolo »

Fangbeast wrote:I actually found a Print Using library recently, only done a few weeks ago and it is in German so it should be perfect for you.

Let me know your email and I'll send it to you...Can't remember where I got it from but it's here :)
Hi Fang,
I have very interest in this library. Please, send to me if this is possible.
my email is vpardo@infonegocio.com
Tnanks for you colaboration.
Regards,
Manolo
Return to the forum
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

I think he means that lib:
http://www.reelmediaproductions.com/pb/ ... unkLIB.zip

It is the lib from MrSkunk, modified by Danilo, to work with current versions.

Timo
quidquid Latine dictum sit altum videtur
Sensphere
User
User
Posts: 19
Joined: Tue May 27, 2003 3:44 pm
Location: Germany/Stuttgart
Contact:

SkunkLib

Post by Sensphere »

Thanks Fangbeast & Freak

i tried the original Lib from Skunk - but the one modified
by Danilo works perfekt with PB 3.70 :P
__ i know that i know nothing __
__ those who swim with the stream will never reach the source __
(K7 XP @ 2.4 GHz | WinXP SP1 | 1 GB RAM | ATI Radeon 7500 | PB 3.81 [Win|Linux])
Post Reply