Results 1 to 2 of 2

Thread: getprivateprofilestring

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Location
    Oporto - Portugal
    Posts
    16

    Question getprivateprofilestring read same time C:\ and H:\

    Hi

    I´m using the API function «getprivateprofilestring» to read file notes.ini in drive c:\notes, then i use textbox to put the information i need into.

    Sometimes notes.ini is intalled in drive c:\..and h:\, when i want to put the informaion into to different textbox it only give the information from the location of drive c:\, the function don´t identifie the file in drive H:\.

    Please let me know if there is a solution to these

    [code]Dim sSpaces As String
    Dim szReturn As String
    sSpaces = Space(75)
    getprivateprofilestring "notes", "Directory", "Caminho não encontrado em C:\", sSpaces, Len(sSpaces), "notes.ini"
    Text3.Text = UCase(sSpaces)[code]

    Thanks


  2. #2
    Lively Member
    Join Date
    May 2000
    Location
    Norway
    Posts
    112
    why not use the buildt-in function
    System.PrivateProfileString ?
    system.privateprofilestring("H:\notes.ini",<heading>,<key>)

    (system.privateprofilestring("H:\notes.ini","Directory","Notes")


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