"Abort" works but disallows further deleting the value-duplicate
record by "dataset.delete" initiated by a button on the form, via
redisplaying the message box::
if find(0,vartostr(value),i1,true,nil) then begin
showmessage('Such unit name is already registered'); // <<< HERE
abort;
end;
2012/1/20, Martin Schreiber <[email protected]>:
> On Friday, 20. January 2012 08.56:01 IvankoB for-mse wrote:
>> > Maybe better to call Abort()?
>>
>> For which component ? Neither dataset nor field has this method.
>>
> Unit sysutils:
> "
> procedure Abort;
>
> begin
> Raise EAbort.Create(SAbortError) at Pointer(Get_Caller_addr(Get_Frame));
> end;
> "
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> mseide-msegui-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk