RobotStudio event

Question in RAB maunal

Options



Hi all;

where to write the code in page 100 in RAB manual

that declares the secondary view

I tried to place it as a member to the class of the first view ---> gives an error
then tried to place it as a member to the class of the second view --->gives the same error


the error is in the line:

private View2 _view2;

and the error is :

Error    1    The type or namespace name 'View2' could not be found (are you missing a using directive or an assembly reference?)    C:Documents and SettingsmostafaMy DocumentsVisual Studio 2005ProjectsTpsViewIRC5App4TpsViewIRC5App4TpsForm1.cs    15    17    TpsViewIRC5App4




so where to place the declaration of the secondary view ???????


thanks in advance.



mostafa mokadem2010-06-29 00:48:45

Comments

  • now, I typed the code in page 102

    the error becomes in line:

    public View2(ABB.Robotics.Tps.Taf.ITpsViewLaunchServices ls)


    Error    1    Class, struct, or interface method must have a return type    C:Documents and SettingsmostafaMy DocumentsVisual Studio 2005ProjectsTpsViewIRC5App4TpsViewIRC5App4TpsForm1.cs    59    16    TpsViewIRC5App4


  • I downloaded RAB 5.13 manual

    this example is as it is. Unhappy
  • carlosmtz2000
    Options
    HI,
     

    Could you try to change the name of the class?

     

    If this does not work, could you zip and upload the project?

     

    BR
    Carlos Martinez
    ABB
  • webwiz/3292/TpsViewIRC5App4.rar


    attached the file containing an Error.

    thanks in advance


  • when changing class name the error becomes in the line

    this._view2 = new View2();


    Error    1    No overload for method 'View2' takes '0' arguments    C:Documents and SettingsmostafaMy DocumentsVisual Studio 2005ProjectsTpsViewIRC5App4TpsViewIRC5App4TpsForm1.cs    26    27    TpsViewIRC5App4


    mostafa mokadem2010-06-29 17:27:05
  • Niklas Skoglund
    Options
    Hi again,
     

    I will double check the updates made compared to the installed version of the manual.

    Thanks for your patiance.

     

    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog