-Collapse +Expand

eMag


Prestwood eMagazine

Subscribe now!
Enter your email:


What Reader's Say!

Here's what our readers have to say about our newsletter.

D.K. 'Bud', Houston Texas

I received your newsletter and really enjoyed the material. Please keep them coming.

John F Hurren, Queensland Australia

Thank you for your newsletter which I have been receiving now for some time. I enjoy it very much.

Mahdieh

Your knowledge base and articles are very useful and amazing. Thank you very much.


Feedback Wanted!

We want your feedback! Tell us what you think of our monthly eMag.
[Add Comment]
   PrestwoodBoardseMagCurrent   
View Group Edition:
Full Edition Your Edition || Prev Next

eMag Jul 2009 Issue - Full Edition

The Prestwood eMag
www.prestwood.com
July 2009 - Full EditionYear 11 Issue 7
A computer community for power-users and I.T. professionals!
July Issue : Survey on SDK Documentation
Table of Contents:
Featured Articles:
  • Survey on SDK Documentation
  • ALL Groups:
    Access | American I.T. | Analyst | ASP Classic | C# | C++ | Client Connection | Coder | DBA | Delphi | Industry | Java | JavaScript | Linux Users | Paradox | Perl | PHP | Prestwood | PrestwoodBoards | Prism | PSDP | Tech | Tech Writer | Tester | V.FoxPro | VB Classic | VB.Net | Web Design | Web Owners | Win Users |
    Peter Gruenbaum
    From our Technical Writing topic...
    Survey on SDK Documentation
    by Peter Gruenbaum

    A survey was sent to software developers and other software professionals to ask what was important in SDK documentation and where they would like to see improvement. The results indicated that the current state of typical SDK documentation is "Fair", which was the middle choice of five ("Excellent" to "Unusable"). The answers to multiple choice questions indicated that overviews, API references, sample code, and tutorials were all considered high importance, whereas blogs and forums were considered less important. When asked to write what they considered important, sample code was mentioned in 61% of the responses and overviews were mentioned in 30% of the responses. Also mentioned as important were help getting started, explanations of why something should be used, accuracy of information, and the ability to find information easily.

    From our IT Water-Cooler for Power-Users topic...
    Stamp Out Spam by Vicki Nelson
    How to fight back against spam and reclaim your inbox.




    Prestwood Access GroupTop 
    A classic post from our Language Basics topic...
    Don't overlook the power of a relational database! by Wes Peterson
    Access 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

    Access VBA is not case sensitive. Like VB Classic, if you type any other case for command or variable names, Access VBA will 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")
    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!





    Prestwood American I.T. GroupTop 

    American I.T. Message Board

    Ask this group a question! Select a topic below or Visit American I.T. Board Now!
    TopicThreadsPostsLast Active Thread
    H-1B Discussion474With our economy, do we sti...
    Offshoring Discussion111RE: What is more important-...


    Last Month's MB Posts

    Thread StarterReplies Last Post Topic
    What is more important- Qua...
    Hi All,       My question is very simple. In our Software industry, what is more important- Quality Work or Natinality. If we all agre...
    10
    This thread starter is a perfect example of why I am against outsourcing. I don't know how many emai...
    6/13/2010
    Offshoring Discussion






    Prestwood Analyst GroupTop 
    A classic post from our Unified Modeling Language (UML) topic...
    Introduction to the Unified Modeling Language by Mike Prestwood
    This 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.
    Definition of the Month: UML Artifacts
    In UML 1.x, many UML users referred to the UML diagrams as UML Artifacts. Starting with UML 2.0, a UML Artifact is defined as a physical unit, such as an application executable, database, file, script, etc. Only artifacts live on physical nodes; classes and components do not have "location."

    In UML 1.x, many UML users referred to the UML diagrams as UML Artifacts. Starting with UML 2.0, a UML Artifact is defined as a physical unit, such as an application executable, database, file, script, etc. Only artifacts live on physical nodes; classes and components do not have "location."

    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!





    Prestwood ASP Classic GroupTop 
    A classic post from our Language Basics topic...
    ASP redirect http to https by Mike Prestwood

    To redirect from http to https, check the Request.ServerVariables HTTPS field and then use Response.Redirect if set to "off".

    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

    Commenting Code
    ASP Classic, like all the VB-based languages, uses a single quote (') or the original class-style basic "REM" (most developers just use a quote). ASP Classic does NOT have a multiple line comment.

    Preprocessor Directives - @ and #
    An @ is used for preprocessor directives within ASP code (within <% %>) and a # is used for HTML-style preprocessor directives.

    Note: ASP Classic does not support VB Classic's #If directive.

    'Single line comment.
    REM Old school single line comment.

     

    Common Preprocessor Directives include:

    <%@LANGUAGE=VBScript%>
    <!-- #Include File="includes.inc" -->
    From our ASP Classic Topic.
    Documented Error of the Month: ASP Classic error 0208 : 80004005 (Generic request collection)
    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!





    Prestwood C# GroupTop 
    A classic post from our WebForms Coding Tasks topic...
    How to open a URL in a pop-up window. by Bryan Valencia
    Every now and then you want a link to open not only in a new browser, but you may want to give the new window the appearance of a pop-up window. This ASP/Javascript method gives you a lot of control and is easy to figure out and implement.
    A classic post from our OOP topic...
    C# Abstraction (abstract, override) by Mike Prestwood

    C# 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.

    Monthly C# 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

    With C#, use the sealed keyword to prevent a class from being inherited from and to prevent a method from being overridden.

    A method marked sealed must override an ancestor method. If you mark a class sealed, all members are implicitly not overridable so the sealed keyword on members is not legal.

    public class Machine : System.Object
    {
    public virtual void Speak(String pSentence)
    {
    MessageBox.Show(pSentence);
    }
    }

    public class Robot : Machine
    {
    public sealed override void Speak(String pSentence)
    {
    MessageBox.Show(pSentence);
    }
    }
      
    public sealed class Cyborg : Robot
    {
    }
    From our C# Topic.
    Definition of the Month: Value Data type variables
    A Value data type variable contains values.Value data type variables contains values.  They can be either struct or enumerations.  Since the value data type variables contain values assigning one variable to another copies the data into the second variable.  Any changes to either variable are independant of 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.
    FAQ of the Month: Using Win32 DLLs in .NET
    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!





    Prestwood C++ GroupTop 
    A classic post from our Standard C++ topic...
    Using cin and cout by Mike Prestwood
    Using cin and cout in C++ to output values.
    A classic post from our Standard C++ topic...
    C++: The Standard Template Library Generic Algorithms by Evan Egalite
    This article by Evan Egalite was first published in the August 2002 Prestwood eMagazine.

    Monthly C++ 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 C++ Language Basics Topic.
    Code Snippet of the Month

    C++ logical operators:

    && and, as in this and that
    || or, as in this or that
    ! Not, as in Not This
    ^ either or, as in this or that but not both

    //Given expressions a, b, c, and d:
    if !((a && b) && (c || d)) {
      //Do something.
    }
    From our Classic C Language Topic.
    Definition of the Month: C Family Unary Operators
    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! {#yikes} C++Builder TV is part of CodeGear's developer network. Contains both audios and videos.

    From our Visual C++ Specific Topic.
    FAQ of the Month: Visual C++
    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!





    Prestwood Coder GroupTop 
    A classic post from our General .Net Concepts topic...
    Regex by Bryan Valencia
    Console application shows some common uses of Regular Expressions (REGEX) to match and recursively replace text in strings.
    A classic post from our Borland Database Engine topic...
    Installing BDE using Merge Modules by Wes Peterson
    The new and "approved" way to install the BDE is by way of mege modules. This is quite a bit different than the traditional ways of using a pre-made program, or incorporating BDE Cab files (from, say, your Delphi installation). Caveat: This is new news for me, and I don't claim to know or understand everything there is to know on this topic but I do have some helpful findings for you.

    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 General Coding Concepts Topic.
    Definition of the Month: Array
    A data type that is a collection of variables (much like a table is a collection of fields). There are two types: fixed and resizable. A fixed array has a predetermined--by the programmer--number of elements. A resizable does not; therefore you need to set its size before using it.

    A data type that is a collection of variables (much like a table is a collection of fields). There are two types: fixed and resizable. A fixed array has a predetermined--by the programmer--number of elements. A resizable does not; therefore you need to set its size before using it.

    From our General Info, Installation, etc. Topic
    Download of the Month: LLBLGen Pro
    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!
    TopicThreadsPostsLast Active Thread
    Coding Techniques634Great Delphi and .Net Tool...
    General .Net Concepts311Please Read - .aspx website...
    Object Orientation (OO)314Delphi OO...
    Palm OS Developement38ROM Files...
    Pocket PC / Win CE Development614SQLCE...


    Last Month's MB Posts

    Thread StarterReplies Last Post Topic
    Delphi OO
    Hi, I am new to delphi and would like to understand more about OO techniques. The application I have developed uses ADO technology. I would like to know some ba...
    3
    Okay. Sounds good. Sorry I could not write more, but I did not know how to wrap it up nicely inthe t...
    6/17/2009
    Object Orientation (OO)
    Delphi vs VB... What is bet...
    Hi All I know it's not the wright place, but I didn't other place. Please I want trustable & proficinal answer. What is the better Delphi or VB? Why VB is mo...
    10
    I think I've created a slight misunderstanding. I did'nt say that Delphi wasn't good for web develo...
    6/15/2009
    Coding Techniques






    Prestwood DBA GroupTop 
    A classic post from our Desktop Databases topic...
    DDE: Dynamic Data Exchange Introduction by Mike Prestwood
    Overview of DDE.
    A classic post from our DBA & Data topic...
    Data Normalization - The Normal Forms by Jeffrey K. Tyzzer

    by 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...

    Monthly DBA 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 DBA & Data Topic.
    Definition of the Month: Optimistic Locking
    A locking mechanism that allows other users to edit a record that is currently being edited. Essentially, last in wins or edits are discarded usually with an error.
    From our DBA & Data Topic
    Download of the Month: Oracle Berkely DB XML
    http://www.oracle.com/database/berkeley-db/xml/index.html
    From our DBA & Data Topic.
    Documented Error of the Month: ORA-00900: invalid SQL statement
    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 DBA & Data Topic
    Resource Link of the Month: DBMonster.com

    Like our community, they cover many databases and languages. The focus of this website is on databases - both desktop and server.

    From our Microsoft SQL Server Topic.
    FAQ of the Month: Char vs NChar
    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!





    Prestwood Delphi GroupTop 
    A classic post from our Language Basics topic...
    Delphi File Extensions by Mike Prestwood

    Common source code file extensions include:

    • .BDSPROJ - Project, Borland Developer Studio project file holds compiler options, etc. This is the file you open.
    • .DCU - Delphi Compiled Unit file.
    • .DFM - Delphi Win32 form file (a text resource file).
    • .DPR - Delphi project file. Primary project "source" file.
    • .PAS - Delphi unit source file.
    A classic post from our OOP topic...
    Delphi Interfaces (IInterface, TInterfacedObject) by Mike Prestwood

    You specify an interface in the type block just like you do for a class but you use the interface keywoard instead of the class keyword and in the interfaces section only. Since interfaces, by definition, do not have any implementation details, all you do is specifiy it in the type block.

    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 Details 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 Delphi evaluate the math correctly? Yes!
    //Refer to math.pas MaxSingle for more info.
    if (0.1 + 0.1 + 0.1 = 0.3) then
    ShowMessage('correct')
    else
    ShowMessage('not correct')
    From our Delphi for Win32 Topic
    Resource Link of the Month: Dr. Bob 42
    A popular, and charming, website containing the latest news, press releases, articles, book reviews, tools, third-party tool reviews, and news on conferences & training using Delphi for Win32, Delphi for .NET, Delphi for PHP, Kylix (Delphi for Linux), C++Builder (Delphi for C++) & C#Builder as well as ASP.NET, XML, SOAP and Web Services.
    From our OOP Topic.
    Question: What is the difference between private and strict private?

    Answer:

    Private visibility means members are invisible outside of the unit. In OO terms, this is how Object Pascal implements friendly classes (visibility to the private members of another class). To implement true private members in Delphi 1-7, put each class in a separate unit (most developers didn't bother).

    Strict Private visibility means that private members within a class are visible ONLY within the class declared. In OO terms, this is true private visibility.

    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!





    Prestwood Java GroupTop 
    A classic post from our Java topic...
    Stacks in Java by Stephen Berry
    Provides 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 Egalite

    Implementing 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 Language Details Topic.
    Code Snippet of the Month

    Because java is an OOP language, all custom routines belong to a specific class and are therefore referred to as methods.

    All methods in Java must return something so even with procedures, you return a "void".

    public void sayHello(String pName) {
      System.out.println("Hello" + pName);
    }
     

    public int add(int p1, int p2) {
      return p1 + p2;
    }
    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! {#eek} 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!





    Prestwood JavaScript GroupTop 
    A classic post from our Language Reference topic...
    JavaScript Custom Routines (function) by Mike Prestwood

    JavaScript uses functions and loosely typed parameters. Function definitions must come before their usage so the usual preference when adding JavaScript to HTML pages is to include them between the head tags.

    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

    In JavaScript, using a semicolon at the end of statements is optional. You might think a semicolon then is just another comment specifier but it is not. The semicolon is an optional end of statement specifier. To put two statements on a single code line, you must use a semicolon. However, the semicolon is optional, but probably confusing, when you break a single statement into multiple code lines.

    document.write("Hello1");
    document.write("Hello2");

    //Semicolons are optional:
    document.write("Hello3")
    document.write("Hello4")

    //This works too but only if you use a semicolon:
    document.write("Hello5"); document.write("Hello6");

    //Two lines also works:
    document.write
    ("Hello7")
    From our Beginners Corner Topic.
    FAQ of the Month: JavaScript Defined
    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!





    Prestwood Linux Users GroupTop 

    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
    Download of the Month: KDevelop
    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!





    Prestwood Paradox GroupTop 
    A classic post from our Paradox for DOS topic...
    How to run Paradox for DOS on Vista by Mike Prestwood

    For maximum compatibility, use compatibility mode and adjust settings (640x480, and run in a Window, etc.).

    A classic post from our OPAL: Commands topic...
    Debugging ObjectPAL Code by Mike Prestwood
    Tracinging built-in events, setting breakpoints, compiler options, debugging without the debugger, types of errors, the error event, errorShow, and the try structure.

    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

    Declaring variables is optional unless you click Program | Compiler Warnings while in the ObjectPAL editor for every form, script, and library you create. Using Compiler Warnings is strongly recommended to avoid incorrectly typing an existing variable and to avoid any confusion about variable scope. Also recommended is turning on Compile with Debug for every form, script, and library too for tighter, cleaner code.

    Undeclared variables are AnyType variables. Common data types include Currency, Date, Datetime, Logical, LongInt, Number, SmallInt, String, and Time.

    Declare local variables within a method. If you want a local static variable (retains it's value because it is not destroyed), declare the varialbes above the method. Variables declared in an object's Var window are visible to all methods attached to that object, and objects that it contains.

    var
        FullName String
        Age SmallInt
        Weight Number
    endVar
     
    FullName = "Mike Prestwood"
    Age = 32
    Weight =154.4
    msgInfo("", FullName + ", age=" + String(Age) 
                 + ", weight=" + String(Weight))
    From our OPAL: Language Basics Topic.
    Definition of the Month: ObjectPAL
    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
    Download of the Month: PrestoEdit
    Powerful text and source code editor that color codes ObjectPAL syntax. Great for times when you wish to edit ObjectPAL outside of Paradox.

    An advanced multi-tabbed text editor for source code and plain text. Includes advanced features for home users and developers including projects, line numbers, spell checking, full color syntax highlighting and code handling features.

    Products / Languages Supported

    ANSI C, Batch files, C, C++, Delphi, HTML, Informix, INI files, Java, MS SQL, ObjectPAL, Object Pascal, Oracle, Paradox, Perl, PL/SQL, SQL, Sybase, and Visual Basic.

    From our Installation, Setup, & BDE Topic.
    Documented Error of the Month: Paradox error 11270
    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 Paradox & ObjectPAL Topic
    Resource Link of the Month: Diamond Software Group

    Maintained by Steven Green. This link takes you directly to his used Paradox titles where you can buy older versions of Paradox.

    From our Tool Basics Topic.
    FAQ of the Month: Purchasing Paradox
    Question:

    How can I purchase Paradox?


    Answer:

    Answer from Corel...

    Paradox was not updated from Paradox 10. It was given a new look, but the functionality remains mainly the same. Paradox 11 is available in the WordPerfect Office Professional version and can be purchased through Corel's online store or by calling us [Corel].  Paradox is also available as a standalone if you already own WordPerfect Office, and is [available] through our licensing program.  Within North America, please call 1-800-772-6735, Corel's Customer Support Services, to purchase the Paradox upgrade. We are open from Monday - Friday, 9:00 am - 7:00 pm E.S.T. and would be happy to serve you. For customers outside of North America, please visit www.corel.com/contact to locate a Corel Customer Support Services Center nearest you.

    From our Interactive Paradox: Forms Topic
    Tip of the Month
    Design your forms using the default Windows color scheme. Your applications will look more professional and consistent with the predesigned Windows color schemes and various themes. I've seen WAY too many Paradox applications where the developer has used too many background colors on forms. Sometimes the use of a few nice colors for different areas of an application works well, most of the time it doesn't. I'm not saying don't add color, I'm just saying be tasteful. Some of the Paradox applications I've seen look HORRIBLE!

    Paradox Message Board

    Ask this group a question! Select a topic below or Visit Paradox Board Now!
    TopicThreadsPostsLast Active Thread
    Paradox Setup, Vista, etc.2191281RE: Paradox 7 Update...
    Paradox Tables46271StruList Documentation...
    Paradox Forms101384No Compiled EXE for Paradox...
    Paradox Reports28116RE: Printing forms as repor...
    QBE & SQL36234RE: Networking Paradox 9...
    Application Framework1140Print report from App Frame...
    ObjectPAL7955655PrinterSetCurrent...
    Paradox for Linux1036Free Paradox for Linux Book...
    Paradox Third Party Books &...945New Paradox User...
    Paradox Third Party Softwar...2567OLE and Arrays?...
    Paradox to/from Other Data ...65234RE: Using Index on Oracle...
    Paradox Web Stuff45165RE: Is it possible to uploa...
    Paradox Graphs & Charts1043Charts and Graphs probs...
    Paradox Runtime & Distribution43267Paradox 9 Runtime - Report ...
    Convert To/From Paradox1343Hi, I'm SteveC...
    Paradox for DOS1167Another possible problem wi...


    Last Month's MB Posts

    Thread StarterReplies Last Post Topic
    Corel Web Server Limitations
    Hi, I am a Paradox developer from way back (1985 in fact) and have never really touched on the Web Server OCX much. I am wondering if anyone is usin...
    4
    Hi Mike, The WebSvr.ocx can be unreliable and unstable depending on your use.  I have found it...
    3/27/2010
    Paradox Web Stuff
    ProView
    Hi Everyone! I'm new to Paradox and trying to use ProView.  I get the following error and wanted to see if anyone could point me in the right direc...
    4
    I had exactly the same problem after I switched from Vista to Windows 7, using Paradox 10 SP 2 and 3...
    12/4/2009
    Paradox Third Party Software, DLLs, and Controls
    Sendkeys in Paradox 11 in V...
    Hi, New to this thread....just happy to see that I'm not the only one still using Paradox! I can't seem to get the sendkeys function in objectpal (pdx 11...
    1
    Windows 7, probably the same as vista, am trying to use sendKeys also or some method to interact wit...
    11/4/2009
    Paradox Setup, Vista, etc.
    pdxwin32.exe hungapp while ...
    Hello All, I just started getting a pdxwin32.exe hungapp while printing in paradox on one computer only. We have paradox 10 on 7 nodes with no problem ...
    5
    Hi Scott, If that was happening to me I would try...
    10/2/2009
    Paradox Reports
    Excel 2007 pivot tables, Pa...
    Just trying to get an idea if anyone else uses pivot tables that use a Paradox table as a data source.  If so, have you had issues upgrading from Excel 200...
    7
    The interface is quite simple. You shpould try it. Like with excel 2003 there are limitations to the...
    9/6/2009
    Paradox to/from Other Data Sources






    Prestwood Perl GroupTop 

    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

    Common comparison operators:

    == equal
    != not equal
    < less than
    > greater than
    <= less than or equal
    >= greater than or equal

    #Does Perl evaluate the math correctly? No!
    if ((.1 + .1 + .1) == .3) {
    print("Correct<br>");
    } else {
    print("Not correct<br>");
    }
    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!
    TopicThreadsPostsLast Active Thread
    Perl612How to flow Diagram an exis...







    Prestwood PHP GroupTop 
    A classic post from our PHP topic...
    PHP and MySQL Basics by Adam Lum
    The basics to get you going in PHP with a MySQL Database.

    Monthly PHP 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 Reference Topic.
    Code Snippet of the Month

    PHP

    • Operator - No.
    • Method -

     

    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.
    FAQ of the Month: Delphi PHP V
    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!
    TopicThreadsPostsLast Active Thread
    PHP513dropdownbox that is populat...


    Last Month's MB Posts

    Thread StarterReplies Last Post Topic
    PHP and Paradox
    Hello, Is it possible to retrieve multiple records from a paradox table in php? I can connect and retrieve a single record, but I don't see how, given the php ...
    1
    Hi Steve, Are you using a select statement right now? In other words, when you say " I can connect ...
    2/15/2010
    PHP
    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...
    0New!
    7/1/2009
    PHP






    Prestwood Prestwood GroupTop 

    Prestwood Message Board

    Ask this group a question! Select a topic below or Visit Prestwood Board Now!
    TopicThreadsPostsLast Active Thread
    psSendMail DLL625?Use PsSendMail to auto loa...







    Prestwood PrestwoodBoards GroupTop 

    PrestwoodBoards Message Board

    Ask this group a question! Select a topic below or Visit PrestwoodBoards Board Now!





    Prestwood Prism GroupTop 
    A classic post from our OOP topic...
    Delphi Prism Member Modifiers by Mike Prestwood

    Prism supports a full suite of member modifiers. Prism virtuality modifiers are virtual, override, final, and reintroduce. Prism general modifiers are abstract, empty, async, external, locked, unsafe, implements, and iterator. Not all member types support all member modifiers. For example, member fields support only readonly and implements.

    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 Delphi Prism Topic.
    Code Snippet of the Month

    Delphi uses // for a single line comment and both {} and (**) for multiple line comments. Although you can nest different types of multiple line comments, it is recommended that you don't. Commenting code generally has three purposes: to document your code, for psuedo coding prior to coding, and to embed compiler directives. Most languages support both a single line comment and a multiple line comment. Some languages also use comments to give instructions to the compiler or interpreter. A special comment. Delphi compiler directives are in the form of {$DIRECTIVE}. Of interest for comments is using the $IFDEF compiler directive to remark out code.

    //This is a single line comment.
     
    {
    Multiple line
    comment.
    }
     
    (*
    This too is a
    multiple line comment.
    *)
     
    {$IFDEF TEMPOUT}
    //...code here
    {$ENDIF}
    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!
    TopicThreadsPostsLast Active Thread
    Delphi Prism38Cache in Asp.Net pages...







    Prestwood PSDP GroupTop 
    A classic post from our PSDP General topic...
    PSDP Phases compared to UML Workflows by Mike Prestwood
    Brief summary of how UML workflows map to the PSDP phases.

    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 & Process Topic.
    Definition of the Month: PSDP Items
    A task, requirement item, design item, test script, or defect. Generically you could refer to items in PSDP as software artifacts (especially requirement items, design items, and test scripts). A PSDP Artifact is a feature that links to together a task, requirement item, design item, and test script.
    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!





    Prestwood Tech GroupTop 
    A classic post from our Hardware topic...
    Great Sound for $30? by Wes Peterson
    For 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 Wired Networking Topic.
    Question:

    Do I need different connectors for Cat 6 then what I'm currently using for Cat 5?


    Answer:

    No, Cat 5, 5e, 6, and 6a all use the same RJ-45 connectors and are downward compatible. Meaning you can use a Cat 6 cable in a Cat 5 network. The difference is in the quality of the cable. Cat 5e is rated higher than Cat 5, Cat 6 is rated higher than Cat 5e, etc.

    However, when building a Cat 5 or Cat 6 cable, you have to use the correct type of connector. Meaning, Cat 6 connectors are built differently even though you can use already made cables.


    Tech Message Board

    Ask this group a question! Select a topic below or Visit Tech Board Now!
    TopicThreadsPostsLast Active Thread
    Net Admin: Hardware10No Subject!
    Net Admin: Software10No Subject!







    Prestwood Tech Writer GroupTop 
    A classic post from our General, Getting Started, etc. topic...
    Writing as a process by Ramesh R
    Writing 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 R
    An 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
    Download of the Month: ABC Amber HLP Converter

    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!
    TopicThreadsPostsLast Active Thread
    Tech Writing24Couple New Articles...







    Prestwood Tester GroupTop 

    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.
    Definition of the Month: CRUD Matrix
    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!
    TopicThreadsPostsLast Active Thread
    Testing10No Subject!







    Prestwood V.FoxPro GroupTop 
    A classic post from our Visual FoxPro (VFP) topic...
    Win-32 API: Determining the Unique Network Interface Card (NIC) ID by Fred Stevens
    Description of technique and sample code for using VFP to access the Win-32 API and return the MAC address of the Network Interface Card (NIC.

    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!





    Prestwood VB Classic GroupTop 

    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 VB 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 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!





    Prestwood VB.Net GroupTop 
    A classic post from our OOP topic...
    VB.Net Class..Object (Class..End Class..New) by Mike Prestwood

    Declare 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 Prestwood

    VB.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 Tool Basics Topic.
    Code Snippet of the Month

    General Info: Programming Literals

    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: Literals

    In 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.

    VB.Net Literals

    String literals are quoted as in "Prestwood". If you need to embed a quote use two quotes in a row.

    To specify a floating point literal between 1 and -1, preceed the decimal with a 0. If you don't, the compiler will auto-correct your code and place a leading 0. It will change .1 to 0.1 automatically. Trailing decimals are not allowed.

    Console.WriteLine("Hello")
    Console.WriteLine("Hello ""Mike"".")
      
    'Does VB.Net evaluate this simple
    'floating point math correctly? No! 
    If (.1 + .1 + .1) = 0.3 Then
    MsgBox "Correct"
    Else
    MsgBox "Not correct"
    End If
    From our WebForms (ASP.Net) Topic.
    FAQ of the Month: Run a Program in VB.Net
    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!
    TopicThreadsPostsLast Active Thread
    VB.Net Coding614Editing pdf files with VB o...







    Prestwood Web Design GroupTop 
    A classic post from our MS Frontpage topic...
    Browser Safe Fonts by Mike Prestwood
    These browser safe fonts will render well on various operating systems and browsers.
    A classic post from our Cascading Style Sheets (CSS) topic...
    CSS-P: Demystifying HTML Element Positioning Contexts by Evan Egalite
    The 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
    Download of the Month: DHTML Menu Builder
    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 Logos Topic
    Tip of the Month

    Each logo you create should have at most one symbol. You can mess with the text is "textual" ways such as font, color, and minor tweaks, but if you include a "symbol", you should include only one symbol.


    Web Design Message Board

    Ask this group a question! Select a topic below or Visit Web Design Board Now!





    Prestwood Web Owners GroupTop 
    A classic post from our Internet Marketing topic...
    How to Promote Your Website by Mike Prestwood
    Ideas for promoting your website.

    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!





    Prestwood Win Users GroupTop 
    A classic post from our Win Users topic...
    Clean Start Menu and Registry Entries by Vicki Nelson
    Second article of the series, Windows XP Tip of the Month. Optimize your operating system for faster performance.
    A classic post from our Windows XP topic...
    Hidden Searching Secrets in Windows XP by Joshua Delahunty
    You'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 much memory do I need with Windows Vista?

    Answer:

    With the size of applications and data, my belief is that you need a minimum of 2 GB of RAM not because it's required, but because Vista will use it. In Windows Vista, the caching scheme changed. Vista's SuperFetch built on and replaced Prefetch. Unlike Prefetch, SuperFetch will use up ALL memory you give it so you want as much memory on Vista as you can afford. My current Vista system has 3 GB of RAM with an additional 4 GB ReadyBoost compliant USB flash drive.

    From our Win Users Topic
    Tip of the Month

    If you know the correct driver is installed on your computer some place but don't remember where or know it's part of Windows, use the browse  for local driver option and specifiy a path of C:\ and check the include subfolders checkbox.

    For example, in Vista, if there are no bluetooth devices on you computer when Vista is installed, the bluetooth stack isn't loaded. To load it, simply put your USB bluetooth dongle in an available USB port and use the tip above to load the Vista bluetooth driver.


    Win Users Message Board

    Ask this group a question! Select a topic below or Visit Win Users Board Now!





    Message Boards Summary

    PrestwoodBoards.com Recent Threads (all topics)

    Thread StarterReplies Last Post Topic
    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....
    0New!
    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...
    0New!
    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...
    0New!
    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...
    0New!
    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.
    Diplaying javascript error ...

    0New!
    8/7/2010
    ASP Classic - Handling Data
     
    746 People Online Now!!  
    Online Now: Sign In to see who's online now!  Not a member? Join Prestwood now. It's free!