Professional Documents
Culture Documents
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace Py_Farmacia
{
public partial class frmCntlMed : Form
{
public frmCntlMed()
{
InitializeComponent();
}
cantReg = Int32.Parse(txtCantReg.Text);
vRegistro[i - 1] = registro;
lstRegistro.Items.Add(vRegistro[i - 1]);
regLong = registro.Length;
k = 1;
palabra = "";
for (int j = 0; j < regLong; j++)
{
letra = registro.Substring(j, 1);
if (letra == "," || k == 5)
{
switch (k)
{
case 1:
lstLaboratorio.Items.Add(palabra);
palabra = "";
k++;
break;
case 2:
lstProducto.Items.Add(palabra);
palabra = "";
k++;
break;
case 3:
lstPresentacin.Items.Add(palabra);
palabra = "";
k++;
break;
case 4:
lstFecFab.Items.Add(palabra);
DateTime fecFab = Convert.ToDateTime(palabra);
}
}
}
}
}
}