variables getvalue

dstdst
отредактировано 01:22 Раздел: FastReport 3.0
hi ;)

my problem is that i have variable 'firm_name' in my report and in my sorce code
i wrote
procedure TMainForm.actionfrxReportGetValue(const VarName: String;
var Value: Variant);
begin
if VarName='firm_name' then
Value:=ParamsForm.FirmaImeEdit.Text;
end;

BUT when this procedure is executing the const VarName is empy string - '' and report can not create preview. the error is
---
Memo8: Error in expression'': Expression expected
---

this metod i saw in topic
http://www.fast-report.com/ru/forum/index....753&hl=variable

Комментарии

  • отредактировано 01:22
    Variable is found in memo or in Script?
    P.S.
    There is english forum.
  • dstdst
    отредактировано 01:22
    спасибо

    sorry next topic i will post in english version

    but just finish this one

    my variable is in memo object
    memo8 has one line [firm_name]
  • отредактировано 01:22
    Check this example.
  • dstdst
    отредактировано 01:22
    10x

    this is working FINE

    but, my problem was that i declare variable in designer
    from the menu Report->Variables
    i created new category1, then new variable firm_name
    and i got the error.

    now i deleted this variable and left onli in the memo8 text [firm_name]
    and it passed withot error

    10Q again !

Оставить комментарий

Многофункциональный текстовый редактор. Чтобы отредактировать стиль параграфа, нажмите TAB, чтобы перейти к меню абзаца. Там вы можете выбрать стиль. По умолчанию не выбран ни один стиль. Когда вы выберете текст, появится встроенное меню форматирования. Нажмите TAB, чтобы войти в него. Некоторые элементы, такие как многофункциональные вставки ссылок, картинок, индикаторов загрузки и сообщений об ошибок могут быть вставлены в редактор. Вы можете перемещаться по ним, используя стрелки внутри редактора и удалять с помощью клавиш delete или backspace.