|
Массив как член коллекции FoxPro
|
|||
---|---|---|---|
#18+
Добрый день всем. Вопрос такой: может ли быть двумерный массив членом коллекции FoxPro (класс Collection)? Как потом работать с таким, "упрятанным" массивом. Пример кода, плз. ... |
|||
:
Нравится:
Не нравится:
|
|||
19.08.2011, 11:38 |
|
Массив как член коллекции FoxPro
|
|||
---|---|---|---|
#18+
А матчасть читать типа не обязательно ? HelpAdding arrays as items to a collection instantiated from the base class has limited use because there is no easy way to reference all the elements in the array. Consider the following example: DIMENSION x[3] x[1] = 1 x[2] = 22 x[3] = 333 y = CREATEOBJECT("collection") y.Add(@x) z = y.item(1) && Returns just the first element ? z[2] && Error Therefore, you should create a subclass with special handling for this scenario. ... |
|||
:
Нравится:
Не нравится:
|
|||
19.08.2011, 15:43 |
|
|
start [/forum/topic.php?fid=41&fpage=71&tid=1584210]: |
0ms |
get settings: |
8ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
139ms |
get topic data: |
13ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
others: | 15ms |
total: | 235ms |
0 / 0 |