You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

dave

Beginner

  • "dave" started this thread

Posts: 4

Date of registration: Jan 26th 2009

  • Send private message

1

Monday, January 26th 2009, 6:07pm

Format function

Hello,
The format function is returning the unexpected results shown below.

s = "123.45678"
s = Format(s, "###.0000")
text1.Text = s

text1.text shows => java.lang.Exception: No date found in "123.45678"

In VB I would expect text1 to show 123.4567.

Can someone please explain this to me.

Dave

Manuel

Administrator

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

2

Monday, January 26th 2009, 8:41pm

Quoted

s = "123.45678"
s = Format(s, "###.0000")
text1.Text = s

text1.text shows => java.lang.Exception: No date found in "123.45678"
This method is not implemented completely. You could wait for the changes or modify it in the Framework. You are also able to use some Java-functions for that, or if you would like to round a numeric value you could use the round-function.

dave

Beginner

  • "dave" started this thread

Posts: 4

Date of registration: Jan 26th 2009

  • Send private message

3

Monday, January 26th 2009, 8:58pm

Manuel,
I'll look into all your suggestions.
Thanks,
Dave

Rate this thread
WoltLab Burning Board