|
|
|
объясните про .Null.
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2007, 13:38 |
|
||
|
объясните про .Null.
|
|||
|---|---|---|---|
|
#18+
THISFORM.Grid1.COlumn4.ControlSource = [STR(abonent.ndom,3) + NVL(abonent.cdom, '')] С уважением, Алексей ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2007, 13:40 |
|
||
|
объясните про .Null.
|
|||
|---|---|---|---|
|
#18+
k_a_t_e Код: plaintext 1. 2. FoxPro Help SET NULLDISPLAY Command See Also Specifies the text displayed for null values. Syntax SET NULLDISPLAY TO [cNullText] Arguments cNullText Specifies the text that is displayed for null values. If cNullText is omitted, the default null value text, .NULL., is restored and displayed for null values. Remarks By default, Visual FoxPro displays .NULL. for null values in objects, Browse windows, DISPLAY output, LIST output, and so on. Use SET NULLDISPLAY to change the default null value text to a different character string. SET NULLDISPLAY changes the default null value text for all objects for which the NullDisplay property is the empty string. Use the NullDisplay property to change the default null value text to a different character string for an individual object. Таким образом, эта команда ником образом не влияет на содержимое полей, только на вывод их на экран. По-моему, надо использовать: FoxPro Help NVL( ) Function Example See Also Returns a non-null value from two expressions. Syntax NVL(eExpression1, eExpression2) Returns Character, Date, DateTime, Numeric, Currency, Logical, or the null value Arguments eExpression1, eExpression2 NVL( ) returns eExpression2 if eExpression1 evaluates to a null value. NVL( ) returns eExpression1 if eExpression1 is not a null value. eExpression1 and eExpression2 may be any data type. NVL( ) returns .NULL. if both eExpression1 and eExpression2 both evaluate to the null value. Remarks Use NVL( ) to remove null values from calculations or operations where null values are not supported or are not relevant. Ваш фрагмент надо будет написать: Код: plaintext 1. 2. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2007, 13:50 |
|
||
|
объясните про .Null.
|
|||
|---|---|---|---|
|
#18+
Следущий текст выдает ошибку sintax error: Код: plaintext 1. 2. 3. 4. 5. 6. 7. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2007, 13:56 |
|
||
|
объясните про .Null.
|
|||
|---|---|---|---|
|
#18+
Спасибо всем, сама нашла ошибку (одинаковые скобки) - все заработало. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2007, 14:08 |
|
||
|
объясните про .Null.
|
|||
|---|---|---|---|
|
#18+
k_a_t_eСледущий текст выдает ошибку sintax error: Код: plaintext 1. 2. 3. 4. 5. 6. 7. Легко... Конкретно ошибка в строке: 'SElect Distinct abonent.clic_schet,abonent.cfio,ulitsa.ctext,STR(abonent.ndom,3)+ NVL(abonent.cdom,'') , '+; Интерпретатор ее распознает как: 'SElect Distinct abonent.clic_schet,abonent.cfio,ulitsa.ctext,STR(abonent.ndom,3)+ NVL(abonent.cdom,' и ') , ' Надо использовать разные "кавычки" обрамляющие строку (пусть будут одинарные) и "внутренние" (те которые внутри функции NVL, можно сделать их двойными). ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2007, 14:08 |
|
||
|
объясните про .Null.
|
|||
|---|---|---|---|
|
#18+
2 k_a_t_e делать нужно так, а то глазки сломаете Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2007, 16:15 |
|
||
|
|

start [/forum/topic.php?fid=41&msg=34670280&tid=1589001]: |
0ms |
get settings: |
9ms |
get forum list: |
19ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
51ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
62ms |
get tp. blocked users: |
1ms |
| others: | 200ms |
| total: | 365ms |

| 0 / 0 |
