Solved

VB6: GetINIDATA

Posted on 2004-08-16
4
452 Views
Last Modified: 2012-06-27
how can i modify this code to get inidata without having it searching for the [section], and have it read after the "=" symbol

for example, inside the ini looks like this:

Blah=83  . i want to get just the 83


heres the code:================================================================

Public Function GetIniData(strAppName$, strKeyName$, strDefault$, strIniFileName$) As String
    Dim INIBuffer As String
    Dim INIBufferSize As Long
    Dim BytesReturned As Integer

    INIBuffer = SPACE$(128)
    INIBufferSize = Len(INIBuffer)
    BytesReturned = GetIniInfo(strAppName$, strKeyName$, strDefault$, INIBuffer, INIBufferSize, strIniFileName$)
    If BytesReturned = 0 Then
        GetIniData = ""
    Else
        GetIniData = Mid$(INIBuffer, 1, BytesReturned)
    End If
End Function
0
Comment
Question by:andyakira
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 8

Accepted Solution

by:
SNilsson earned 500 total points
ID: 11817924
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question