Jump to content

Get section number


Erik.
 Share

Recommended Posts

Hi,

This code is to see if a section both strings has but how to see what section number it is?

I don't know how to do this i already thought about it but i do not know how to get that

For $i2 = 0 To IniRead($server & "\" & $map & "\members.dbs","aantal","1","")
                        $read2 = IniRead($server & "\" & $map & "\" & "members.dbs","members",$i2,"")
                        $split = StringSplit($read2, "|")
    
                        If UBound($split) > 3 And GUICtrlRead($voornaam) = $split[2] And GUICtrlRead($achternaam) = $split[3] Then
                            GUICtrlSetBkColor($voornaam,0xff0000);rood
                            GUICtrlSetBkColor($achternaam,0xff0000);rood
                            
                            $read1 = GUICtrlRead($info)
                            GUICtrlSetData($info,"Voornaam/Achternaam (bestaat al)" & @CRLF & $read1)
                            MsgBox(48,"Error","013" & @CRLF & "Voornaam/Achternaam bestaat al")
                            $er3=1
                            ExitLoop
                        Else
                            GUICtrlSetBkColor($voornaam,0x00ff00);groen
                            GUICtrlSetBkColor($achternaam,0x00ff00);groen 
                            $read1 = GUICtrlRead($info)
                            GUICtrlSetData($info,"Voornaam/Achternaam (goed)" & @CRLF & $read1)
                            $er3=0
                        EndIf
                    Next

I hope someone can help me

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...