CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Posts
    60

    Can I write a character on the specified location of a string*255

    If it can happen then do reply soon cause
    now I am in the final stages.

    I am waiting on the line for the next half an
    hour.

    If you can, please give a small example as well.

    A problem stays like a challenge till
    I find the solution to it.

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Can I write a character on the specified location of a string*255

    here is a sample

    Dim stra as string
    stra = "this is a test"
    mid(stra, 5, 1) = "f" ' write to position 5
    MsgBox stra






  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Can I write a character on the specified location of a string*255

    BTW if you still work on the GetShortPathname stuff,
    the return value from GetShortpathname is the number of characters copied into the strShort buffer.
    if you need only the relevant characters:
    l = getshortpathname( strLong, strShort..)
    strTrueName = left( strShort, l) ' get's only the relevant characters from your string


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

Featured