Form object
Returns the number of the batch the form belongs to (the same as the value of the #BatchNo system variable used in Transfer ).
If you use batch numbers greater than 32,767 you will get a negative number when retrieving the index with the method. To avoid this, use GetLongBatchNo, or the new COM API BatchNo property, instead.