The Prestwood eMag  |  www.prestwood.com |
|
| August 2009 - Full Edition | Year 11 Issue 8
|
|
| A computer community for power-users and I.T. professionals! |
|
Table of Contents: |
|
 Mike Prestwood | From our General News & Trends topic...It's Done: Borland is No MoreA trip down memory lane: Borland 1983-2009 Micro Focus buys Borland. The decline of Borland is now complete. The once legendary software company is no more! Okay, for those of us that worked at Borland and those that loved their development tools, it pretty much was over years ago. For me, I'm still a big fan of the CodeGear development tools, especially Delphi and Prism, but the fanatical culture and clarity of purpose was over when Philippe Kahn left. I've been following Borland ever since I left the company in 1995 and every time I heard of a stupid move, I cringed. I'm sure all of us who have watched the decline of Borland over the years have a list of stupid Borland moves. A classic post from our Website Design topic... IE8 Combatibility Isn't Compatible by Wes PetersonWith the release of Internet Explorer 8, Microsoft has made IE more compliant with current standards, fixing problems that have bugged webmasters for years. This compatibility would probably be great except that it breaks perfectly good web applications created using Microsoft's latest and greatest development tools. This is the sort of thing that results in Apple's great TV ads. In this article, we introduce Compatibility View, discuss the problem, and a couple of the solutions.

