<< Prev        Next >>

ID : 314

DefPos

Function

To declare local variable for Position Type.

Syntax

DefPos variable name [=initial value][,variable name 2[=initial value 2]…]

Variable name
Designate a variable name. Each name must be specified in accordance with the Naming convention.
Initial value
Designate an initial value for the variable you created.
Variable name 2, initial value 2
You can declare multiple local variables of Position Type at the same time. ", (comma)" can be used for a separation.

Description

-

Related Terms

-

Attention

This command is RC7M compatible, but an unrecommended command. This might be no longer supported, so use Dim for future use.

When you don't put any value in initial value, "P(0,0,0,0,0,0,-1)" will be assigned.

Example

'!TITLE "Declaration of Position Type Data"
' Assign a value to variable declared in position type data and display it on the message output window
Sub Sample_DefPos

  ' Declare a variable aaa in position type data
  DefPos aaa

  aaa = P( 100, 100, 100, 0, 0, 0, -1 )

  ' Display P( 100, 100, 100, 0, 0, 0, -1 ) on the message output window
  PrintDbg aaa

End Sub

ID : 314

<< Prev        Next >>