public void AsignarVector(String pCampoDato,String pCampoValue,String pLinea1,String pIndice0){
//Toma el resultset generado y carga dos vectores uno para el
//value y el otro para la descripcion
//ejm cod_cia = 01(value) compa;ia = "solocodigo"(Descripcion)
try{
orsDatos= oPool.getResultSet();
if(orsDatos!=null){
//limpia los vectores con los datos de cursores anteriores
[CODE] datos.removeAllElements();
datosIndice.removeAllElements();
orsDatos.beforeFirst();
datos.addElement(pLinea1);
datosIndice.addElement(pIndice0);
while(orsDatos.next() ){
if(orsDatos.getString(pCampoDato) != null ||
orsDatos.getString(pCampoDato).toString().trim()!=""){
datos.addElement(orsDatos.getString(pCampoDato));
}
if(orsDatos.getString(pCampoValue) != null ||
orsDatos.getString(pCampoValue).toString().trim()!=""){
datosIndice.addElement(orsDatos.getString(pCampoValue));
}
}
// oPool.cerrar();
}
}catch(SQLException oE1){
setMensaje(oE1.getMessage());
}
}