Results 1 to 5 of 5

Thread: Calculation problem (Resolved)

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    1

    Angry Calculation problem (Resolved)

    I had to make a program for my vb.net class and i have a few bugs, but the worst is my calculation porblems i have this in my program :

    'Show Tax
    sTax_bdf = Str(dblPrice_bdf * 0.08)
    lblTax2_bdf.Text = FormatCurrency(sTax_bdf, 2)

    when it runs it just comes up as zero. i dunno whats goin on, if someone could help that would be great thanks
    Last edited by Supraz01; Oct 2nd, 2003 at 01:29 AM.

  2. #2

  3. #3
    New Member
    Join Date
    Oct 2003
    Posts
    3
    'Show Tax
    sTax_bdf = Str(dblPrice_bdf * 0.08)
    lblTax2_bdf.Text = FormatCurrency(sTax_bdf, 2)


    right off the bat... i got an error with "lblTax2_bdf.Text"

    should that be lblTax2_bdf.CAPTION?

    i changed it to caption and it worked. i'm using vb6 though. maybe that'll help. i don't know though.

  4. #4

  5. #5
    Addicted Member The Phoenix's Avatar
    Join Date
    Aug 2003
    Location
    With my wife
    Posts
    142
    The ".caption" in VB6 has been changed to ".text" in VB.NET. Now, boht labels and textboxes have ".text" properties.

    <EDIT> Whoops. That, boys and girls, is why you should refresh the window before adding your post.
    Take my love
    Take my land
    Take me where I cannot stand
    I don't care, I'm still free
    You can't take the sky from 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