|
|
|
Помогите с несколькими функциями
|
|||
|---|---|---|---|
|
#18+
Помогите, пожалуйста. Пришлось разбираться с программой на clipper, форумы поискал конкретно по clipper, но они мертвые все, срочно надо, но там насколько я понял язык похож на fox pro, поэтому сюда и пишу. Собственно. 1. что вернет функция LEN(m[i,j]), не пинайте меня, но в справочниках пример только для одномерных массивов. 2. (-m[i,j]) это тоже самое что m[i,j]*(-1)? 3. встречается странная функция ACLONE(m[i,j]) что она делат, тоже самое что и ACOPY или чего то другое, не нашёл нигде в инете. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.11.2005, 22:27:42 |
|
||
|
Помогите с несколькими функциями
|
|||
|---|---|---|---|
|
#18+
1. что вернет функция LEN(m[i,j]), не пинайте меня, но в справочниках пример только для одномерных массивов. Длину элемента m[i, j] (в байтах), если это строка. Ошибку во всех остальных. LEN( ) Returns the number of characters in a character expression. Может ты ALEN() имел ввиду? 2. (-m[i,j]) это тоже самое что m[i,j]*(-1)? Да. 3. встречается странная функция ACLONE(m[i,j]) что она делат, тоже самое что и ACOPY или чего то другое, не нашёл нигде в инете. Такой функции в фоксе нет. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.11.2005, 01:49:16 |
|
||
|
Помогите с несколькими функциями
|
|||
|---|---|---|---|
|
#18+
Вот нашёл www.itk.ru/clip-doc.en/categarray.html#FUNCTIONACLONE Function ACLONE() ACLONE(<aSource>) --> aDuplicate ACLONE() is an array function that creates a complete duplicate of the <aSource> array. If <aSource> contains subarrays, ACLONE() creates matching subarrays and fills them with copies of the values in the <aSource> subarrays. ACLONE() is similar to ACOPY(), but ACOPY() does not duplicate nested arrays. <aSource> is the array to be duplicated. Returns : ACLONE() returns a duplicate of <aSource>. See also : ACOPY() ADEL() AINS() ASIZE() Example : This example creates an array then duplicates it using ACLONE(). The first array is then altered, but the duplicate copy is unaffected: Код: plaintext 1. 2. 3. 4. Там же http://www.itk.ru/clip-doc.en/categarray.html#FUNCTIONLEN Function LEN() LEN(<cString> | <aTarget>) --> nCount LEN() is a character and array function that returns the length of a character string or the number of elements in an array. With a character string, each byte counts as one, including an embedded null byte (CHR(0)). By contrast, a null string ("") counts as zero. For an array, LEN() returns the number of elements. If the array is multidimensional, subarrays count as one element. This means that the LEN() of a nested or multidimensional array simply returns the length of the first dimension. To determine the number of elements in other dimensions, use LEN() on the subarrays as shown in the example below. Note that nested arrays in xClipper need not have uniform dimensions. Т.е. похоже, что m[] - это 3-хмерный массив и LEN(m[i,j]) вернёт размерность 3-го измерения, а ACLONE(m[i,j]) клонирует элемент m[i,j], который является массивом. Правда в этом случае непонятна унарная операция -m[i,j] над массивом. Может умножает все элементы на -1? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.11.2005, 06:45:33 |
|
||
|
|

start [/forum/topic.php?fid=41&fpage=291&tid=1593019]: |
0ms |
get settings: |
10ms |
get forum list: |
20ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
61ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
| others: | 247ms |
| total: | 399ms |

| 0 / 0 |
