Introduction
The ABC classes contain a number of properties which
govern how the classes behave. Some of these properties are not exposed at
the template level making them hard to set for an application in a global
fashion.
This simple template allows you to set some of these properties more
easily.
All the proceeds collected from this template go to charity (over and
above our normal charitable contributions.) For a list of the charities we
regularly support see our
Social
Responsibility page. If you cannot afford this product please
contact us and we will arrange a free copy for you.
If you encounter any other ABC properties which would benefit from being
set globally please do not hesitate to contact us.
Features
- FileManager.DoNotAssertOnCloseMisuse
property (Clarion 10 or later only)
There is an ASSERT in the FileManager class which prevents a developer
from calling CLOSE on a table. This ASSERT returns false positives
when the CLOSE is legally called after an OPEN. This property exists
to suppress this ASSERT, but there is no way of setting it globally
from the template. (*Included in FM3)
- FileManager.Create property (for all SQL
tables).
By default if the FileManager.Open is called, and a File Not Found
error is returned, then the CREATE statement is called. CREATE deletes
the existing table before creating a new one.
For SQL tables this behavior is problematic because the Open can
return a File Not Found error erroneously. The solution is to turn off
this CREATE ability (it's a property setting in the class) for all SQL
tables. (*Included in FM3)
*Included in FM3 -- If you have got the FM3
Global Extension in the app then this setting is already being set by the
FM3 DLL and you do not need this template to set this property.
Warning : DoNotAssert...
SoftVelocity have asked me to point out that embedding
any code in your program can result in bugs in the program.
Specifically using the CLOSE statement after
a FileManager.Open (like Access:Customers.Open)
can result in the table being closed. The FileManager
class lacks the code to detect this change and hence this could
lead to unexpected behavior in your program. The ASSERT
being suppressed detects this misuse. (Unfortunately it also
incorrectly detects perfectly legal usage as being bad causing a false
positive, which is why the property to suppress it has been added to the FileManager class in the first place.)
If you set this property then you are of course responsible for writing
correct usage of CLOSE, limiting it to places
where there is a matching OPEN.
Webinar
Acknowledgment
Some features for this template were suggested by
Diego Borojovich.
Compatible With
Clarion 8 |
Yes |
Clarion 9 / 9.1 |
Yes |
Clarion 10 |
Yes |
Clarion 11 / 11.1 |
Yes |
Clarion Templates (using ABC Classes) |
Yes |
ABC Templates |
Yes |
AnyScreen |
Yes |
Local Mode |
Yes |
DLL Mode |
Yes |
Multi DLL |
Yes |
Documentation & Support
Documentation for the product is available
here.
Go
here for further support.
Cost
The price of ABC Defaults is
$10. It is available
for purchase from
ClarionShop.
All the proceeds collected from this template go to charity (over and
above our normal charitable contributions.) For a list of the charities we
regularly support see our
Social
Responsibility page. If you cannot afford this product please
contact us and we will arrange a free copy for you.
For other payment options please contact us
here
Refund Policy
CapeSoft believes that if you aren't satisfied with
our products, we would like them back - and we will refund you the money.
This allows you to purchase our products with confidence. You can read our
full refund policy
here.