know if a variable is defined

Hi everyone.


How can I tell if a variable is defined in PascalScript?


Thanks!

Comments

  • uses fs_iinterpreter;

    var i: integer;

       v: TfsCustomVariable;

    begin

        for i:=0 to frxReport1.Variables.Count-1 do

          if frxReport1.Variables.Items[i].Name[1]<>' ' then

            ShowMessage(frxReport1.Variables.Items[i].Name);

        for i := 0 to frxReport1.Script.Count - 1 do

          begin

            v := frxReport1.Script.Items[i];

            if v is TfsMethodHelper then

              ShowMessage(v.Name+' '+TfsMethodHelper(v).Syntax+' '+TfsMethodHelper(v).Description);

          end;

    end;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.