The Prestwood eMag  |  www.prestwood.com |
|
| January 2009 - Full Edition | Year 11 Issue 1
|
|
| A computer community for power-users and I.T. professionals! |
|
Table of Contents: |
|
From The Editor Mike Prestwood |
Happy New Year! From all of us at Prestwood Software, we wish you a prosperous and fulfilling 2009.
pda.Prestwood.com - Learn on the go! The Prestwood mobile website: In this first edition of 2009 we are featuring our small-screen version of the Prestwood Programmer Community (PPC). Our small screen has been around for a while but we've recently added several small screen features including a handy random tidbit feature that allows you to study on the go. Grab your phone, iPhone, Blackberry, PocketPC, or Palm and browse to pda.prestwood.com whenever you are on the road and want to get five minutes of studying in.
--Mike Prestwood

 Mike Prestwood | From our Computer Community topic...Small Screen Version: pda.prestwood.comby Mike Prestwood Go to pda.prestwood.com for the small screen version of PPC with small screen features such as a random tidbit browser for studying on the go! All pages are specially designed to look as good as possible on your tiny-screen phone, iPhone, Blackberry, PocketPC, or Palm. To get started, browse to pda.prestwood.com with your PDA-ish device.
 
A classic post from our Computer Community topic... New Random Page Feature! by Mike PrestwoodFrom any group, you can display a random tidbit, article, cross reference example, or message board thread. This is a fun and convenient way to browse content quickly to find interesting gems. To use this new feature, visit your favorite group and click on one of the random links in the left column menu. A classic post from our News and Announcments topic... New Year, New Projects by Mike PrestwoodWith the new year, you have new software development projects and we would like to discuss your needs with you. Call Mike Prestwood at 1-916-726-5675 x205 to discuss changing and new needs this year. A classic post from our Computer Community topic... Cross Reference Encyclopedia Updated! Today we deployed version 1.1a of our Cross Reference Encyclopedia with updated content and features. Version 1.1a features a new cross reference guide table of contents on the left menu so you can more easily browse a two language cross reference guide online. In addition, new content was posted for most of the languages and we've finally gotten started on our Delphi Prism content.
A classic post from our Computer Community topic... New 'New Posts' PageWe updated our New Posts page for all posts and for each group. From the pull-down menu, select Programmer Community | New @ PPC or the What's New option available within each group. The new New Posts page now mixes all types of posts together so you can easily see what's the newest message board post, KB article, comment, blog entry, etc.
- New @ PPC (also available from the pull down menu, Programmer Community | New @ PPC)
From our IT Water-Cooler for Power-Users topic... Stamp Out Spam by Vicki NelsonHow to fight back against spam and reclaim your inbox.
A classic post from our Language Basics topic... Don't overlook the power of a relational database! by Wes PetersonAccess is a wonderful desktop database. It makes it easy to do so many things. Many beginning users, though, fail to take advatage of one of Access's greatest strengths. |
Monthly Access Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Language Basics Topic. Code Snippet of the Month Microsoft Access is a class-based
language. Although you can create classes, Access VBA is not fully OOP.
You can create classes, but not inherit from them. It is a traditional language with a few OOP extensions. You code in a
traditional approach using functions, procedures, and global data, and
you can make use of simple classes to help organize your reusable code. Microsoft Access is most suitable for creating business desktop applications that run within Microsoft Access for Windows.
From our General, Presales, & Installation Topic Resource Link of the Month: Microsoft Access Home Page Microsoft's official Access home page. From our Language Basics Topic Tip of the Month Execute more common evaluations first! Short-circuit evaluation is a feature of most languages where once an evaluation evaluates to False, the compiler evaluates the whole expression to False, exits and moves on to the next code execution line. In Access VBA, the if statement does not support short-circuit evaluation but you can mimic it. Use either an if..else if..else if statement or nested if statements. You will find that your code that makes use of this technique will be clearer and easier to maintain than the short-circuit equivalent and will execute faster than ignoring this issue. | |
Access Message Board Ask this group a question! Select a topic below or Visit Access Board Now!
American I.T. Message Board Ask this group a question! Select a topic below or Visit American I.T. Board Now!
A classic post from our Unified Modeling Language (UML) topic... Introduction to the Unified Modeling Language by Mike PrestwoodThis introduction to the UML covers symbol usage, definitions, and creating diagrams. The UML standardizes what diagrams with what symbols for what situation. The UML is complete with diagrams for analysis, design, and coding. Use use case diagrams to document how users (actors) use a system (a use case). Use class and object diagrams for the design and coding of a system. A class is the prototype for an object. An object has attributes (properties) and the current values of those properties is the current state of the object. |
Monthly Analyst Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Unified Modeling Language (UML) Topic. An actor is a person or system that fills a role and interacts with another system. An actor supplies a stimulus to the system.
When establishing actors of your system, do not think in terms of a specific person, think in terms of their role. Do not name an actor the name of the person filling the role. If Bob is our Sales Clerk, name your actor Sales Clerk (not Bob). From our Unified Modeling Language (UML) Topic Resource Link of the Month: DotNetCoders.com UML Home Page UML is a modeling language for specifying, visualizing, constructing, and documenting the artifacts of a system-intensive process. This guide introduces you to the 9 standard diagrams in the UML 1.4 specification. These diagrams can be divided into two groups: Structural diagrams, which model the organization of the solution, and Behavioral diagrams, which model the functionality of the solution. | |
Analyst Message Board Ask this group a question! Select a topic below or Visit Analyst Board Now!
A classic post from our Language Basics topic... Using On Error Resume Next by Mike PrestwoodYou can use "On Error Resume Next" to suppress errors and "On Error Goto 0" to stop suppressing errors. |
Monthly ASP Classic Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Tool Basics Topic. Code Snippet of the Month Language Overview: Class-based language. Although you can create classes, ASP is not fully OOP. It is a traditional language with a few OOP extensions. You code in a traditional approach using functions, procedures, and global data, and you can make use of simple classes to help organize your reusable code.
Target Platforms: ASP Classic is most suitable for creating websites targeting any browser (IIS Web Server with ASP Classic installed or equivalent). From our ASP Classic Topic. Error: error 'ASP 0208 : 80004005'
Cannot use generic Request collection
/_private/footer_content.inc, line 72
Cannot use the generic Request collection after calling BinaryRead. Explanation: Although you can use the generic request collection, as in Request("SomeValue"), for either Request.Form("SomeValue") or Request.QueryString("SomeValue"), it's best to avoid the generic request collection until it's really needed. The generic request collection causes problems in some circumstances. For example, you cannot call the generic request collection after a BinaryRead. From our ASP Classic Topic Resource Link of the Month: VBScript Language Reference on Microsoft.com The best resource for quickly looking up ASP Classic commands. Even better than having a reference book. From our Language Details Topic. Question: What is the syntax in ASP Classic for using an associative array? Answer: Use a dictionary: Dim StateList set StateList = Server.CreateObject("Scripting.Dictionary") StateList.Add "CA", "California" Response.Write "NV is " & StateList("NV")For more examples, refer to our ASP Classic Associative Array (Scripting.Dictionary) article. From our Language Details Topic Tip of the Month Although you can use the generic request collection, as in Request("SomeValue"), for either Request.Form("SomeValue") or Request.QueryString("SomeValue"), it's best to avoid the generic request collection until it's really needed. Use a For Each loop to loop through elements. | |
ASP Classic Message Board Ask this group a question! Select a topic below or Visit ASP Classic Board Now!
A classic post from our OOP topic... C# Abstraction (abstract, override) by Mike PrestwoodC# supports abstract class members and abstract classes using the abstract modifier. An abstract class is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (implicitly virtual), property, indexer, or event in an abstract class. You can add abstract members ONLY to abstract classes using the abstract keyword. |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our WebForms Coding Tasks Topic. Code Snippet of the Month This code shows how to ask the webserver where the site's root directory is, and how to convert a relative path (like /Uploads) to the full filesystem path. This will work across environments (i.e. Development/QA/Production). string ServerPath2 = Server.MapPath(@"~/");
This gives the full path to the webserver's root directory.
Example:
"C:\\Documents and Settings\\All Users\\Documents\\Visual Studio 2008\\WebSites\\MySite\\" string ServerPath2 = Server.MapPath(@"~/Uploads");
This gives the full path to the Uploads subdirectory - even if it is a virtual directory in another location!
...even if it is not a browsable web directory (such as APP_CODE or APP_DATA).
From our OOP Topic. Code Snippet of the Month In C#, you specify each class and each class member's visibility with an access modifier. The C# access modifiers are the traditional public, protected, and private plus the two additional .Net modifiers internal and protected internal.
Internal indicates members are accessible from types in the same assembly. Protected internal indicates members are accessible from types in the same assembly as well as descendant classes. OO purist might object to internal and protected internal and I suggest you choose private, protected, or public over them until you both fully understand them and have a need that is best suited by them.
The default for class and class members is Internal (members are accessible from types in the same assembly). This is different than with interfaces where the default for an interface is Internal but an interface's members are always public -- which makes sense but is noteworthy.
With both classes and interfaces, if you make a class public, the members are public. This applies to the other access modifiers too. For example, if you make a class protected, the members default access modifiers are protected. public class Cyborg {private String FName; } From our C# Topic. Variables that only contain a reference to the values. Reference data type variables only contain a reference to it's constituent value. Reference data types include objects and strings. Assignment of one reference type variable to another copies the reference, thus changes to the values in one variable changes the values in the other. From our WebForms Coding Tasks Topic Resource Link of the Month: The Official Microsoft ASP.Net Site Microsoft portal site for the ASP.NET development community. From our WinForms Topic. Question: Can I use a Win32 DLL in my Visual Studio.Net application? Answer: Yes. The trick is to use the [DllImport] attribute, followed by declarations for each of the DLL's functions and procedures. | |
C# Message Board Ask this group a question! Select a topic below or Visit C# Board Now!
A classic post from our Standard C++ topic... Using cin and cout by Mike PrestwoodUsing cin and cout in C++ to output values. |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our C++ Language Basics Topic. Code Snippet of the Month Language Overview: C++ is a hybrid traditional C and OOP language. You code either in a traditional approach using functions, procedures, and global data, or you code using an OOP approach, or a mixture of both.
Target Platforms: C++ is suitable for creating any type of native code applications for many different platforms. The focus of this information is on creating native code Win32 applications that run on Microsoft Windows. From our Classic C Language Topic. An operation with only one operand (a single input) such as ++X and --Y. From our C++Builder Specific Topic Resource Link of the Month: Video & Audio: CDN C++Builder TV Lots here! C++Builder TV is part of CodeGear's developer network. Contains both audios and videos. From our Visual C++ Specific Topic. Question: What is the main usage of Visual C++? Can I create .Net apps with it? Answer: Yes, you can build .Net runtime applications with Microsoft's Visual C++ as well as building native code Win32 applications and rich 2D and 3D games with The Game Creators SDK. You can use it to create other types of applications too including MFC and Smart Devices applications. From our Classic C Language Topic Tip of the Month In C and C++, it is better to only use unary operators for incrementing and decrementing variables because they produce fewer instructions and run faster. | |
C++ Message Board Ask this group a question! Select a topic below or Visit C++ Board Now!
A classic post from our Borland Database Engine topic... How to check what BDE version is installed. by Mike PrestwoodQ. I've updated my BDE from version 5.01 to version 5.2.0.2 but the About BDE Administrator dialog still shows version 5.01?
A. Your update may have taken. Updates typically just replace the DLLs the BDE uses so you may have the latest installed. Version Information To see what version of the BDE engine
you "actually" have installed, you need to look at the Version
Information from within the BDE Administrator. Select Object | Version
Information... to see the DLL version numbers A classic post from our Object Orientation (OO) topic... An Introduction to Object Orientation by Mike PrestwoodOverview and introduction to object orientation. When you analyze, design, and code in an OO way, you "think" about objects and their interaction. This type of thinking is more like real life where you naturally think about how "this object" relates to "that object". Classes represent the "design" of an existing object. The values or properties of an existing object is it's current state. When designing classes, OO supports many features like inheritance (like real-life where you inherit your parents characteristics), encapsulation (hiding data), and polymorphism (the ability of one thing to act like another or in different ways). |
Monthly Coder Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Object Orientation (OO) Topic. In OOP languages, members of a class have a specific scope that indicates visibility. Standard visibility includes private, protected, and public. Private members are usable by the defining class only (fully encapsulated). They are invisible outside of the class except by friendly classes.
Protected members are usable by the defining class and descendant classes only (plus friendly classes). Public members are usable wherever its class can be referenced. From our General Info, Installation, etc. Topic Object-Relation Mapping & Code-Generator Tool From our General Coding Concepts Topic Tip of the Month Most languages support a branching mechanism like if a..elseif b..elseif c. If a evaluates to true, b and c will not execute. The tip is to sort your branching conditions by most to lease used for faster code. | |
Coder Message Board Ask this group a question! Select a topic below or Visit Coder Board Now!
A classic post from our DBA & Data topic... Data Normalization - The Normal Forms by Jeffrey K. Tyzzerby Jeffrey K. Tyzzer. In 1970, Dr. E.F. Codd's seminal paper "A Relational Model for Large Shared Databanks" was published in Communications of the ACM. This paper introduced the topic of data normalization, so-named because, at the time, President Nixon was normalizing relations with China.
Data normalization is a technique used during logical data modeling to ensure that there is only one way to know a fact, by removing all structures that provide more than one way to know the same fact as represented in a database relation (table). The goal of normalization is to control and eliminate redundancy, and mitigate the effects of modification anomalies -- which are generally insertion and deletion anomalies. (Insertion anomalies occur when the storage of information about one attribute requires additional information about a second attribute. Deletion anomalies occur when the deletion of one fact results in the loss of a second fact).
Normalization There are six generally recognized normal forms of a relation: first normal form, second normal form, third normal form, Boyce/Codd normal form, fourth normal form, and fifth normal form, also called projection/join normal form. Other normal forms (e.g., Domain/Key) exist but will not be discussed here. The normal forms are hierarchical, i.e., each normal form builds upon its predecessor. Although many people consider a relation to be normalized only when it is in third normal form, technically speaking, a relation in only first normal form can be considered... |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our DBA & Data Topic. Definition of the Month: ANSI ANSI is an acronym for American National Standards Institute. ANSI - An acronym for American National Standards Institute. The ANSI set consists of 8-bit codes that represent 256 standard characters, letters, numbers, and symbols. The ANSI set is used by Windows applications. From our DBA & Data Topic http://www.oracle.com/database/berkeley-db/xml/index.html From our DBA & Data Topic. Error: The ORA-00900 error displays automatically when erp is running properly but may be caused by a constraint violation. Explanation: 1)it may be beacuse of constraint violation. From our Interbase Education (Audio/Video) Topic Resource Link of the Month: Video & Audio: CDN Interbase TV Lots here! Interbase TV is part of CodeGear's developer network. Contains both audios and videos. From our Microsoft SQL Server Topic. Question: What is the differences between Char, NChar, VarChar, and NVarChar? Answer: A Char field is a text field of a specific length. For example, a Char(50) field takes up 50 characters of storage in most databases even if you only store 1 character in it., or even none.
A VarChar field is a text field of variable length. For example, a VarChar(50) field can be up to 50 characters but if less is stored, the length of the field is somewhat less than 50. If you only store 1 character in a VarChar, then generally only 1 character of space is taken up in storage.
The "N" in NChar and NVarChar stands for National character which means you can store unicode text. NChar and NVarChar take up twice as much storage space. From our DBA & Data Topic Tip of the Month The three normal forms can be summed up in the following phrase: “All the fields of a table should relate to the key, the whole key, and nothing but the key.” | |
DBA Message Board Ask this group a question! Select a topic below or Visit DBA Board Now!
A classic post from our Using Data topic... Delphi Instance Counter by Mike PrestwoodImplement static member data in Delphi with variables declared in the implementation section (unit scope). Increment and decrement variable in constructor and destructor. Then use a class function to surface the variable's value publicly. A classic post from our ADO topic... TADOTable: When The Obvious Can Be Wrong! by Wes PetersonWith the introduction of support for ADO Database access, Borland gave us TADOTable, a quick, easy-to-use component to begin the job of outfitting an existing application with a newer database.
But TADOTable is no TTable! It comes with some baggage you can do without. |
Monthly Delphi Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Language Basics Topic. Code Snippet of the Month Language Overview: Delphi programming language is a type-safe language consisting of hybrid traditional Pascal and OOP features. You code either in a traditional approach using functions, procedures, and global data, or you code using an OOP approach, or a mixture of both.
Target Platforms: Delphi for Win32 is most suitable for creating native code Win32 applications that run on Microsoft Windows. From our Delphi for Win32 Topic Resource Link of the Month: Book: Delphi 2007 for Win32 Development Essentials Bob Swart, affectionately known by some of us as "Dr. Bob," has long been a great resource for details about Delphi development.
I'll never forget how, when I first had to write a Windows service in Delphi, Dr. Bob's articles provided the most lucid explanations about all the ugly details of Windows Services.
Swart, being a well recognized Delphi authority, I'll read any thing the good doctor publishes. I'm drooling to get my hands on this one. From our Using Controls Topic. Question: I have a form with two TEdit components on it. For the OnChange event for both, it clears the contents of the TEdit that is not changing. However, when clearing on TEdit the OnChange fires and clears the other TEdit, this then causes the OnChange in the other TEdit to fire. Fortunately, the second time the OnChange hits the original TEdit, it is already clear and nothing happens.
How can I prevent the circular event firing? Answer: The simplest way to prevent the circular event firing is to check the form's ActiveControl property. This property indicates which component currently has the focus.
The OnChange event should read as follows: procedure TForm1.EditChange(Sender: TObject);
begin
if TEdit(Sender).Name <> TEdit(ActiveControl).Name then
begin
// do processing
end;
end;
From our Language Basics Topic Tip of the Month Format the IF/Endif for easy reading. I have found this to be easy to read and follow: if ( (something = somethingelse) and (x = y) and (z = a) ) then begin .. end;
To indent the structure and line up the parenthesis makes it, I feel, much easier to read. | |
Delphi Message Board Ask this group a question! Select a topic below or Visit Delphi Board Now!
| Thread Starter | Replies | Last Post | Topic | | Problem Using the TIWComboBox Hi everyone, I'm not sure where I should exactly put this post, so I will probably try a couple of places.
Anyway, I am new to the intraweb. I am ... | 2 |
Thank you so much for your help! What I ended up doing was this:
IWCombobox.NoSelec... 12/8/2008 | Delphi Internet Solutions |
A classic post from our Java topic... Stacks in Java by Stephen BerryProvides the definition of a stack and an example of its implementation in Java A classic post from our OOP topic... Implementing the Composite and Visitor Patterns in Java by Evan EgaliteImplementing design patterns can be difficult and little sample code exists that walks you through the process. The purpose of this article is to walk through the implementation of a program that uses the Composite and Visitor design patterns. The sample project is written in the object-oriented language, Java, but it could just as easily have been written in C++. |
Monthly Java Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Tool Basics Topic. Code Snippet of the Month Promoted as a single source cross-platform runtime system (Write Once, Run Anywhere). Java builds on and in some ways simplifies the object oriented features of C++. Java applications are typically compiled to byte-code and can run on any platform running the Java Virtual Machine (JVM).
Target Platforms: Java is suitable for creating many types of cross-platform applications that target the JVM including desktop business applications. From our Java EE Topic If you need support for Java EE and Web development, consider Eclipse IDE for Java EE Developers. The Eclipse IDE for Java EE Developers contains everything you need to build Java and Java Enterprise Edition (Java EE) applications. Considered by many to be the best Java development tool available, the Eclipse IDE for Java EE Developers provides superior Java editing with incremental compilation, Java EE 5 support, a graphical HTML/JSP/JSF editor, database management tools, and support for most popular application servers. From our JBuilder Topic Resource Link of the Month: Video & Audio: CDN JBuilder TV Lots here! JBuilder TV is part of CodeGear's developer network. Contains both audios and videos. | |
Java Message Board Ask this group a question! Select a topic below or Visit Java Board Now!
A classic post from our Coding Tasks topic... You Are Here Location Script by Mike PrestwoodA Javascript "You are here:" location script that uses your folder path to indicate location. |
Monthly JavaScript Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Beginners Corner Topic. Code Snippet of the Month Language Overview: Class-like language with limited but usable class-like and object-like functionality but no formal inheritance nor visibility control, etc.
Target Platforms: JavaScript is most commonly used to extend HTML by executing code on the browser side when visiting a website. It does have other uses including server side scripting and AJAX. From our Beginners Corner Topic. Question: What is JavaScript? Answer: JavaScript is a platform-independent, event-driven, interpreted programming language developed by Netscape Communications Corp. and Sun Microsystems. Originally called LiveScript (and still called LiveWireTM by Netscape in its compiled, server-side incarnation), JavaScript is affiliated with Sun's object-oriented programming language JavaTM primarily as a marketing convenience. They interoperate well but are technically, functionally and behaviorally very different. JavaScript is useful for adding interactivity to the World Wide Web because scripts can be embedded in HTML files (i.e., web pages) simply by enclosing code in a tag pair. All modern browsers can interpret JavaScript -- albeit with some irritating caveats. (More about them below.) In practice, JavaScript is a fairly universal extension to HTML that can enhance the user experience through event handling and client-side execution, while extending a web developer's control over the client's browser. And that's worth a FAQ. | |
JavaScript Message Board Ask this group a question! Select a topic below or Visit JavaScript Board Now!
Monthly Linux Users Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Linux Development Software Topic Popular development tool for KDE. The KDevelop-Project was founded in 1998 to build up an easy to use IDE (Integrated Development Environment) for KDE. | |
Linux Users Message Board Ask this group a question! Select a topic below or Visit Linux Users Board Now!
A classic post from our Interactive Paradox: Using Data topic... What are aliases? Why use them? by Mike PrestwoodOverview of why using BDE aliases are a good idea. A classic post from our OPAL: Language Details topic... Looping in ObjectPAL by Mike PrestwoodUsing loop structures in ObjectPAL (for, forEach, scan, while, and looping with timers). |
Monthly Paradox Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our OPAL: Language Basics Topic. Code Snippet of the Month In ObjectPAL, you declare one or more constant values within a const..endConst block. Optionally, you can specify the dataType by casting the value as part of the declaration. If you do not specify the data type, the data type is inferred from the value as either a LongInt, a Number, a SmallInt, or a String. As with variables, the const..endConst block can come within a method or procedure as the first bit of code, or in the Const window. Putting it above the method or procedure is allowed but has no significance so don't. const kFeetToMeter = Number(3.2808) kMeterToFeet = Number(.3048) kName = String("Mike") kCA = "California" ;String inferred. endConst From our OPAL: Language Basics Topic. ObjectPAL stands for Object Paradox Application Language. ObjectPAL stands for Object Paradox Application Language. The acronym portion of the name (PAL) comes from the DOS version of Paradox. The term Object was added to the name because ObjectPAL is an object-based event-driven programming environment that is much more advanced then its PAL predecessor. From our Paradox & ObjectPAL Topic This simple game demonstrates disabling keys, generatingsounds, and random numbers. This is a child's keyboard game for ages up to about age 4. All the keys are disabled except for the letters and the numbers. When the player presses a letter or number a random sound is generated and the character is shown. This games teaches young ones to press just the character keys. It also demonstrates several techniques including disabling keys, displaying images, generating sounds, and generating random numbers. From our Installation, Setup, & BDE Topic. Error: Multiple Net Files in use error. Explanation: If you wish to run more than one copy of Paradox on the same machine, you must configure each to point to the same Net Folder. From our Installation, Setup, & BDE Topic Resource Link of the Month: Borland Database Engine (BDE) Downloads Borland's BDE download page. Another good resource is Borland's BDE Utilities and Updates page. From our Paradox for DOS Topic. Question: Does Paradox for DOS run on Vista? Answer: Yes, but you must use the compatibility mode. From our Interactive Paradox: Using Data Topic Tip of the Month In the Restructure dialog box, you can use the Default column of the field roster to add a field called ModifyTimeStamp to every table in your project and set its Default value to NOW. These types of audit fields can be very helpful in business situations and are critical in many. Other types of audit fields you can add to the end of tables include CreateTimeStamp and EmployeeID. | |
Paradox Message Board Ask this group a question! Select a topic below or Visit Paradox Board Now!
| Thread Starter | Replies | Last Post | Topic | | Paradox 9/10/11 and Vista a... I found a press release today on the Corel site from about a month ago with this interesting sentence:[quote]In addition, Corel has also released a special upda... | 64 | {Too Long} 10/6/2009 | Paradox Setup, Vista, etc. | | Sporadic "Permission denied... I have a Paradox for Windows app I developed more then ten years ago. Recently my client has experienced inconsistent "Permission denied." error... | 8 | You're welcome Tony. Glad it worked out. 1/1/2009 | QBE & SQL | | Server 2K8-Pdox 9- cannot a... Between Server 2008 and Vista, I think I may take up a new profession like basket weaving...:)
So I install Paradox 9 on Server 2008, and cannot apply the sp... | 1 | Hi Scott,
Any luck with this issue? Can you run the installation in a compatibility mode? 1/1/2009 | Paradox Setup, Vista, etc. | | Paradox 9 vs Paradox 10/11 Hi Is there some advantage in upgrading an distributable application from Paradox 9 to Paradox 10/11? If yes, can I still buy the versions 10/11, including the... | 4 | {Too Long} 12/30/2008 | Paradox Runtime & Distribution | | Problem when running exe fr... We work with Paradox 9. We must run a small application .net to upload several tables dBase IV to a Web site. When we tried to run the application from within P... | 4 | {Too Long} 12/23/2008 | Paradox to/from Other Data Sources |
A classic post from our Language Reference topic... Perl Operators by Mike Prestwood |
Monthly Perl Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Beginners Corner Topic. Code Snippet of the Month Language Overview: Perl is a stable, cross platform programming language.
Target Platforms: Perl is most suitable for creating websites targeting any browser (any web server with the Perl module installed).
History: PERL is an acronym for Practical Extraction and Report Language. It is used for mission critical projects in the public and private sectors. Perl is Open Source software, licensed under its Artistic License, or the GNU General Public License (GPL). Perl was created in 1987 by Larry Wall. From our Perl Topic ActivePerl is the industry-standard Perl distribution, available for Windows, Linux, Mac OS X, Solaris, AIX and HP-UX. Developers worldwide rely on ActivePerl's completeness and ease-of-use, while corporate users protect their infrastructure and stay competitive with quality-assured ActivePerl business solutions. Includes core Perl, popular modules, the Perl Package Manager (PPM), and complete documentation. The Windows version provides additional features that have made ActivePerl the worldwide standard for Perl on Windows. | |
Perl Message Board Ask this group a question! Select a topic below or Visit Perl Board Now!
A classic post from our PHP topic... PHP and MySQL Basics by Adam LumThe basics to get you going in PHP with a MySQL Database. |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Beginners Corner Topic. Code Snippet of the Month PHP is a hybrid language with both traditional PHP and OOP features. PHP is widely-used general-purpose scripting language that is especially suited for web development and can be embedded into HTML. PHP has been used to create some amazing web content, particularly outstanding message boards.
Target Platforms: PHP is most suitable for creating websites targeting any browser (any web server with PHP installed). From our PHP Topic. Definition of the Month: PHP A recursive acronym that stands for:
PHP: Hypertext Preprocessor
A recursive acronym that stands for: PHP: Hypertext Preprocessor The original PHP/FI stood for: Personal Home Page / Forms Interpreter From our Education (Audio/Video) Topic Resource Link of the Month: Video: Delphi for PHP 2 Overview Overview and introduction by Nick Hodges (Delphi for PHP product manager). From our Delphi for PHP Topic. Question: What PHP version does Delphi for PHP support? Answer: Delphi for PHP is based on PHP version 5. Meaning, the VCL for PHP extends the standard libraries that ship with PHP 5. This also means you can deploy your Delphi for PHP website on any hosted website that has PHP 5 installed.
Note: You can deploy your Delphi for PHP websites on the hosted websites we offer on our http://www.prestwoodhosting.com web hosting services website. | |
PHP Message Board Ask this group a question! Select a topic below or Visit PHP Board Now!
Prestwood Message Board Ask this group a question! Select a topic below or Visit Prestwood Board Now!
A classic post from our Message Board Help topic... Become a Prestwood Moderator by Mike PrestwoodHow to become a moderator and moderator's guide. |
PrestwoodBoards Message Board Ask this group a question! Select a topic below or Visit PrestwoodBoards Board Now!
A classic post from our OOP topic... Delphi Prism Abstraction (abstract, override) by Mike PrestwoodPrism supports abstract class members and abstract classes using the abstract keyword. An abstract class is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (method, procedure, or function), a property, or an event in an abstract class. You can add abstract members ONLY to abstract classes using the abstract keyword. Alternatively, you can use the empty keyword in place of abstract if you wish to instantiate the abstract class. |
Monthly Prism Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Language Basics Topic Resource Link of the Month: Delphi Prism Syntax compared with Win32 Delphi This page provides a summary of Delphi Prism syntax differences for customers familiar with Win32 Delphi.
From our Tool Basics Topic. Question: How close is the syntax for Delphi for Win32 and Delphi Prism? Answer: Pretty close. You will definately be comfortable but there are differences. Delphi Prism includes a "compatibility" switch you can use that will enable certain "Delphi for Win32" language features so you can increase your comfort level. This option can be set on a per-project basis as part of the project options tab.
Although I'm just getting started, I will be documenting differences in my Delphi and Prism Cross Reference Guide. This guide will help when you switch from one language to the other. | |
Prism Message Board Ask this group a question! Select a topic below or Visit Prism Board Now!
| Thread Starter | Replies | Last Post | Topic | | Anyone got Delphi Prism? Anyone currently using or studying Prism? If so, post here. I'd like to know if you're studying it or using it on a real project. Also, did you use Delphi, Delp... | 4 | I have it, just the trial version, but not able to compile in VS 2008 .Net 3.5 Framework. Worki... 12/2/2009 | Delphi Prism |
Monthly PSDP Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our PSDP Checkpoints Topic. A checkpoint is NOT a task, but rather a milestone. A point in the project that marks significant progress. Although PSDP contains many standard checkpoints, the executive sponsor and project manager must agree on the checkpoints they wish to track. Once established, tasks can be associated with a checkpoint and you can easily view what tasks are completed per checkpoint and what checkpoints do NOT have tasks established yet. From our PSDP Phases Topic. Question: How do PSDP Phases relate to PSDP Artifacts and the usage of each? Answer: They don't really. In PSDP Online, you set the PSDP Phase of tasks and their two sub-types defects and artifacts only. Requirement Items, Design Items, and Test Scripts do not use the concept of PSDP Phases because they are documentation-only items. You add various development tasks set to the appropriate phase to create, flesh out, and use them to build and test but they do not contain workflow themselves. The PSDP Phase of Defects is always Phase 6 Testing & Rework. Although Tasks and PSDP Artifacts can be set to any PSDP Phase, their default is Phase 2 Requirements. For PSDP Artifacts, most of the time you will leave it set to it's default. On the other hand, you will set tasks to whatever phase the task belongs to. From our PSDP & Process Topic Tip of the Month When youre finishing an application for a client, nothing is more frustrating than the client telling you that the application is all wrong. Do yourself a favor: During or shortly after the planning stage, be sure to echo to the client what you heard him or her say. Also consider putting your general plan in writing and have both you and your client sign it. This approach makes you a more professional consultant. | |
PSDP Message Board Ask this group a question! Select a topic below or Visit PSDP Board Now!
A classic post from our Hardware topic... Great Sound for $30? by Wes PetersonFor a while, now, most new computers have come equipped with a sound system on the main board. Unfortunately, many of them are not very good. Would you believe that a simple, $30 upgrade can deliver superb sound and recordings? |
Monthly Tech Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Hardware Topic. Definition of the Month: MbPS Megabits (mb) per second. A bit is either a 0 or 1 (a digit) and a byte is a string of 8 bits. 8 mbps (megabits per second) equals 1 MB/sec (megabytes per second). Therefore 54 mbps is equal to a max of 6.75 MB/second.
From our Software Topic. Question: I set up the SMTP virtual server on my web hosting server. I can send from other boxes, but not from websites hosted on the box that has the SMTP Virtual Server. Any ideas? Answer: Check the IP address of the SMTP Virtual Server. If you want to serve ALL IP's on that box, then set it to All Unassigned IPs. | |
Tech Message Board Ask this group a question! Select a topic below or Visit Tech Board Now!
A classic post from our General, Getting Started, etc. topic... Writing as a process by Ramesh RWriting applies to any sort of information. However, writing in general is a generic process that involves many components. Writing itself is a big process that includes many things within itself. It is not easy to write and convey information to end user. Writing require experience, grammar skills, domain knowledge, process knowledge, etc. By this, we would be able to understand the importance of writing. A classic post from our General, Getting Started, etc. topic... Knowledge Management by Ramesh RAn overview of knowledge management in corporate companies with the basics providing information peratining to such knowledge management teams that lead to greater organizational growth and individuals growth also. |
Monthly Tech Writer Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our MS Windows Help Files (.HLP) Topic Converts HLP files to many formats including PDF, RTF, HTML, DOC, CHM, TXT, DBF, XML, CSV, XLS, MDB, MCW, etc. From our MS Compiled Windows Help (.CHM) Topic Resource Link of the Month: Help and Manual: A great authoring tool Help and Manual is a mature, and reasonably-priced, authoring tool for WinHelp, Compiled HTML Help (CHM); plus PDF, and Word documentation.
Under the covers, your authoring project is maintained in XML.
It can convert existing help and documentation from a number of formats, and it is very author-friendly. | |
Tech Writer Message Board Ask this group a question! Select a topic below or Visit Tech Writer Board Now!
Monthly Tester Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Beginner's Corner Topic. CRUD is an acronym that stands for create, read, update, and delete. A CRUD matrix documents what objects (forms, reports, libraries, and scripts) access what data elements in a database. It can help you test your software on large projects and is critical for maintaining a large application. If you make changes in one form or script, a CRUD matrix can tell you what other forms, libraries, scripts, and reports will need to be tested. From our Beginner's Corner Topic Tip of the Month If you are a single developer, try to find someone else to exercise your program. As the programmer, you have certain ideas of how a user will use your application. These ideas probably apply to about half the users. | |
Tester Message Board Ask this group a question! Select a topic below or Visit Tester Board Now!| Topic | Threads | Posts | Last Active Thread | | Testing | 1 | 0 | No Subject! |
Monthly V.FoxPro Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Visual FoxPro (VFP) Topic Resource Link of the Month: AOL FoxPro Resources Great resource! FoxPro Resources is a website devoted to serving the needs of all users of FPD/FPW 2.x. All the information provided on these pages will apply to both the DOS and Windows versions of FoxPro, unless otherwise noted. Although there were also Mac and UNIX versions of FoxPro, no specific information on those platforms is available on this site. | |
V.FoxPro Message Board Ask this group a question! Select a topic below or Visit V.FoxPro Board Now!
Monthly VB Classic Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Tool Basics Topic. Code Snippet of the Month Language Overview: Class based language. Although you can create classes, VB Classic is not fully OOP. It is a traditional language with a few OOP extensions. You code in a traditional approach using functions, procedures, and global data, and you can make use of simple classes to help organize your reusable code. It also supports one-level abstract class to implemented class using the Implements keyword.
Target Platforms: Microsoft Visual Basic 6 is most suitable for creating Windows desktop applications that use the VB600.DLL runtime DLL within Microsoft Windows. From our Tool Basics Topic Tip of the Month Short-circuit evaluation is a feature of most languages where once an evaluation evaluates to False, the compiler evaluates the whole expression to False, exits and moves on to the next code execution line. In VB Classic, the if statement does not support short-circuit evaluation but you can mimic it. Use either an if..else if..else if statement or nested if statements. You will find that your code that makes use of this technique will be clearer and easier to maintain than the short-circuit equivalent and faster than ingnoring the issue. | |
VB Classic Message Board Ask this group a question! Select a topic below or Visit VB Classic Board Now!
A classic post from our OOP topic... VB.Net Class..Object (Class..End Class..New) by Mike PrestwoodDeclare and implement VB.Net classes after the form class or in their own .vb files. Unlike VB Classic, you can have more than one class in a .vb class file (VB classic uses .cls files for each class). A classic post from our OOP topic... VB.Net Abstraction (MustInherit, MustOverride, Overrides) by Mike PrestwoodVB.Net supports abstract class members and abstract classes using the MustInherit and MustOverride modifiers.An abstract class is indicated with a MustInherit modifier and is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (implicitly virtual), property, indexer, or event in an abstract class. You can add abstract members ONLY to abstract classes using the MustOverride keyword. Then you override it in a descendant class with Overrides. |
Monthly VB.Net Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our WebForms (ASP.Net) Topic. Question: How do you launch a Windows application in VB.Net? How do I open the default browser to a specific URL? Answer: 'Launch a Windows application. System.Diagnostics.Process.Start("notepad.exe") 'Or just... Process.Start("calc.exe") 'Open a website with the default browser. System.Diagnostics.Process.Start("http://www.prestwood.com") | |
VB.Net Message Board Ask this group a question! Select a topic below or Visit VB.Net Board Now!
| Thread Starter | Replies | Last Post | Topic | | Vb .net connecting to terra... Hi does anyone know of any ado .net that can connect to a terradata dbase.I havent tried it yet but I'm not sure sqlclient will work.Terradata is a mainframe db... | 3 | Thanks Dan. That's probably a better one. 12/31/2008 | VB.Net Coding | | Dictionary Hebrew/English I am a beginner in Visual Basic 2005. I have been working on a Hebrew-English dictionary. I used the "If" statement and then the "Select Case" statement but as ... | 1 | You don't mention where the dictionary words come from (a file?), but it sounds like you are trying ... 12/5/2008 | VB.Net Coding |
A classic post from our Beginners Corner topic... Using FTP by Mike PrestwoodHow to use FTP to upload your web site pages. A classic post from our Cascading Style Sheets (CSS) topic... CSS-P: Demystifying HTML Element Positioning Contexts by Evan EgaliteThe purpose of this article is to show how to use Cascading Style Sheets to control the layout of nested HTML elements on a page, and to demystify the confusing absolute and relative element positioning scheme used by the browser. |
Monthly Web Design Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Cascading Style Sheets (CSS) Topic. Code Snippet of the Month The following code snippet allows you to import a cascading style sheet (CSS) into another CSS file. The main benefit is this allows you to organize your styles and to create common CSS files. @import url('/style_core.css'); From our Artistic (design, layout, etc.) Topic Add [d_rop]-down menus to your website. DHTML Menu Builder is the tool of choice for building Javascript menus for our Prestwood family of websites. Complete dhtml menus can be built, in a matter of minutes, without writing a single line of code. No special plugins and no programming or HTML knowledge required, with just DHTML Menu Builder you'll be able to create great looking and functional dhtml menus for all your web sites. From our Artistic (design, layout, etc.) Topic. Question: Any suggestions on buidling a DHTML/Javascript menu for my web site? Answer: Don't reinvent the wheel. Use one of the many menu builders on the market. I use a product called DHTML Menu Builder. He's worked out all the problems and it really didn't seem worth my time since someone else had already worked out all the issues between different browsers and browsers on different OSes. His menus still aren't perfect, but boy, they sure are close.
The software is located at http://software.xfx.net/ From our HTML Language Reference Topic Tip of the Month Although Internet Explorer supports putting an "A" link tag around a table "TD" cell, do not do it because other browsers such as FireFox and Safari don't support a link around a cell. | |
Web Design Message Board Ask this group a question! Select a topic below or Visit Web Design Board Now!
Monthly Web Owners Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Standard Website Content Pages Topic Resource Link of the Month: Example Security & Privacy Policy This is our security and privacy policy. You are welcome to use it for your website. You will most likely want to update it a bit as it's pretty specific to our website. | |
Web Owners Message Board Ask this group a question! Select a topic below or Visit Web Owners Board Now!
A classic post from our Win Users topic... See Inside svchost.exe by Mike PrestwoodSee what services are running inside of SvcHost.EXE. See what is causing your 99% CPU usage. A classic post from our Windows XP topic... Hidden Searching Secrets in Windows XP by Joshua DelahuntyYou've probably used the Find Files feature of Windows in the past. And it seemed slow. By enabling the Indexing Service feature, you will be able to speed up this process, and make searching files, including phrases and words internal to the files on your drive, MUCH faster. Just follow the steps below, and you'll be on your way to a much faster find feature. |
Monthly Win Users Lesson | Learn! Review! Keep Up! |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our Windows Vista Topic. Question: How many processors can Windows Vista use? Answer: Vista targets consumers so it does have limits. Vista Business, Enterprise, and Ultimate OS support 2 physical CPUs; others support one only. There is no limit on the cores. So, for example, you could have 2 physical CPUs with 2 cores each and Vista Business will fully utilize all four processors. If you need more, use the Windows server OSes. | |
Win Users Message Board Ask this group a question! Select a topic below or Visit Win Users Board Now!
| Thread Starter | Replies | Last Post | Topic | | I need to create an rtf file. I need a Rich Text file for a program I'm using (CorelDraw - merge).
I'm not sure if it works to create an rtf file using ObjectPAL but that would be the easiest, otherwise I would like to know how t... | 0 | New! 9/8/2010 | ObjectPAL | | TMonthCalendar and OnGetMon... I've noticed a problem with the OnGetMonthInfo event of TMonthCalendar. (IE. MonthCalendar1GetMonthInfo(Sender: TObject; Month: Cardinal; var MonthBoldInf... | 1 | Try such a nice piece of code as Calendar.Date:=Calendar.Date+31; C... 9/4/2010 | Delphi VCL | | PrinterSetCurrent I have the following code on a form to switch printers behind the scenes. There is a table that lists the users printers and a field in that table that defines what the printer is used for (i.e.... | 0 | New! 9/2/2010 | ObjectPAL | | ReportPrintInfo DynArray Can anybody explain to me the syntax to use ReportPrintInfo - the syntax # 3 version that uses an array? I need to set the PrintToFile option to create a postscript file and it seems to only be availa... | 0 | New! 9/2/2010 | ObjectPAL | | ReportPrintInfo DynArray Can anybody explain to me the syntax to use ReportPrintInfo - the syntax # 3 version that uses an array? I need to set the PrintToFile option to create a postscript file and it seems to only be availa... | 0 | New! 9/2/2010 | ObjectPAL | | Printing forms as reports d... I have a 3 page form that I need to open as a report. When I open it, however, I only get the first page and a half. Any ideas? I have to do i... | 1 | Figured it out - has to do with the page size - ended up having to create 3 seperate reports but it ... 9/2/2010 | Paradox Reports | | Changing account records ba... Does anyone know how to write this Paradox 4.5 code into a Paradox 11 script?
This works in my old Paradox. It goes through a list of account names finds the account in another table and scans to pro... | 0 | New! 8/29/2010 | ObjectPAL | | Windows 7 Paradox 9 report ... I've successfully installed Paradox 9 on a windows 7 workstation linked to SBS 2008.However, when I went to amend a report by redefining a field, Paradox crashe... | 9 | I've tried everything suggested in previous posts. Sometimes it works and sometimes it crashes. My w... 8/24/2010 | Paradox Reports | | Server 2003 and BDE I have just thought I might move all my delphi stuff onto my 2003 server and then use remote desktop to access it however some of my apps give me a bdertl70 err... | 2 | Hi Owen,
I suspect a rights problem. The app/user needs full rights to the data folder and net dir. 8/16/2010 | Delphi Single User Apps | | Paradox 7 Update I know P7 is an ancient version but I dug the install disks out of a dusty drawer this morning and installed it in my XP machine. My question is whether I need ... | 1 | Never mind, I've applied the patch selectively. 8/11/2010 | Paradox Setup, Vista, etc. |
|