An error occurred in script '/home/yhr1ef23xez5/public_html/web2/app/model/bannerhit.php' on line 17:
Undefined index: HTTP_REFERER

    [type] => post
    [name] => projects

WinWrap® | WinWrap® Basic V10 Projects
logo WinWrap®
September 08, 2009

WinWrap® Basic V10 Projects

A WinWrap® Basic project provides an alternative to the '#Uses directive. A WinWrap® Basic project also provides for multiple module and class blocks per macro file instead of VB6 style macro files. A project bundles a collection of members (files) together.

WinWrap® Basic Project Features

  • Alternative to the '#Uses directive
  • Module and Class blocks instead of VB6 style files
  • Multiple Module and Class blocks per project member
  • Bundles a collection of members (files) together
  • Friend and Public symbols are available to all project members
  • Executable projects have an EntryPoint
  • Library projects may be referenced from other projects
  • CreateHandler can create project or project member specific handlers
  • LoadModule can load a project for all other projects or scripts to access
  • WWB-COM, WWB.NET and WWB.NET/Compiled projects all supported

Projects come in two types: executable and library:

  1. An executable project includes one module containing a Sub Main. Clicking on the run button loads the project, executes the Sub Main and unloads the project.
  2. A library project does not have any Sub Main. A library project can be referenced by another project. All Public symbols in the library project can be accessed by the referencing project.

The IDE supports project creation, editing, running and debugging when ProjectMode is true.

Example 1

  1. The IDE opens with an untitled/unsaved new executable project with one module.
  2. IDE's initial project and module.
  3. Create a new module in the project.
    • Select File | New Module | Code Module.
    • Type
    Sub DoIt
        MsgBox "My first executable project."
    End Sub
    Creating a new module in a project
  4. Add a call to DoIt from the Main subroutine.
    • Click on the Module1 tab.
    • Type
    Call DoIt from Main.
  5. Run the project.
    • Select Project | Run.
    • Displays message box.
    Run the project.
  6. Save the project.
    • Select File | Save All.
    • Project1 as Project1.wwp.

Example 2

  1. Create a new library project with one module.
    • Select File | New Project | Library Project.
    • Type
    Sub DoIt
        MsgBox "My first library project."
    End Sub
    Create a new project.
  2. Save the project.
    • Select File | Save All.
    • Project2 as Project2.wwp.
  3. Reference Project2 from Project1.
    • Click on the Project1 tab.
    • Place the caret at the end of the Project line.
    • Press Enter
    • Select Edit | Complete Word.
    • Select ReferenceProject, press Space.
    • Select Project2.wwp, click Open.
    Reference Project2 from Project1.
  4. Call Project2's DoIt from Project1.
    • Click on Project1's Module1 tab.
    • Modify the DoIt line.
    Call Project2's DoIt subroutine.
  5. Run the project (Project1).
    • Select Project | Run.
    • Displays message box.
    Run Project1.
  6. Save the changes.
    • Select File | Save All.

Copyright Polar Engineering, Inc.