Hi am using Method :
void importFromTextFile()
{
SysOperationProgress simpleProgress;
;
permission = new fileIOpermission(sfileName,#io_read);
permission.assert();
textIO = new TextIO(sfileName,#io_read);
textIO.inFieldDelimiter("|");
textIO.inRecordDelimiter('\n');
simpleProgress = SysOperationProgress::newGeneral(#AviUpdate,"Import is in progress",100);
startLengthyOperation();
while(textIO.status() == IO_Status::Ok)
{
c = textIO.read();
if(conLen(c) > 1)
{
setPrefix(this.caption());
importTable.clear();
importTable. EmplId = conpeek(c,1);
importTable.New_EmplName = conpeek(c,2);
importTable.New_FirstName = conpeek(c,3);
importTable.New_LastName = conpeek(c,4);
importTable.New_Email = conpeek(c,5);
importTable.New_Telephone = conpeek(c,6);
importTable.New_Designation = conpeek(c,7);
importTable.New_DOB = conpeek(c,8);
importTable.update();
info("Record Updated Successfully !!!");
}
}
endLengthyOperation();
}
But it seems like when I run the program , Control Flow only is not coming to this method coz I have included one (info"") statement which is not getting executed at all.
I have written this method in a class and in my form I have a button called Updated . and in its clicked event , I am calling some methods and it is one among them .
Please let m know what's wrong in it