Results 1 to 2 of 2

Thread: Syntax error?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Post

    I used this statement as it appears in VB5.
    Code:
    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).]

  2. #2
    New Member
    Join Date
    Nov 1999
    Location
    MD,USA
    Posts
    13

    Post

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width