Jump to content

Recommended Posts

Posted

Thank you.

Now i have one other problem.

I have this :

If _IsChecked($win32) Then $win32 = "checked"
If _IsChecked($win64) Then $win64 = "checked"
If _IsChecked($linux) Then $linux = "checked"
If _IsChecked($other) Then $other = "checked"



Dim $arr[4][2] = [["win32", $win32], ["win64", $win64], ["linux", $linux], ["other", $other]]
                                    Global $fFile = "/OsList/os.txt"
                                    
                                    IniWriteSection($fFile, "OS", "")
                                    If IsArray($arr) Then
                                        For $i = 0 to UBound($arr) - 1 ;
                                        ConsoleWrite($arr[$i][0] & ":" & $arr[$i][1] & @LF)
                                        
                                            FileWriteLine($fFile, $arr[$i][0] & "=" & $arr[$i][1])
                                            
                                        Next
                                            ExitLoop
                                    EndIf

How ty make more easy for create section and key plz.

Posted

My final code can be  :

If _IsChecked($win32) Then $win32 = "checked"
If _IsChecked($win64) Then $win64 = "checked"
If _IsChecked($linux) Then $linux = "checked"
If _IsChecked($other) Then $other = "checked"



Dim $arr[4][2] = [["win32", $win32], ["win64", $win64], ["linux", $linux], ["other", $other]]
                                    Global $fFile = "/OsList/os.txt"
                                    
                                    If IsArray($arr) Then
                                        IniWriteSection($fFile, "OS", $arr, 0)
                                            
                                        ExitLoop
                                    EndIf

?

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
  • Recently Browsing   0 members

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