![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#8
|
|||
|
|||
|
bueno este es el codigo
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, IniFiles, StdCtrls; type TForm1 = class(TForm) Memo1: TMemo; Button1: TButton; ListBox1: TListBox; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; ListaAnimales : TStringList; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); procedure CargaListaAnimales; begin with TIniFile.Create ('C:\archivo.ini') do try ReadSection ('ANIMALES', ListBox1.Items); finally Free; end; end; function ObtieneNombreAnimal (Numero: Integer) : String; begin result := ListBox1.Items.Values[IntToStr(1)]; end; end. pero que esta mal por que me sale begin expectante de un end y ya trate de ponerle y nada agradeceria su comprension
__________________
chenko---- |
|
|
|