PDA

Click to See Complete Forum and Search --> : Syntax error?


Tonatiuh
Dec 8th, 1999, 05:21 AM
I used this statement as it appears in VB5.
imText = Format("345.4545, "#,##0.00")

But I copied exatcly the same line to VB6 and returns me the follow error:

Wrong number of arguments or invalid property assignment.

And selects the Format word.

What's happening?

Thanks!

[This message has been edited by Tonatiuh (edited 12-08-1999).]

KingStu
Dec 8th, 1999, 05:31 AM
Perhaps it is a missing quotation mark. You had this

imText = Format("345.4545, "#,##0.00")

and perhapsh you should have had this

imText = Format("345.4545", "#,##0.00")

which works fine for me.