703-C10234 Left Side of [-] Must be a STRUCTURE Type
Technical Support Guide
Table of Contents
Brand:
- AMX
Models:
- Netlinx
Overview:
When compiling, an error, C10234, occurs: Left side of [.name] must be a STRUCTURE type.
Cause:
You must define a structure's type before it is used. This may get overlooked if you are nesting a structure inside another structure.
Sample Code:
The code below will not compile as written:
DEFINE_TYPE
struct theSecondType
{
theFirstType first
}
struct theFirstType
{
integer int
}
DEFINE_VARIABLE
theSecondType second
DEFINE_START
second.first.int = 1
// end
Resolution
Always make sure you define the structure type before it is used, for example:
DEFINE_TYPE
struct theFirstType
{
integer int
}
struct theSecondType
{
theFirstType first
}
DEFINE_VARIABLE
theSecondType second
DEFINE_START
second.first.int = 1
// end
Table of Contents