|
-
Mar 11th, 2001, 08:53 PM
#1
Thread Starter
New Member
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
-
Mar 11th, 2001, 09:01 PM
#2
PowerPoster
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
-
Mar 11th, 2001, 09:43 PM
#3
PowerPoster
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
-
Mar 11th, 2001, 10:10 PM
#4
Thread Starter
New Member
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
-
Mar 11th, 2001, 10:16 PM
#5
PowerPoster
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??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|