Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
19.08.2011, 11:38
|
|||
---|---|---|---|
Массив как член коллекции FoxPro |
|||
#18+
Добрый день всем. Вопрос такой: может ли быть двумерный массив членом коллекции FoxPro (класс Collection)? Как потом работать с таким, "упрятанным" массивом. Пример кода, плз. ... |
|||
:
Нравится:
Не нравится:
|
|||
|
19.08.2011, 15:43
|
|||
---|---|---|---|
Массив как член коллекции 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. ... |
|||
:
Нравится:
Не нравится:
|
|||
|
|
start [/forum/topic.php?fid=41&mobile=1&tid=1584210]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
45ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
others: | 328ms |
total: | 456ms |
0 / 0 |