Results 1 to 7 of 7

Thread: Everything was working find and then . . .

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2011
    Posts
    37

    Everything was working find and then . . .

    Except for the 2 print statements and the boo statement this same code had been working for a week. Suddenly out of nowhere

    the Left function does not work.

    mCoords is defined as a String

    Name:  Untitled-1.jpg
Views: 145
Size:  59.0 KB
    Attached Images Attached Images  
    Last edited by iamjim; Jul 29th, 2020 at 01:13 PM.
    VB6 on Windows 10

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Everything was working find and then . . .

    I think it is working. Looks like you may have a carriage return or double null characters in front of the mCoords string.
    This should help definitively prove/disprove it.
    Code:
    Debug.Print Asc(Mid(mCoords, 1, 1)), Asc(Mid(mCoords, 2, 1))
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2011
    Posts
    37

    Re: Everything was working find and then . . .

    Never mind. When I copied the line I failed to pickup the last parenthesis
    Last edited by iamjim; Jul 29th, 2020 at 01:41 PM.
    VB6 on Windows 10

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Everything was working find and then . . .

    Make sure mCoords is not a zero-length string
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2011
    Posts
    37

    Re: Everything was working find and then . . .

    I edited my previous post.

    You were right. The thing that seems odd, when I hover over mCoords nothing appears before the dash sign.

    FYI it was Google maps that changed, not the program.
    VB6 on Windows 10

  6. #6
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Everything was working find and then . . .

    Quote Originally Posted by iamjim View Post
    FYI it was Google maps that changed, not the program.
    The point of failure for any parsing routine: source format changed
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  7. #7

    Thread Starter
    Member
    Join Date
    Feb 2011
    Posts
    37

    Re: Everything was working find and then . . .

    I forgot to thank you
    VB6 on Windows 10

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