Home | Features | Documentation | Sales | Support | SmartWare 4 | Search | About Us | Contact Us
 
 
  Typed Variables
  Faircom Engine
  ODBC Driver
  Windows Report Editor
  Binary Fields
  SQL Query Editor
  Forms and Controls
  COM and Integration
  Event Driven Programs
  Pocket PC Enabled
  Datasheets
  Debugging Tools
  Typed Variables
  The New SPL Editor


 
Typed Variables

New to the coding environment is the support of typed variables.  In previous version the variables were only declared as local, global and public. The variable was never defined as character, integer, long, or short.  The Visual release offers the option of defining the variable as a integer and as a string.

The Impact of Typed Variables

In previous versions the variable was flexible and could be of any type. To treat the variable as a particular type, the developer would use functions such as str and int.  Now with typed variables the variable can be defined as a particular type.

 

In addition to integer and string, the AS command can be used to create custom typed variables.  This is a method of grouping or relating variable to each other.  Please refer to documentation for further assistance.

 

Example

 

1.

 

local foo As String

 

versus previous versions

 

local foo

str(foo)

 

2.

 

local FirstName AS CUSTOMER

local Address AS CUSTOMER

 

Limitations of String Variables

 

String variables have the following character limitations:

 

String Variable                 65534

Parsed Constant String      65534

Unbound TextBox             32767

 

 
 
 
Home | About Us | Contact Us | Copyright