Results 1 to 5 of 5

Thread: Why isn't this working?

  1. #1

    Thread Starter
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674
    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

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    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

  3. #3

    Thread Starter
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674
    Thanks, Answer#1 worked!!!

    Answer#2 didn't - it only displays one decimal now.

  4. #4

    Thread Starter
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674
    I'm sorry it was my mistake Answer#2 works,

    Thank you so much

    JO

  5. #5
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    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
  •  



Click Here to Expand Forum to Full Width