Xbasic alpha software




















Assigning an expression to the function name does not terminate the function. For example, copy the code below into the Interactive Window and run it. Note that the showvar statement in squareA never executes, but the showvar statement in squareB runs, displaying the message shown below.

Data can also be returned using function arguments. If an argument is declared as BYREF, any modifications to the argument by the function changes the variable passed into the function from in the calling script. When an argument is passed by value, a copy of the variable is made and sent to the function.

When a dialog box is displayed using the FORM. You write Xbasic scripts in the Code Editor. The Code Editor is a multi-tabbed window that lets you edit multiple scripts at the same time. It always includes at least one tab called the Interactive window where you can test individual lines of Xbasic code and see immediate results.

The Code Editor lets you write scripts in two ways. You can use the graphical Action Scripting method, or you can type in Xbasic commands. When you create an image database, you may want to have a low resolution viewfile to represent a higher resolution image. Typically, the viewfile would be used when you want to quickly put an image on the screen, without moving megabytes of data.

Many of the forms in the AlphaSports application have a set of images in the lower right corner. At first, you might think these were buttons with image labels.

In fact, they are actually composed of two layered images and a set of Hotspots. A hotspot is similar to a button without a visible component. It is a rectangular region that responds to an OnPush event and will run either an Action Script or Xbasic code.

The CanExit event provides the developer with a way to intercept a close form and, in this case, exit application command, and then:. Like the properties and methods and events of objects, the functions you saw in the previous section are all built-in to Alpha Four. Like object methods, you can call a function to accomplish a pre-designated task.

Citizen Development. Xbasic Guide - An introduction to Xbasic. Sarah Mitchell. Alpha Anywhere , Educational Resources , education. About Author. Related Posts. A good way to describe the static attribute is to look at the documentation for Xbasic methods. Alpha Anywhere allows users to create their own classes. The class creation syntax is as follows.

Code indirection refers to the situation when you want to execute an Xbasic command that is contained in a variable i. A collection is an Xbasic datatype, similar to an array, but whose elements are referenced with a "key" rather than an index. A key is a value character, numeric or date that uniquely identifies an element in a collection.

The Xbasic command statements determine the structure and flow of execution in a script. For example, the if.. TRUE :. Before a script is run, it must be compiled. When a script is compiled, the Xbasic syntax you have written is checked and then turned into a series of compact machine instructions.

To define a function with an optional pointer variable, you must follow the function declaration syntax illustrated below. An expression can include any combination of fields, constants, operators, and functions.



0コメント

  • 1000 / 1000