IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Prism
Search Prism Group:

Advanced
-Collapse +Expand Prism To/From
To/FromCODEGuides
-Collapse +Expand Prism Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Prism Store
PRESTWOODSTORE

Prestwood eMagazine

December Edition
Subscribe now! It's Free!
Enter your email:

   ► eMag   Print This    All Groups  
View Group Edition:
Full Edition Your Edition || Prev Next || Subscription Center

Prestwood IT Newsletter Nov 2015 Issue - Prism Edition

Subscribe!

Start subscribing now! It's free!

Each month on or after the 1st, and only once a month, we will send you content from up to 5 community groups. If you select this Prism group, you'll receive the following content below mixed in with the other groups you elect to include.

Prestwood eMag
Our monthly opt-in coupons+newsletter.
portal.prestwood.com
  November 2015 - Prism Edition Year 17 Issue 11  
Your full service technology partner!


Expert guidance from working professionals!
psSendMail DLL topic:
v1.1 Documentation
by Wes Peterson
v1.1 of psSendMail will soon be replaced by v2.

IT Water-Cooler for Power-Users topic:
Setup Exchange E-Mail Queue
by Jon Speare

About: An email queue is setup for 2+ workers as a queue where those working the queue move emails to subfolders or delete as they proceed. Subfolders sample: Assigned, Completed, Ignored, etc. Good for groups of staff to work. Our support@prestwood.com is an email queue. Our scheduler and tech staff in our Network Operating Center (NOC) work this queue.






 Prism Group Top 
Visit Group | My Group Settings
Delphi Prism topic (classic post):
Delphi Prism Empty String Check (length)
by Mike Prestwood

In Prism, a string can be nil (unassigned), assigned an empty string (""), or assigned a value.  Therefore, to check if a string is empty, you have to check against both nil and (""). Alternatively, you can check the length of the string or use String.IsNullOrEmpty.


OOP topic (classic post):
Delphi Prism Member Field
by Mike Prestwood

In Prism you can set the visibility of a member field to any visibility: private, protected, public, assembly and protected or assembly or protected. Prism supports the readonly modifier for member fields which is handy for constant like data. In this case, I chose not to preface my read-only member field with "F" so it's usage is just like a read-only property. Prism also support the class modifier (static data) for member fields. Delphi developers should notice the use of := to initialize a member field (in Delphi you use an =).


 Monthly Prism Lesson
OOP Topic:
Code Snippet of the Month

Unlike Delphi, Delphi Prism uses the .Net garbage collector to free managed object instances. Prism does not have nor need a true destructor.

In .Net, a finalizer is used to free non-managed objects such as a file or network resource. Because you don't know when the garbage collector will call your finalizer, Microsoft recommends you implement the IDisposable interface for non-managed resources and call it's Dispose() method at the appropriate time.

type

  Cyborg = class(IDisposable)
  private
    disposed: Boolean;
    method Dispose(disposing: Boolean);
  public
    method Dispose;
    finalizer Finalize;
  end;
Language Basics Topic:
Resource Link of the Month: Win32 Delphi vs. Delphi Prism

This page provides an overview of basic language incompatibilities between the Delphi for Win32 and Delphi Prism languages. The focus here is to list language features of Delphi that do not exist in the same form or syntax for Delphi Prism, making it easy for Delphi developers to find the appropriate equivalent syntax or otherwise work around the difference. The goal is not to list new features present in Delphi Prism that do not exist in Delphi, as this would exceed the scope of this page.

Delphi Prism Topic:
Question:

What is the difference between a partial method and an abstract method?


Answer:

Both are very similar in usage. However, a partial method is a callable empty method whereas an abstract method is a defined method in a parent class that must be implemented in a child class. Contrast this with a partial method which can be implemented in a child class but does not have to be. Partial methods are common with code generators for managing events.



Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]