Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB6: GetINIDATA

Posted on 2004-08-16
4
Medium Priority
?
485 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
1 Comment
 
LVL 8

Accepted Solution

by:
SNilsson earned 2000 total points
ID: 11817924
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Simple Linear Regression
Progress

879 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