From our IT Water-Cooler for Power-Users topic... Windows GREP - Great Tool by Wes PetersonYou know (or think) the file is out there. You have a pretty good idea about one or two things that are (or ought) to be in it. Find it fast with Windows GREP. From our Role-Based Tech Talk topic... Crash, Bomb, Hang, and Deadlock by Scott WehrlyThis article explores and defines the following terms: crash, bomb, hang, deadlock, exception, fatal error, and blue screen of death. From our Off Shoring topic... Off-shoring: You CAN fight back! by Wes PetersonAre you fed up with calling a company and finding yourself speaking to somebody in a foreign country?
I am, and I've just learned of an effective way to fight back, help return jobs to America, and keep them here.
The best part? We don't have to wait for government to do a thing. From our Other... topic... Advertise on Prestwood by Mike PrestwoodAdvertise on the Prestwood family of websites. A one month ad on a single group's home page is $25. Two or more months is $20 per month. A one month ad for all pages of a single group is $75. Two or more months is $65 per month. Your ad will show on all "appropriate" group pages including the group home page, group knowledge base home page, group message board home page, all knowledge base posts, and all message board posts.
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 | |
Access Message Board Ask this group a question! Select a topic below or Visit Access Board Now!
A classic post from our Off Shoring topic... Off-shoring: You CAN fight back! by Wes PetersonAre you fed up with calling a company and finding yourself speaking to somebody in a foreign country?
I am, and I've just learned of an effective way to fight back, help return jobs to America, and keep them here.
The best part? We don't have to wait for government to do a thing. |
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 Data Flow Diagrams (DFD) topic... A 10 Minute Data Flow Diagrams (DFD) Quick Start by Mike PrestwoodDFDs document a process by documenting the flow of data throughout the process. They depict how data interacts with a system. They can be used to engineer a new process, document an existing process, or re-engineer an existing process. |
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: UML Resource Page Semi-official home page for UML. Includes the UML specification.
Have you download the UML 2.0 specification yet? If not, why?
| |
Analyst Message Board Ask this group a question! Select a topic below or Visit Analyst Board Now!
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 ASP Classic Topic. Code Snippet of the Month By Reference or Value For parameters, you can optionally specify ByVal or ByRef. ByRef is the default if you don't specify. Function SomeRoutine(ByRef pPerson, ByVal pName, Age) From our ASP Classic Topic Run ASP pages on Linux/Unix! This software was originally developed by ChiliSoft. Sun Java System Active Server Pages software allows organizations to deploy Active Server Pages (ASP)-based web applications on a variety of web servers and operating systems. ASP applications currently supported by Microsoft IIS can now be powered by the Java System Web Server for increased security. Legacy ASP applications running on Windows NT can be transitioned to the Solaris Operating System for ongoing maintenance and support. From our ASP Classic Topic. Question: How do you find last Monday? I want to return a date for last Monday or today if today is Monday. Answer: While Weekday(ADate) <> vbMonday ADate = DateAdd("d", -1, ADate) WEnd
You could wrap this up in a function as follows: Function SU_GetLastDOW(ADate, AWeekDayConst) While Weekday(ADate) <> AWeekDayConst ADate = DateAdd("d", -1, ADate) WEnd SU_GetLastDOW = ADate End Function From our Language Details Topic Tip of the Month Call Application.Lock to freeze ASP code while you set IIS application variables the Application.Unlock to unfreeze. No actions take place on the server while locked. Application.Lock
Application(YourAppVar) = AValue Application.Unlock
| |
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# Class..Object (class...new) by Mike PrestwoodIn C#, you use the class keyword to specify a class and you signify its parent with a colon and the name of the parent class. When you instantiate an object from a class, you use the new keyword. A classic post from our OOP topic... C# Member Method by Mike PrestwoodIn C# you can set the visibility of a member field to any visibility: private, protected, public, internal or protected internal. You can intialize a member field with a default when declared. If you set the member field value in your constructor, it will override the default value. Finally, you can use the static modifier (no instance required) and readonly modifier (similar to a constant). |
| 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 Literals are quoted as in "Prestwood". If you need to embed a quote use a slash in front of the quote as in \". Console.WriteLine("Hello"); Console.WriteLine("Hello \"Mike\"."); //Does C# evaluate this simple //floating point math correctly? No! if ((0.1 + 0.1 + 0.1) == 0.3) { MessageBox.Show("Correct"); } else { MessageBox.Show("Not correct"); } 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 Beginners Corner Topic. Question: How do you resolve the UserID of a user when using ASP.NET 2.0's built in Membership utility? Answer: //GetUser() returns current user information MembershipUser myUser = Membership.GetUser();
//Returns the UserID and converts to a string string UserID = myUser.ProviderUserKey.ToString(); | |
C# Message Board Ask this group a question! Select a topic below or Visit C# Board Now!
| 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 C++ is case sensitive. In C and C++ commands and variable names are case sensitive. The following first standard C++ snippet works: printf("hello\n"); Printf("hello\n"); //>>>Does not work!From our Standard C++ Topic. Question: How do you comment code in C++? Answer: Use two forward slashes to represent a single line comment: // This is a C++ style single line comment. You can also use multiple line comments: /* This is a mutliple line comment. This syntax is borrowed from C. */ | |
C++ Message Board Ask this group a question! Select a topic below or Visit C++ Board Now!
A classic post from our General .Net Concepts topic... Storing your .NET Application Settings by Adam LumStoring settings and configuration information for your .NET application can be achieved in a number of ways including using the app.config file and the ConfigurationManager class, using the registry, and in your own custom configuration file. A classic post from our Borland Database Engine topic... Uninstalling the BDE by Wes PetersonIt's rare, but sometimes it may be necessary to remove the BDE from a machine. Not for the faint of heart, and with serious possible consequences, we explain how to manually uninstall the BDE. This is intended for developers or power users. |
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. Hidden data and methods. Encapsulation is the hiding of data and code and is often called the "black box" approach, since users of a class can't see inside the class (they can only see the class' public interface). From our General .Net Concepts Topic Resource Link of the Month: ASP.NET Interview Questions Although titled "Interview Questions," this article provides a good list of ASP .NET concepts in an ordered, question and answer format. Working through it would be a good way to bone up - or refresh - your understanding of ASP .NET.
The answers are brief and concise; and several contain links to additional information. | |
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 Element Naming Standard by Jeffrey K. TyzzerThis paper articulates the standard for naming data elements (entity attributes). |
| 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. A locking mechanism that prevents other users from entering edit mode on a record that is currently locked. From our MS SQL 2008 Topic MS SQL Express 2008 with Management Studio Basic. MS SQL 2008 database management tool only available bundled. Microsoft SQL Server 2008 Express with Tools (SQL Server 2008 Express) is the free version of SQL Server Express that includes graphical management tools. SQL Server 2008 Express with Tools has all of the features in SQL Server 2008 Express, plus includes SQL Server 2008 Management Studio Basic for managing MS SQL 2008 databases.
Note: Requires Microsoft .Net Framework 3.5 SP1.
What about MS SQL 2005?
The MS SQL 2005 Enterprise Manager is available as a separate download:
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 ANSI SQL Scripting Topic. Question: Is there a way to reverse order a select statement? Answer: Yes. Use the DESC keyword in your order by clause on each column you want ordered descending. Use ASC for ascending. select * from Customer Order by Age Desc, City Asc, State Asc
| |
DBA Message Board Ask this group a question! Select a topic below or Visit DBA Board Now!
| Thread Starter | Replies | Last Post | Topic | | 92 Compliant // Update Stat... I am currently working on converting historical data in a Basis BBj environment. With I am doing what would seem to be fairly straight forward UPDATE STATEMENTS - trying to updated tbl a with da... | 0 | New! 7/23/2009 | DB Other & Misc. |
A classic post from our Coding Tasks topic... Get NIC MAC Address by Mike PrestwoodThis code snippet shows you how to get your NIC MAC address using Borland Delphi. A classic post from our Coding Tasks topic... Working with COM Servers: A Little Delphi by Wes PetersonMicrosoft's various COM technologies allow developers to write programs that can interoperate with other programs. This is great stuff!
Not surprisingly, Delphi makes it pretty easy to work with OLE, Active-X, OCX, etc.
But there's a nasty surprise awaiting you when you try to do this in a DLL you're creating, possibly even in a different thread of an executable, too.
Here we expose the problem - and the solution. |
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 OOP Topic. Code Snippet of the Month In Delphi, use the constructor keyword to signify which method or methods are constructors for a class. It is traditional but not required to use a procedure called Create.
In addition to having multiple named constructors, you can overload constructors. //Interface section. TCyborg = class(TObject) public constructor Create; end;
Then implement the class constructor in the Implementation section. constructor TCyborg.Create; begin inherited; //Call the parent Create method end; From our OOP Topic. The Strict specifier tightens up the scope for private and protected. With Strict Private, members within a class are visible ONLY within the class declared and Strict Protected are visible only within the class declared and descendent classes. Without strict, private and protected members can also be seen by all classes declared in the same unit (friendly classes). The Strict specifier was introduced with Delphi for .Net preview in Delphi 7 in an update to the .Net compiler preview and with Win32 in Delphi 2005 to fully comply with the .NET CLS. Delphi's traditional private specifier maps to the CLR's assembly visibility and the protected specifier maps to the CLR's assembly or family visibility. From our Delphi for Win32 Topic Resource Link of the Month: Delphi3000.com If you haven't been to Delphi3000.com yet, go now. One of the best Delphi resources on the web. From our Language Basics Topic. Question: What is the difference between Camel Casing and Pascal Casing? Answer: Camel casing capitalizes the first character of each word except the first word, it can frequently resemble a camel. Used by many languages including Paradox's ObjectPAL and Java. myAge theBoxCar
Pascal casing capitalizes the first character of each word (including acronyms over two letters in length). TheHtmlCode CAStatePercent From our Using Data Topic Tip of the Month Before adding many new entries to a TStringList, set its Sorted property to false. Add all your entries. Finally, set the Sorted property back to True (if desired).
Sorting is expensive, in terms of macnine cycles. By leaving the Sorted property set to True, you force the TStingList to re-sort itself after each entry. This can significantly slow things down.
This applies to TStrings, as well, and all components that have a TStrings property, like TListBox, etc.
| |
Delphi Message Board Ask this group a question! Select a topic below or Visit Delphi Board Now!
| Thread Starter | Replies | Last Post | Topic | | How do I access menu comman... I am a neophyte programmer. I have figured out how to generate a simple Delphi 7 form with a button in it which will run an executable. procedure TForm1.But... | 5 | If you created the process, then it is quite easy to close it. Here is how I accomplished this task.... 7/17/2009 | Delphi COM / ActiveX / DCOM |
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 Language Details Topic. Code Snippet of the Month Unlike languages such as C++ and Object Pascal, every line of code written in Java must occur within a class. //Declare class. public class Cyborg { //Fields. private String cyborgName; private int age; //Constructor. public Person() { cyborgName = "unknown"; age = 0; } } //Create object from class. Cyborg p = new Cyborg(); p.getClass(); //From the Object base class. From our Standard Java Topic If you need support for general Java and Web development, consider Eclipse IDE for Java EE Developers. The Eclipse IDE for Java Developers contains what you need to build Java applications. Considered by many to be the best Java development tool available, the Eclipse IDE for Java Developers provides superior Java editing with validation, incremental compilation, cross-referencing, code assist; an XML Editor; Mylyn; and much more. From our Eclipse for Java Topic Resource Link of the Month: Eclipse And Java: Free Video Tutorials Free video tutorials by Mark Dexter. | |
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. A classic post from our Beginners Corner topic... JavaScript Event Model by Mike PrestwoodDescription of the JavaScript event handlers. |
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 Common comparison operators:
| == |
equal |
| != |
not equal |
| < |
less than |
| > |
greater than |
| <= |
less than or equal |
| >= |
greater than or equal | //Does JavaScript evaluate the math correctly? No! if (.1 + .1 + .1 == .3) { document.write("correct"); } else { document.write("not correct"); }
From our JavaScript and AJAX Topic. 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. From our JavaScript and AJAX Topic. Question: How do you pass values from ASP to Javascript in the same page? Answer: The same way you do with HTML. Here is a simple example: <% Dim MyName MyName = "Mike Prestwood" %> <script language="javascript"> <!-- document.write('Hi <%=MyName%>') --> </script> | |
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 Utilities Topic Resource Link of the Month: Pen Drive Linux! Carry a portable Linux version with you on a USB flash pen drive. Bring your portable desktop with you wherever you go. USB Linux installation enables you to install a portable Linux operating system on a flash drive or USB key no larger than your thumb. This portable Linux version can then be run from any computer that can boot from a flash device, allowing you to bring your operating system, desktop, applications, files, e-mail, personal settings, favorites and more with you. It’s like having your own personal operating system you can carry in your pocket. | |
Linux Users Message Board Ask this group a question! Select a topic below or Visit Linux Users Board Now!
A classic post from our Paradox Tables topic... Paradox Table Specifications by Mike PrestwoodCovers ALL Paradox tables from version 4 on including a description of the various Paradox table structures, limits, and specifications. |
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: Libraries Topic. Code Snippet of the Month ObjectPAL is a non-OOP language (an object-based language) that offers custom methods and custom procedures. When you create a custom method, you associate it with an existing object like a button, form, or library.
When calling a custom method or procedure that has a by reference parameter (uses var), then you cannot use a literal value. this is different than in many other languages which do allow you to pass literals by reference. method sayHello(var pName String) msgInfo("", "Hello " + pName) endMethod
method add(p1 Number, p2 Number) Number Return p1 + p2 endMethod From our Interactive Paradox: Getting Going Topic. A data model is a diagram of the tables used in a form or report. It identifies the tables, defines the relationships between them (links), and has features including the ability to filter each table and mark any table as read-only. You can save a data model (.dm) and reuse it with another form or report. A data model is a diagram of the tables used in a form or report. It identifies the tables, defines the relationships between them (links), and has features including the ability to filter each table and mark any table as read-only. You can save a data model (.dm) and reuse it with another form or report. From our Paradox & ObjectPAL Topic The Paradox edition of our coding convention. We offer PCC as an example of a fairly well known coding convention authored by Mike Prestwood and used by many Paradox developers in the 1990s. PCC is a coding convention that has been public since it was first published in June of 1994. It is not to be considered set in stone, but is to act as a guideline and is to be used in accordance to the needs of the current project. Except for some introductory material, this Paradox Edition is the same as published in Mike Prestwood's book, "Corel Paradox 9 Power Programming: The Official Guide" From our Paradox & ObjectPAL Topic Resource Link of the Month: Site of Bertil Isberg Documents include a Paradox bugslist, list of Paradox versions and Service Pack downloads, Error messages explained and more.This site is in Swedish but there are a couple of documents that are in English. From our Installation, Setup, & BDE Topic. Question: I recently upgraded to Windows XP and now Paradox 11 cannot open SQL Server database tables. In the open-dialog-box, I see the aliases, but cannot select one which is linked to a SQL server database. The same thing happens, trying to create a QBE query, new form, etc... All existing queries, forms, ... are working (using these aliases). Answer: Solution was to apply the latest BDE patch, all works as it should. From our OPAL: Language Basics Topic Tip of the Month Paradox provides experts that generate code at the field level, in the form open, etc. It is a good idea to study the ObjectPAL generated by these experts. | |
Paradox Message Board Ask this group a question! Select a topic below or Visit Paradox Board Now!
| Thread Starter | Replies | Last Post | Topic | | Using a Find button I have on a form a read only Multirecord, Read Only object, and a tableframe in which to input data.
There is the following code on a "FIND" pushbut... | 1 | >>...it spits the dummy
Not sure I understand. Can you provide more info? 2/15/2010 | Paradox Forms | | form on network 1 is ok, no... My client has two separate locations with sep. networks, all machines being Win. XP and, regrettably, PdoxWin 7-32. One form is causing problems. On NW 2 it r... | 1 | Hi Phil,
Did you ever figure this out? Was it a NetDir or stray lock file issue? The fact that it w... 2/1/2010 | Paradox Forms | | BDE app on 64-bit - $2108 e... I apologize if this is the wrong group for this.I understand that BDE apps run just fine on 64-bit Windows. We've got a client trying to put our BDE app on 64-... | 1 | Try the installer here: <... 11/24/2009 | Paradox Setup, Vista, etc. | | Change color on form Hi Everyone...
New to Paradox.. can't seem to put my finger on the answer for this one.
I have a form with a checkbox on it.. if the checkbox is marked(chec... | 4 | Rick is correct.
In the case you've described there are several considerations. ... 9/1/2009 | Paradox Forms | | Paradox for DOS 4.0 and SQL... I need to use a front-end Paradox for DOS 4.0 application to access tables in a SQL Server 2xxx (any version) database. Any ideas? Any help would be... | 7 | I used to take the same approach as you, however, I found that the client would just find somebody e... 7/23/2009 | Paradox for DOS |
A classic post from our Beginners Corner topic... Perl Literals (quote) by Mike PrestwoodLiterals are quoted as in "Prestwood". If you need to embed a quote use a slash in front of the quote as in \". |
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 With Perl, you simply copy your files to a web server that is capable of running Perl pages. From our Perl Topic Free Perl editor. Perl Express is an unique and powerful integrated development environment (IDE) under Windows 98/Me/2000/XP/2003, includes multiple tools for writing and debugging your perl programs.
Perl Express is intended both for the experienced and professional Perl developers and for the beginners.
Since the version 2.5, Perl Express is free software without any limitations, registration is not required. | |
Perl Message Board Ask this group a question! Select a topic below or Visit Perl Board Now!
A classic post from our Beginners Corner topic... PHP Literals (quote or apostrophe) by Mike PrestwoodIn PHP you can use quotes, or apostraphies as in "Prestwood", and 'Prestwood'. Use a slash in front of a quote or apostrophe to embed same type as in \' and \". |
| Short tidbits pulled from our knowledge base each month. | M O N T H L Y L E S S O N | From our PHP Topic. Code Snippet of the Month In .PHPhtml pages, you embed PHP code between <?PHP and ?>.
For PHP, JavaScript, Java,and C++, I prefer to put the first { at the end of the first line of the code block as in the example above because I see morePHP codeformatted that way (and on PHP.Net).
PHP Alternative Syntax
Although I don't like to use it, PHP offers an alternative syntax for if, while, for, foreach, and switch. These code blocks are surrounded by statement ending keywords that all use End with camel caps such as endif, endwhile, endfor, endforeach,and endswitch. <?PHP $x = "Yes"; //Simple if If ($x == "Yes") echo "hello world"; //If with a block of code.
If ($x == "Yes") { echo "Hello world"; echo "I am a PHP coder!"; } ?> From our Beginners Corner Topic. Question: Do PHP scripts need execute rights? Answer: No, PHP scripts do NOT need execute rights. The server knows to pass files with a .PHP extension to the PHP processor. The PHP processor then interprets code between the <?PHP and ?> indicators. | |
PHP Message Board Ask this group a question! Select a topic below or Visit PHP Board Now!
| Thread Starter | Replies | Last Post | Topic | | dropdownbox that is populat... Hello everyone, I am wanting to create a dropdown list box that is populated from a mysql database, currently I have figured how to query out what information I need from my database but&nbs... | 0 | New! 7/1/2009 | PHP |
A classic post from our Other... topic... Advertise on Prestwood by Mike PrestwoodAdvertise on the Prestwood family of websites. A one month ad on a single group's home page is $25. Two or more months is $20 per month. A one month ad for all pages of a single group is $75. Two or more months is $65 per month. Your ad will show on all "appropriate" group pages including the group home page, group knowledge base home page, group message board home page, all knowledge base posts, and all message board posts. |
Prestwood Message Board Ask this group a question! Select a topic below or Visit Prestwood Board Now!
PrestwoodBoards Message Board Ask this group a question! Select a topic below or Visit PrestwoodBoards Board Now!
| Thread Starter | Replies | Last Post | Topic | | Hi All - My name is Max B. and although I'm not new to PSD - I am new to these boards / forums. I've been programming full time for the last 10 years - I sta... | 2 | Hi Max,
Good to see you out on the boards. I sent you an email with pictures of our new offices. Yo... 7/27/2009 | Member Introductions | | Top of the mornin to ye! Greetings from cold and wet Dublin!
I'm joining this group in the hopes of learning somehting about Paradox. I find myself in a position of supporting an old... | 1 | Welcome aboard Shellbot.
I think you've come to the right place. Partially due to Mike Prestw... 7/16/2009 | Member Introductions |
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. Code Snippet of the Month A value directly written into the source code of a computer program (as opposed to an identifier like a variable or constant). Literals cannot be changed. Common types of literals include string literals, floating point literals, integer literals, and hexidemal literals. Literal strings are usually either quoted (") or use an apostrophe (') which is often referred to as a single quote. Sometimes quotes are inaccurately referred to as double quotes. Languages Focus: LiteralsIn addition to understanding whether to use a quote or apostrophe for string literals, you also want to know how to specify and work with other types of literals including floating point literals. Some compilers allow leading and trailing decimals (.1 + .1), while some require a leading or trailing 0 as in (0.1 + 0.1). Also, because floating point literals are difficult for compilers to represent accurately, you need to understand how the compiler handles them and how to use rounding and trimming commands correctly for the nature of the project your are coding. Delphi Prism LiteralsIn Prism, you use either quotes or apostrophes for string literals.
Different than Delphi, you can start floating point literals with a decimal or an integer. For example, to specify a fractional floating point literal between 1 and -1, you can preceed the decimal with a 0 or not. x := .1 + .1; //Does work. x := 0.1 + 0.1; //Does work. MessageBox.Show('Hello'); MessageBox.Show("Hello"); //Example of embedding quotes and apostropes: MessageBox.Show('He said, "Who''s computer?"');MessageBox.Show("She said, ""Mike's computer"".");From our 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.
From our Tool Basics Topic. Question: I'm a big fan of VCL.Net. Is VCL.Net a part of Delphi Prism? Answer: No. For existing VCL.Net based applications I recommend you stick with Delphi 2007 until it's time to convert it to Delphi Prism. | |
Prism Message Board Ask this group a question! Select a topic below or Visit Prism Board Now!
A classic post from our PSDP General topic... PSDP Online Overview by Adam LumOur online database gives you visibility into the work we're doing for you. It tracks your requests including workflow, client info, app info, and project information. |
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 Categories Topic. A PSDP Category is a PSDP Online feature that allows you to group and organize Tasks, Requirement Items, Design Items, Test Scripts, Builds, and Defects. The PM can turn this optional feature on or off for each feature supported. You can use them any way you wish. A typical use is to organize a project by high level requirements that the client can understand. Under this usage, categories become a intermediate requirement between General Requirements and Requirement Items.
From our PSDP Change Orders Topic. Question: When should I execute a change order on a time and material project? Answer: At a minimum, execute a change order whenever the project budget will increase and when it will decrease by a substantial amount. Although not required, you should execute a change order whenever features migrate or are swapped out for other features. You should execute a change order even when the swap has no apparent impact on budget. I say "apparent" because analysts frequently do less research on changes especially when they look like they will have no impact on the budget. From our PSDP Artifacts Topic Tip of the Month If you are a single developer, assign the artifact to that single developer and use it to track the completion of both the documentation of the artifact (requirement, design, and test script) as well as the building and testing of it. If you are part of a development team, assign the artifact to the resource gathering requirements and create additional tasks. If you want to track the building with a higher grainularity, add additional tasks. | |
PSDP Message Board Ask this group a question! Select a topic below or Visit PSDP Board Now!
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 WINS Topic. Microsoft's implementation of NetBIOS Name Service (NBNS), a name server and service for NetBIOS computer names. Just as DNS serves up domain names, WINS serves up NetBios names and is particularly useful within a Microsoft-based network when or without the NetBIOS protocol installed. Use of WINS will decrease broadcast traffic. Even though DNS mostly replaces WINS as of Windows 2000 Server, WINS still has benefits within a Microsoft network. From our Removable Storage Technology Topic Resource Link of the Month: Virtual CloneDrive (Mount ISO Image File) There are several programs that allow you to mount an ISO image file and this free one seems to work well on Windows XP and Vista. CloneDrive also supports other common image formats such as BIN, CCD, etc. From our Windows Server 2003 Topic. Question: I have several Windows 2000 Servers, should I upgrad them? I have to setup a new server, should I install another Windows 2000 Server or dive into Windows 2003? What about Windows Server 2008? Answer: We currently recommend at least Windows Server 2003 and actually prefer Windows Server 2008 because too much "new" software just does not install on Windows 2000 Server. For example, Quickbooks 2009 database install requires Windows Server 2003 or higher. From our DHCP Topic Tip of the Month It is better to install a Microsoft DHCP server in your business network over the more limited DHCP servers provided by SOHO devices such as those found in wireless routers, firewalls, the Comcast router, etc. Installing a Microsoft DHCP server allows you to take advantage of more advanced features. | |
Tech Message Board Ask this group a question! Select a topic below or Visit Tech Board Now!
A classic post from our Publishing topic... Prestwood Online Style Guide by Mike PrestwoodUse up to four levels within articles (Heading 1..4). Within text, bold language elements and menu options. Use italics to bring attention to non-code things such as companies, important words, etc. Use bold+Italic for embedded topics and follow with a colon. Use the paragraph style for text and preformatted for code. Max width for images is 700 pixels. A classic post from our General, Getting Started, etc. topic... Global Dashboard - Metrics for documentation processes by Ramesh RThis article presents an overview of the global dashboard and the related metrics for all regions, specifically for documentation teams. This helps the user to understand and gain more knowledge on the metrics, measures and quality standards used for content management, portal management, elearning systems teams. |
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 Technical Writing Topic As developers, we can often help our clients (or our marketing efforts) by creating "screen cast" demos or tutorials. Here is a great tool for doing that - and it's free. From our Grammar Topic Tip of the Month Use "hung" for things and longer durations. Use "hanged" for people and shorter durations.
Examples:
"I hung a picture on the wall."
"He hung a deer on a tree for butchering."
"Felicia and Ashley hung out last night."
"Horse theives were hanged in the 19th century."
"The terrorist was hanged and his corpse was hung on the tree." | |
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. Retesting previously fixed defects or rerunning test scripts that previously passed. From our Testing, QA, QC Topic. Question: What is the difference between quality control and quality assurance? Answer: Qulity assurance is a process in which you compare the deliverable to the requirements to verify the deliverable meets the need. Quality control is a process employed to ensure a certain level of quality. Prestwood Software Development Process is an example of a process used in quality control to ensure a certain level of quality. From our Beginner's Corner Topic Tip of the Month Test each feature three times. Sometimes errors in logic don’t show up until the second or even the third time through a sequence of events. | |
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: FoxTools.com This site is informative and helpful for both beginners and advanced Visual FoxPro developers. | |
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 VB Classic is not case sensitive. If you type any other case for commands or variables, VB Classicwill change it to the "accepted" or "defined" case. For example, if you type msgbox it is converted to MsgBox. The following code works: MsgBox ("hello") | |
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 Member Field by Mike PrestwoodIn VB.Net you can set the visibility of a member field to any visibility: private, protected, public, friend or protected friend.
You can intialize a member field with a default when declared. If you set the member field value in your constructor, it will override the default value.
Finally, you can use the Shared modifier (no instance required) and ReadOnly modifier (similar to a constant). A classic post from our OOP topic... VB.Net Finalizer (Finalize()) by Mike PrestwoodUse a destructor to free unmanaged resources. A destructor is a method with the same name as the class but preceded with a tilde (as in ~ClassName). The destructor implicity creates an Object.Finalize method (you cannot directly call nor override the Object.Finalize method).
In VB.Net you cannot explicitly destroy an object. Instead, the .Net Frameworks garbage collector (GC) takes care of destroying all objects. The GC destroys the objects only when necessary. Some situations of necessity are when memory is exhausted or you explicitly call the System.GC.Collect method. In general, you never need to call System.GC.Collect. |
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 Tool Basics Topic. Code Snippet of the Month Variables are case sensitive but VS.Net will auto-fix your variable names to the defined case. You can declare variables in-line wherever you need them and declarative variable assignment is supported. Dim FullName As String Dim Age As Integer Dim Weight As Double FullName = "Mike Prestwood" Age = 32 Weight = 154.4 'Declaritive variable assignment: Dim Married As String = "Y" MsgBox(Married)
| |
VB.Net Message Board Ask this group a question! Select a topic below or Visit VB.Net Board Now!
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 Website Scripting Topic. Definition of the Month: CMS Short for Content Management Sytem (CMS) and is used to manage content on a website such as web page content, knowledge base, online store, message boards, etc. A popular .Net CMS' right now is DotNetNuke. Prestwood's own ASPSuite is a customized CMS we use for our website and our clients.Short for Content Management Sytem (CMS) and is used to manage content on a website such as web page content, knowledge base, online store, message boards, etc. A popular .Net CMS' right now is DotNetNuke. Prestwood's own ASPSuite is a customized CMS we use for our website and our clients. From our Artistic (design, layout, etc.) Topic This is the rich text editor recommended by Prestwood and used with our family of websites. TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems. From our Website Design Topic Resource Link of the Month: Common Browser Info by w3schools.com Provides browser statistics including most common browsers, operating systems, display resolutions, etc. Information includes a brief historical overview of each and contains current information on browsers. This is a great resource for determining what browsers to design for, test on, as well as determining what resolutions, color depths, etc. From our Website Hosting Topic. Question: I've created a web application using v3.5 of the .NET Framework. But, when I go to deploy it, I find only versions 1.x and 2.x in the ASP .NET dropdown for IIS configuration of my application's virtual directory. Where is v3.5? How do I deploy if that's not a configuration choice? Answer: It's not there. You see, v3.5 isn't really a "version" in Microsoft's eyes. 3.5 builds upon v2, and is really considered an incarnation of v2. Sounds crazy, doesn't it? Not to worry, though, you can still deploy your v3.5 app. There are just two things that must be done:
- The .NET Framework, v3.5 must be installed on the server.
- When configuring your application's virtual folder in IIS, choose the v2.x from the ASP .NET version dropdown.
You'll find this in IIS on the ASP .NET tab of the Properties dialog for your app's virtual directory. From our Website Scripting Topic Tip of the Month When designing websites, all developers are required to manage not only the content of the site, but the indexing of the site as well. Robots.txt is a powerful tool you can use to make sure your projects are listed in search engines as effectively as possible.
| |
Web Design Message Board Ask this group a question! Select a topic below or Visit Web Design Board Now!
A classic post from our Website Design Services topic... Dynamic ASP Websites by Mike Prestwoode-Commerce * e-Business * Members-only * Online Databases |
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 Rules & Disclaimers Page This is our community rules and disclaimers page. 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... Disable Unused Windows Services by Vicki NelsonOptimize your Windows performance by disabling unused Windows Services. |
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. Windows Vista introduced Windows ReadyBoost, a new way to add memory to your system. You can use non-volatile flash memory, such as a ReadyBoost compliant USB flash drive, to improve performance without having to add additional system memory.
Superfetch, Vista's new caching scheme, takes full advantage of all system memory and ReadyBoost expands the available cache memory. This speeds up your computer because accessing a flash drive is significantly faster than accessing a hard drive. From our Windows Vista Topic. Error: Missing critical file ACPI.SYS (error code 0xc0000098). Explanation: If you received this after you applied Vista SP1, follow the onscreen directions. Note When applying Vista's SP1, have your bootable Vista CD available when you apply this service pack. Vista will detect if anything goes wrong, and prompt you to boot from your installation CD. If you have a new computer with the media on the drive, create a CD prior to applying SP1!!! This happened to me last night while at home and I had to wait until today to get to the office to boot from my installation CD. I received the dreaded missing ACPI.SYS file with an error code of 0xc0000098. 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. From our Windows XP Topic Tip of the Month By default, you cannot uninstall programs in Safe Mode. Whatever issue you are handling, your first choice is to resolve it using more acceptable solutions such as using System Restore or MSConfig. For MSConfig, try disabling all startup programs then see if you can use Add/Remove Programs. If you wish to enable the Windows Installer Service while in Safe Mode, add the following registry entry:
HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer\VE\TREG_SZ\F\D %Service% | |
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. |
|