Hi team,
I always get confused between these two methods.
What I understood..
1. find() - for example
CustTable custTable;
custTable = CustTable::find("US-001");
if (custTable.RecId)
{
info(strFmt("Customer name: %1",
custTable.name()));
}
else
{
info("Customer not found.");
}
We used to retrieved the data based on Customer number using find method.
2.Exist () - for example
if (CustTable::exist("US-001"))
{
info("Customer exists.");
}
else
{
info("Customer does not exist.");
}
Here we basically checked wheather the Customer number is existed or not. It's return boolean true or false.
Is my understanding is correct?
Pls advise, thanks

Report
All responses (
Answers (