home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / inites / testini.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-08  |  29.4 KB  |  655 lines

  1. VERSION 2.00
  2. Begin Form testini 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "TEST INI FILES"
  6.    ClientHeight    =   6705
  7.    ClientLeft      =   2325
  8.    ClientTop       =   3240
  9.    ClientWidth     =   10575
  10.    Height          =   7110
  11.    Icon            =   TESTINI.FRX:0000
  12.    Left            =   2265
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   6705
  17.    ScaleWidth      =   10575
  18.    Top             =   2895
  19.    Width           =   10695
  20.    Begin SSPanel Panel3D3 
  21.       Alignment       =   0  'Left Justify - TOP
  22.       BackColor       =   &H00FFFFFF&
  23.       BevelOuter      =   1  'Inset
  24.       Font3D          =   0  'None
  25.       Height          =   6525
  26.       Left            =   5310
  27.       TabIndex        =   15
  28.       Top             =   60
  29.       Width           =   5175
  30.       Begin TextBox Contenu_Ini 
  31.          BorderStyle     =   0  'None
  32.          Height          =   6510
  33.          Left            =   15
  34.          MultiLine       =   -1  'True
  35.          ScrollBars      =   3  'Both
  36.          TabIndex        =   26
  37.          Top             =   15
  38.          Width           =   5160
  39.       End
  40.    End
  41.    Begin SSPanel Panel3D1 
  42.       Alignment       =   1  'Left Justify - MIDDLE
  43.       BackColor       =   &H00C0C0C0&
  44.       BevelOuter      =   1  'Inset
  45.       Font3D          =   0  'None
  46.       Height          =   2985
  47.       Left            =   180
  48.       TabIndex        =   19
  49.       Top             =   3600
  50.       Width           =   4995
  51.       Begin SSPanel Panel3D4 
  52.          Alignment       =   8  'Center - BOTTOM
  53.          BackColor       =   &H00C0C0C0&
  54.          BevelOuter      =   1  'Inset
  55.          Caption         =   "About"
  56.          Font3D          =   0  'None
  57.          Height          =   795
  58.          Left            =   3480
  59.          TabIndex        =   27
  60.          Top             =   150
  61.          Width           =   795
  62.          Begin PictureBox Pic_ApplicationIcon 
  63.             AutoSize        =   -1  'True
  64.             BackColor       =   &H00C0C0C0&
  65.             BorderStyle     =   0  'None
  66.             Enabled         =   0   'False
  67.             Height          =   480
  68.             HelpContextID   =   2
  69.             Left            =   150
  70.             Picture         =   TESTINI.FRX:0302
  71.             ScaleHeight     =   480
  72.             ScaleWidth      =   480
  73.             TabIndex        =   28
  74.             Top             =   60
  75.             Width           =   480
  76.          End
  77.       End
  78.       Begin ComboBox Liste_Entree 
  79.          Height          =   300
  80.          Left            =   870
  81.          Sorted          =   -1  'True
  82.          TabIndex        =   4
  83.          Text            =   "Liste_Entree"
  84.          Top             =   630
  85.          Width           =   1965
  86.       End
  87.       Begin CommandButton Voir_Ini 
  88.          Caption         =   "See &INI"
  89.          Height          =   360
  90.          Left            =   3360
  91.          TabIndex        =   11
  92.          Top             =   2070
  93.          Width           =   1500
  94.       End
  95.       Begin CommandButton Quitter 
  96.          Caption         =   "&Quit"
  97.          Height          =   360
  98.          Left            =   3360
  99.          TabIndex        =   12
  100.          Top             =   2490
  101.          Width           =   1500
  102.       End
  103.       Begin CommandButton Del_Entry 
  104.          Caption         =   "DEL &Entry"
  105.          Height          =   360
  106.          Left            =   1770
  107.          TabIndex        =   10
  108.          Top             =   2490
  109.          Width           =   1500
  110.       End
  111.       Begin CommandButton Del_Section 
  112.          Caption         =   "DEL &Section"
  113.          Height          =   360
  114.          Left            =   1770
  115.          TabIndex        =   9
  116.          Top             =   2070
  117.          Width           =   1500
  118.       End
  119.       Begin CommandButton Write_INI 
  120.          Caption         =   "&Write INI"
  121.          Height          =   360
  122.          Left            =   180
  123.          TabIndex        =   7
  124.          Top             =   2070
  125.          Width           =   1500
  126.       End
  127.       Begin CommandButton Send_Ini 
  128.          Caption         =   "S&end WININI"
  129.          Enabled         =   0   'False
  130.          Height          =   360
  131.          Left            =   180
  132.          TabIndex        =   8
  133.          Top             =   2490
  134.          Width           =   1500
  135.       End
  136.       Begin SSPanel Panel3D2 
  137.          Alignment       =   1  'Left Justify - MIDDLE
  138.          BackColor       =   &H00C0C0C0&
  139.          BevelOuter      =   1  'Inset
  140.          Font3D          =   0  'None
  141.          Height          =   285
  142.          Index           =   1
  143.          Left            =   840
  144.          TabIndex        =   25
  145.          Top             =   1530
  146.          Width           =   4005
  147.          Begin TextBox Defaut 
  148.             BorderStyle     =   0  'None
  149.             Height          =   285
  150.             Left            =   30
  151.             TabIndex        =   6
  152.             Top             =   30
  153.             Width           =   3975
  154.          End
  155.       End
  156.       Begin SSPanel Panel3D2 
  157.          Alignment       =   1  'Left Justify - MIDDLE
  158.          BackColor       =   &H00C0C0C0&
  159.          BevelOuter      =   1  'Inset
  160.          Font3D          =   0  'None
  161.          Height          =   285
  162.          Index           =   0
  163.          Left            =   840
  164.          TabIndex        =   23
  165.          Top             =   1110
  166.          Width           =   4005
  167.          Begin TextBox Valeur 
  168.             BorderStyle     =   0  'None
  169.             Height          =   285
  170.             Left            =   30
  171.             TabIndex        =   5
  172.             Top             =   30
  173.             Width           =   3975
  174.          End
  175.       End
  176.       Begin ComboBox Liste_Section 
  177.          Height          =   300
  178.          Left            =   870
  179.          Sorted          =   -1  'True
  180.          TabIndex        =   3
  181.          Text            =   "Liste_Section"
  182.          Top             =   120
  183.          Width           =   1965
  184.       End
  185.       Begin Label Label2 
  186.          BackColor       =   &H00C0C0C0&
  187.          Caption         =   "&Default:"
  188.          Height          =   255
  189.          Index           =   5
  190.          Left            =   90
  191.          TabIndex        =   24
  192.          Top             =   1560
  193.          Width           =   705
  194.       End
  195.       Begin Label Label2 
  196.          BackColor       =   &H00C0C0C0&
  197.          Caption         =   "&Value:"
  198.          Height          =   255
  199.          Index           =   4
  200.          Left            =   90
  201.          TabIndex        =   22
  202.          Top             =   1140
  203.          Width           =   645
  204.       End
  205.       Begin Label Label2 
  206.          BackColor       =   &H00C0C0C0&
  207.          Caption         =   "&Entry:"
  208.          Height          =   255
  209.          Index           =   3
  210.          Left            =   60
  211.          TabIndex        =   21
  212.          Top             =   660
  213.          Width           =   645
  214.       End
  215.       Begin Label Label2 
  216.          BackColor       =   &H00C0C0C0&
  217.          Caption         =   "&Section:"
  218.          Height          =   195
  219.          Index           =   2
  220.          Left            =   60
  221.          TabIndex        =   20
  222.          Top             =   150
  223.          Width           =   975
  224.       End
  225.    End
  226.    Begin SSPanel sss 
  227.       BackColor       =   &H00C0C0C0&
  228.       BevelOuter      =   1  'Inset
  229.       Font3D          =   0  'None
  230.       Height          =   3435
  231.       Left            =   180
  232.       TabIndex        =   13
  233.       Top             =   60
  234.       Width           =   4995
  235.       Begin DriveListBox Drive1 
  236.          Height          =   315
  237.          Left            =   1890
  238.          TabIndex        =   2
  239.          Top             =   2940
  240.          Width           =   2955
  241.       End
  242.       Begin DirListBox Dir1 
  243.          Height          =   1830
  244.          Left            =   1890
  245.          TabIndex        =   1
  246.          Top             =   1080
  247.          Width           =   2955
  248.       End
  249.       Begin FileListBox File1 
  250.          Height          =   2175
  251.          Left            =   150
  252.          Pattern         =   "*.ini"
  253.          TabIndex        =   0
  254.          Top             =   1080
  255.          Width           =   1635
  256.       End
  257.       Begin SSPanel Selection_Ini 
  258.          Alignment       =   1  'Left Justify - MIDDLE
  259.          BackColor       =   &H00FFFFFF&
  260.          BevelOuter      =   1  'Inset
  261.          BevelWidth      =   2
  262.          Font3D          =   0  'None
  263.          Height          =   285
  264.          Left            =   180
  265.          TabIndex        =   16
  266.          Top             =   360
  267.          Width           =   4185
  268.       End
  269.       Begin Label Label2 
  270.          BackColor       =   &H00C0C0C0&
  271.          Caption         =   "&Directories"
  272.          Height          =   285
  273.          Index           =   1
  274.          Left            =   1890
  275.          TabIndex        =   18
  276.          Top             =   840
  277.          Width           =   1545
  278.       End
  279.       Begin Label Label2 
  280.          BackColor       =   &H00C0C0C0&
  281.          Caption         =   "&Files"
  282.          Height          =   285
  283.          Index           =   0
  284.          Left            =   180
  285.          TabIndex        =   17
  286.          Top             =   840
  287.          Width           =   1545
  288.       End
  289.       Begin Label Label1 
  290.          BackColor       =   &H00C0C0C0&
  291.          Caption         =   "&Selected INI file:"
  292.          Height          =   195
  293.          Left            =   180
  294.          TabIndex        =   14
  295.          Top             =   150
  296.          Width           =   2415
  297.       End
  298.    End
  299.     Option Explicit
  300.     Dim T() As String           'Liste des entr
  301. es d'une section'
  302.     Dim Entree As String        'Contenu du fichier Ini         '
  303. Sub Contenu_Ini_Change ()
  304.     Contenu_Ini = Entree
  305. End Sub
  306. Sub Defaut_GotFocus ()
  307.     Defaut.SelStart = 0
  308.     Defaut.SelLength = Len(Valeur)
  309. End Sub
  310. Sub Defaut_KeyPress (KeyAscii As Integer)
  311.     If KeyAscii = 13 Then KeyAscii = 0: Write_Ini.SetFocus
  312. End Sub
  313. Sub Del_Entry_Click ()
  314.     Dim A As Integer
  315.     A = DelEntry(Selection_Ini, Liste_Section.Text, Liste_Entree.Text)
  316.     Voir_Ini_Click
  317. End Sub
  318. Sub Del_Section_Click ()
  319.     Dim A As Integer
  320.     A = DelSection(Selection_Ini, Liste_Section.Text)
  321.     Voir_Ini_Click
  322. End Sub
  323. Sub Dir1_Change ()
  324. '                                                                                                              '
  325. '                                                                                                               '
  326. 'On modifie le r
  327. pertoire.                                                                                      '
  328. '                                                                                                                 '
  329. '                                                                                                                  '
  330.     File1.Path = Dir1.Path
  331.     Selection_Ini.Caption = Dir1.Path
  332.     RAZ
  333.     If Right$(Selection_Ini.Caption, 1) <> "\" Then Selection_Ini.Caption = Selection_Ini.Caption + "\"
  334. End Sub
  335. Sub Dir1_KeyPress (KeyAscii As Integer)
  336.     Dir1.Path = Dir1.List(Dir1.ListIndex)
  337. End Sub
  338. Sub Dir1_LostFocus ()
  339.     Dir1.Path = Dir1.List(Dir1.ListIndex)
  340. End Sub
  341. Sub Drive1_Change ()
  342.     On Local Error GoTo ErrUnite
  343.     Dir1.Path = Drive1.Drive
  344.     Exit Sub
  345. ErrUnite:
  346.     MsgBox "L'unit
  347.  n'est pas disponible", 48, "Erreur S
  348. lection Unit
  349.     Drive1.Drive = Dir1.Path
  350.     On Error GoTo 0
  351.     Exit Sub
  352.     Resume
  353. End Sub
  354. Sub File1_Click ()
  355.     If Right$(Dir1.Path, 1) = "\" Then
  356.         Selection_Ini.Caption = Dir1.Path + File1.FileName
  357.     Else
  358.         Selection_Ini.Caption = Dir1.Path + "\" + File1.FileName
  359.     End If
  360.     RAZ
  361. End Sub
  362. Sub File1_DblClick ()
  363.     File1_Click
  364.     Voir_Ini_Click
  365. End Sub
  366. Sub File1_GotFocus ()
  367.     If Right$(Dir1.Path, 1) = "\" Then
  368.         Selection_Ini.Caption = Dir1.Path + File1.FileName
  369.     Else
  370.         Selection_Ini.Caption = Dir1.Path + "\" + File1.FileName
  371.     End If
  372.     RAZ
  373. End Sub
  374. Sub File1_PathChange ()
  375.     If Right$(Dir1.Path, 1) = "\" Then
  376.         Selection_Ini.Caption = Dir1.Path + File1.FileName
  377.     Else
  378.         Selection_Ini.Caption = Dir1.Path + "\" + File1.FileName
  379.     End If
  380.     RAZ
  381. End Sub
  382. Sub Form_Load ()
  383.     Dim R As Integer
  384. '                                                                                                                                                                                                                                   '
  385. '                                                                                                                                                                                                                                    '
  386. 'Lanc
  387. e lors de l'initialisation                                                                                                                                                                                                      '
  388. '                                                                                                                                                                                                                                      '
  389. '                                                                                                                                                                                                                                       '
  390.     Move (Mdi.Width - Width) / 2, (Mdi.Height - Height) / 2
  391.     '                                                                                                                                                                                                                                               '
  392.     'Recherche du r
  393. pertoire Windows                                                                                                                                                                                                                 '
  394.     '                                                                                                                                                                                                                                                 '
  395.     WinDir = Space$(256)
  396.     R = GetWindowsDirectory(WinDir, 256)
  397.     If R <> 0 Then WinDir = Left$(WinDir, R)
  398.     If Right$(WinDir, 1) <> "\" Then WinDir = WinDir + "\"
  399. End Sub
  400. Sub Lire_Section ()
  401.     Dim Fiche As String
  402.     Dim CRLF As String * 2
  403. '                                                                                                                                                                                                                               '
  404. '                                                                                                                                                                                                                                '
  405. 'Cette proc
  406. dure liste les sections disponibles dans le fichier INI                                                                                                                                                               '
  407. '                                                                                                                                                                                                                                  '
  408. '                                                                                                                                                                                                                                   '
  409.     CRLF = Chr$(13) + Chr$(10)
  410.     Fiche = CRLF + Entree
  411.     Liste_Section.Clear
  412.     Liste_Entree.Clear
  413.     Valeur = ""
  414.     While InStr(Fiche, CRLF + "[") <> 0
  415.         Fiche = Right$(Fiche, Len(Fiche) - InStr(Fiche, CRLF + "[") - 2)
  416.         If InStr(Fiche, "]") <> 0 Then
  417.             Liste_Section.AddItem Left$(Fiche, InStr(Fiche, "]") - 1)
  418.             Fiche = Right$(Fiche, Len(Fiche) - InStr(Fiche, "]"))
  419.         Else
  420.             Fiche = ""
  421.         End If
  422.     Wend
  423.     If Liste_Section.ListCount > 0 Then Liste_Section.ListIndex = 0
  424. End Sub
  425. Sub Liste_Entree_Click ()
  426.     Dim A As String
  427.     Dim B As String
  428.     Dim C As String
  429.     Dim D As String
  430. '                                                           '
  431. '                                                            '
  432. 'On a s
  433. lectionn
  434.  une valeur d'entr
  435. e. On lit son contenu.    '
  436. '                                                              '
  437. '                                                               '
  438.     A = Selection_Ini
  439.     B = Liste_Section
  440.     C = Liste_Entree
  441.     D = Defaut
  442.     Valeur = GetIni(A, B, C, D, Nsize)
  443. End Sub
  444. Sub Liste_Section_Click ()
  445.     Dim I As Integer
  446.     Dim A As String
  447.     Dim B As String
  448. '                                                                                                                                                                                                                                   '
  449. '                                                                                                                                                                                                                                    '
  450. 'On lit les entr
  451. es correspondantes 
  452.  la section                                                                                                                                                                                      '
  453. '                                                                                                                                                                                                                                      '
  454. '                                                                                                                                                                                                                                       '
  455.     ReDim T(0)
  456.     Screen.MousePointer = 11
  457.     A = Liste_Section.Text
  458.     B = Selection_Ini.Caption
  459.     Call GetEntries(B, A, T())
  460.     Liste_Entree.Clear
  461.     For I = 1 To UBound(T)
  462.         Liste_Entree.AddItem T(I)
  463.     Next I
  464.     If Liste_Entree.ListCount > 0 Then Liste_Entree.ListIndex = 0
  465.     Screen.MousePointer = 1
  466. End Sub
  467. Sub Liste_Section_KeyPress (KeyAscii As Integer)
  468.     Liste_Section_Click
  469. End Sub
  470. Sub Panel3D4_Click ()
  471.     AboutBox.Show 1
  472. End Sub
  473. Sub Pic_ApplicationIcon_Click ()
  474.     AboutBox.Show 1
  475. End Sub
  476. Sub Quitter_Click ()
  477.     Unload TestIni
  478. End Sub
  479. Sub RAJ (ByVal AncienSection, ByVal AncienEntree)
  480. '                                                                                                                                                                                                                                                                           '
  481. '                                                                                                                                                                                                                                                                            '
  482. 'Cette proc
  483. dure permet de remettre les valeurs avant l'op
  484. ration choisie                                                                                                                                                                                                     '
  485. '                                                                                                                                                                                                                                                                              '
  486. '                                                                                                                                                                                                                                                                               '
  487.     Dim I As Integer
  488.     For I = 0 To Liste_Section.ListCount - 1
  489.         If Liste_Section.List(I) = AncienSection Then Liste_Section.ListIndex = I: Exit For
  490.     Next I
  491.     For I = 0 To Liste_Entree.ListCount - 1
  492.         If Liste_Entree.List(I) = AncienEntree Then Liste_Entree.ListIndex = I: Exit For
  493.     Next I
  494. End Sub
  495. Sub RAZ ()
  496. '                                                                                                                                                                                                                                                                                               '
  497. '                                                                                                                                                                                                                                                                                                '
  498. 'Cette proc
  499. dure remet 
  500.  vierge les donn
  501. es                                                                                                                                                                                                                                                       '
  502. '                                                                                                                                                                                                                                                                                                  '
  503. '                                                                                                                                                                                                                                                                                                   '
  504.     Defaut = ""
  505.     Entree = ""
  506.     Valeur = ""
  507.     Contenu_Ini = ""
  508.     Liste_Entree.Clear
  509.     Liste_Section.Clear
  510.     Send_Ini.Enabled = 0
  511. End Sub
  512. Sub Send_Ini_Click ()
  513.     Dim R As Long
  514.     Dim NomSection As String
  515.     Dim Uaction
  516.     Dim UParam
  517.     Dim LpvParam
  518.     Dim Tas As Integer
  519. '                                                                                                                                                                                                                                       '
  520. '                                                                                                                                                                                                                                        '
  521. 'On envoie le message que winini a chang
  522.                                                                                                                                                                                                  '
  523. '                                                                                                                                                                                                                                          '
  524. '                                                                                                                                                                                                                                           '
  525.     NomSection = Liste_Section.Text
  526.     Uaction = 0
  527.     Select Case UCase$(NomSection)
  528.     Case "WINDOWS"
  529.         Select Case UCase$(Liste_Entree.Text)
  530.         Case "BEEP"
  531.             Uaction = SPI_SETBEEP
  532.             If Val(Valeur) <> 0 Then UParam = -1:  Else UParam = 0
  533.             LpvParam = 0&
  534.        Case "BORDERWIDTH"
  535.             Uaction = SPI_SETBORDER
  536.             UParam = Val(Valeur)
  537.             LpvParam = 0&
  538.         Case "DOUBLECLICKSPEED"
  539.             Uaction = SPI_SETDOUBLECLICKTIME
  540.             UParam = Val(Valeur)
  541.             LpvParam = 0&
  542.         Case "SCREENSAVEACTIVE"
  543.             Uaction = SPI_SETDESKPATTERN
  544.             If Val(Valeur) <> 0 Then UParam = -1:  Else UParam = 0
  545.             LpvParam = 0&
  546.         Case "SCREENSAVETIMEOUT"
  547.            Uaction = SPI_SETDESKPATTERN
  548.             UParam = Val(Valeur)
  549.             LpvParam = 0&
  550.         Case Else
  551.     End Select
  552.     Case "DESKTOP"
  553.         Select Case UCase$(Liste_Entree.Text)
  554.        Case "PATTERN"
  555.            Uaction = SPI_SETDESKPATTERN
  556.             UParam = 0
  557.             LpvParam = Valeur
  558.         Case "WALLPAPER"
  559.             Uaction = SPI_SETDESKWALLPAPER
  560.             UParam = 0
  561.             LpvParam = Valeur
  562.         
  563.         Case "TILEWALLPAPER"
  564.             Write_Ini_Click
  565.             Liste_Entree = "WallPaper"
  566.             Liste_Entree_Click
  567.             Uaction = SPI_SETDESKWALLPAPER
  568.             UParam = 0
  569.             LpvParam = Valeur
  570.             Liste_Entree = "TileWallPaper"
  571.             Liste_Entree_Click
  572.         Case Else
  573.     End Select
  574.     Case Else
  575.     End Select
  576.    'Envoi du message                                                                                                                                                                                                                                                                       '
  577.     If Uaction <> 0 Then
  578.         R = SystemParametersInfo(ByVal Uaction, ByVal UParam, ByVal LpvParam, SPIF_SENDWININICHANGE + SPIF_UPDATEINIFILE)
  579.     Else
  580.         UParam = Liste_Section
  581.         R = SendMessage(ByVal HWND_BROADCAST, ByVal WM_WININICHANGE, ByVal 0, ByVal UParam)
  582.     End If
  583. End Sub
  584. Sub Valeur_GotFocus ()
  585.     Valeur.SelStart = 0
  586.     Valeur.SelLength = Len(Valeur)
  587. End Sub
  588. Sub Valeur_KeyPress (KeyAscii As Integer)
  589.     If KeyAscii = 13 Then KeyAscii = 0: Defaut.SetFocus
  590. End Sub
  591. Sub Voir_Ini_Click ()
  592. '                                                                                                                                                                                                                                                                   '
  593. '                                                                                                                                                                                                                                                                    '
  594. 'Permet d'afficher le contenu du fichier INI                                                                                                                                                                                                                          '
  595. '                                                                                                                                                                                                                                                                      '
  596. '                                                                                                                                                                                                                                                                       '
  597.     Dim CRLF As String
  598.     Dim A$
  599.     Dim X As Integer
  600.     Dim L As Long           'Taille du fichier INI   '
  601.     Dim AncienSection As String
  602.     Dim AncienEntree As String
  603.     CRLF = Chr$(13) + Chr$(10)
  604.     On Local Error Resume Next
  605.     Err = 0
  606.     Entree = ""
  607.     Screen.MousePointer = 11
  608.     'Saisie de la taille du fichier                                                                                                                                                                             '
  609.     X = FreeFile
  610.     L = FileLen(Selection_Ini)
  611.     'Lecture du fichier                                                                                                                                                                                                                                             '
  612.     Open Selection_Ini For Binary As #X Len = L
  613.     If Err <> 0 Then
  614.         Contenu_Ini = ""
  615.         Screen.MousePointer = 1
  616.     Else
  617.         Entree = Space(L)
  618.         Get #1, 1, Entree
  619.         Contenu_Ini = Entree
  620.         Close X
  621.     End If
  622.     'Remise 
  623.  jour des sections                                                                                                                                                                                                                                             '
  624.     AncienSection = Liste_Section
  625.     AncienEntree = Liste_Entree
  626.     Lire_Section
  627.     RAJ AncienSection, AncienEntree
  628.     'Mise 
  629.  jour de Send_Ini                                                                                                                                                                                                                                            '
  630.     If UCase$(Selection_Ini) = UCase$(WinDir) + "WIN.INI" Then Send_Ini.Enabled = -1
  631.     Screen.MousePointer = 1
  632. End Sub
  633. Sub Write_Ini_Click ()
  634.     Dim A As String
  635.     Dim B As String
  636.     Dim C As String
  637.     Dim D As String
  638. '                                                           '
  639. '                                                            '
  640. 'On a s
  641. lectionn
  642.  une valeur d'entr
  643. e. On 
  644. crit son contenu.    '
  645. '                                                              '
  646. '                                                               '
  647.     A = Selection_Ini
  648.     B = Liste_Section
  649.     C = Liste_Entree
  650.     D = Valeur
  651.     Valeur = WriteIni(A, B, C, D)
  652.     Liste_Entree_Click
  653.     Voir_Ini_Click
  654. End Sub
  655.