|
-
Oct 7th, 2000, 02:55 PM
#1
Thread Starter
Fanatic Member
Could anyone tell me why this is not working?
I have the file created and in the correct directory but it still doesn't work - any ideas?
Private Sub mnuAbout_Click()
Shell ("Notepad.exe" & App.Path & "\About.txt")
End Sub
This is also not working:
txtTotal = Format(txtTotal, "#.000")
Any idaes on it?
Thanks,
JO
-
Oct 7th, 2000, 03:17 PM
#2
Fanatic Member
Answer #1:
You need a space between the app and the file path and get rid of the parathensis.
Code:
Shell "Notepad.exe " & App.Path & "\About.txt"
Answer #2:
Most likely the value being past in not an integer. try the following.
Code:
txtTotal = Format(cInt(txtTotal), "#.000")
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Oct 7th, 2000, 03:42 PM
#3
Thread Starter
Fanatic Member
Thanks, Answer#1 worked!!!
Answer#2 didn't - it only displays one decimal now.
-
Oct 7th, 2000, 03:54 PM
#4
Thread Starter
Fanatic Member
I'm sorry it was my mistake Answer#2 works,
Thank you so much
JO
-
Oct 7th, 2000, 08:56 PM
#5
Fanatic Member
No Problem, let me know if you need anything else.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
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
|