Overview
Fill one field of your structure.
(number) Address of your structure (returned number from Memory.CreateStructure).
(number) Index of field that you want filled with value.
(number) Index of your fileds this arg is optional and used it just when your index refrenced to a field that is multi dimension [] for examp (int[50]) else leave it zero or anything (See Example 2).
(variant) Value that you want filled in index of Structure.
(string) Set Structure Form for structure that you created (this arg is optional).
Nothing.
struct = Memory.CreateStructure("long, long, long") Memory.SetStructureData(struct, 1, 0, 50) Memory.SetStructureData(struct, 2, 0, 23) Memory.SetStructureData(struct, 3, 0, 51) Memory.FreeStructure(struct)
struct = Memory.CreateStructure("long[3]") Memory.SetStructureData(struct, 1, 1, 50) Memory.SetStructureData(struct, 1, 2, 23) Memory.SetStructureData(struct, 1, 3, 51) Memory.FreeStructure(struct)
See also: Related Actions