Built in functions

I need have a doubt what is the difference between

INSERT & INSERT(TRUE);

Modify & Modify(True);

Delete & Delete(True);

hi,

every table and object has Triggers, what are running when you implement the VALIDATE calling method to them.

the INSERT(TRUE) is equals to run the OnInsert Trigger after inserting a record.

For example:

Here is an OnInsert code in the Item Table

OnInsert()

Message(‘Hey, are you inserted a record?’)

Okay, so if you run this code:

Item.INSERT(FALSE);

result is not showing your Message dialog after inserting.

if

Item.INSERT(TRUE);

or

Item.INSERT;

then

result is a dialog box with your message after inserting process. (if you leave it blank, the default is TRUE).

It is the same fot the other, like Delete,Modify, etc…

i hope it is helps.

Not entirely accurate there.

INSERT(TRUE) will absolutely call the code in the OnInsert trigger.

However, the default value passed is FALSE. That means INSERT and INSERT(FALSE) are the same thing. So the code in the OnInsert trigger is not called with those.

oops, i ve been missed, but i knew :slight_smile:

thanks