Problem with adding classes

edited 2:03AM in FastScript
Hello,

I want to add classes to a script, and don't want to add the classes to fsglobalunit, because I need to have them local.

I cann add the classes by calling:

fsscript.AddClass(Tmyclass, 'Tpersistent');

If I do so, the class is not accessable in my script. It is only accessable, if I add it by calling:

fsglobalunit.AddClass(Tmyclass, 'Tpersistent');


In the documentation I read, that I also should be able to add the class localy for the script. Why doesn't it woirk?

cu
Helmut

Comments

  • edited 2:03AM
    All classes should be added to fsGlobalUnit since IL parser looks for them in fsGlobalUnit.

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.