Microworlds Project File Processor Control:
Add Global Variables to MW Project Files

by Arnan (Roger) Sipitakiat
Future of Learning, MIT Media Laboratory

Introduction

This ActiveX control allows you to add global variables to Microworlds project files.  These global variables are normally created with the command createprojectvar (See Microworlds help for more info). This control can be useful when you have a set of external data that you want to import into Microworlds. Though there are many ways to accomplish this task (i.e. reading text files, linking MW to Excel), this method is the simplest. It allows the user to focus on working with the data without the detour of writing code to import it to MW.

This control can be used in any programming environment that supports the ActiveX framework (i.e. Visual Basic, Excel, Access, etc).

 

Download

Microworlds File Processor ActiveX control
 
Description Date Download Size
MW file gen control 1.0

 Package includes:

  • ActiveX control

  • Demo program

  • VB Source code

Mar 26, 2002 MWFileGenControl10_Mar26.zip 1.5M

 

Using the Control

There are five simple methods available

Method Arguments

Description

OpenProject
FileName
Opens a Microworlds project file to process.

Example:

OpenProject "C:\test.mw2"
Save
FileName
Saves the processed file

Example:

Save "C:\NewFile.mw2"
AddVar
VarName , Value
Adds a new variable and its value to the project

Example:

AddVar "Temp", "55"
AddList
ListName
Adds a new list to the project

Example:

AddList "PhoneNumbers"
AddValueToList
ListName , Value
Adds a value to the specified list

Example:

AddValueToList "PhoneNumber" "253-9706"

 

Microworlds File Format

Here is a short documentation explaining what you need to know to add global variables to a MW project file. Documentation