![]() |
Is there an equivlent data type as the "struct" in C
Hi
I want to create a "struct" type variable array in Vizard. Each element in the array contains 5 sub-elements with different data type (i.e. string, int, float, etc.). Any suggestion? Thanks Zhi |
|
It sounds like you just want an array of custom class objects. The following code shows how to create a simple class and add instances of it to a list:
Code:
class MyStruct(object): |
That's exactly what I want. Thank you.
Zhi |
All times are GMT -7. The time now is 11:14 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC