CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: stringerr

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    19

    stringerr

    dim mysub as string
    dim str1 as string
    mysub = GetIniField( inifilename, sec, key) 'GetIniField returns string*255
    str1 = "E:\myfolder\"
    str1 = str1 & mysub & "\"
    i see that str1 does not have the last "\".

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: stringerr

    Use code tags when posting code
    Code:
    dim mysub as string
    dim str1 as string
    mysub = GetIniField( inifilename, sec, key) 'GetIniField returns string*255
    str1 = "E:\myfolder\"
    str1 = str1 & Trim(mysub) & "\"

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