i have this code in my program
lblAnswer.Caption = Format(sngAmount, "Currency")
when i run it i get this error:
can't find project or library
am i missing a reference or something? if so what?
please help
Printable View
i have this code in my program
lblAnswer.Caption = Format(sngAmount, "Currency")
when i run it i get this error:
can't find project or library
am i missing a reference or something? if so what?
please help
Works form me. What version are you running. Here's the code I used
Code:Private Sub Command2_Click()
Dim sngAmount As Single
sngAmount = 350.6
lblAnswer.Caption = Format(sngAmount, "Currency")
End Sub
Maybe your having a version conflict, try this piece of code instead.
Code:Private Sub Command2_Click()
Dim sngAmount As Single
sngAmount = 350.6
lblAnswer.Caption = FormatCurrency(sngAmount)
End Sub
Thanks alot!!!!
lblAnswer.Caption = FormatCurrency(sngAmount)
is the one that worked. I am using vb6 professional. and the books that i am learning from are for vb6 any clue on why there is a conflict?
thanks
I'm using the enterprise edition, so I can't test the code on the professional version, but I can't see why it wouldn't work on that Version??