Reflection 14.x Macro Recorder Supports .NET

  • 7021690
  • 04-May-2004
  • 01-Apr-2018

Environment

Reflection Windows-based Products version 13.0 through 14.x

Situation

The Reflection Macro Recorder supports .NET. You can use the recorder to record scripts in C# and VB.NET, copy the text to a clipboard, and paste the code in a code editor.

Resolution

Recording .NET Syntax

The Reflection script recorder allows you to select VB.NET and C# syntax for recorded scripts (in addition to support for VB and VBA syntax). Commands are recorded to the Windows clipboard. You can paste the resulting code directly to your code editor.

To record commands

  1. Click Macro > Start Recording.
  2. Perform the actions that you want to record.
  3. Click Macro > Stop Recording. This opens the Stop Recording dialog box.
  4. In the Stop Recording dialog box, select Clipboard from the Destination drop-down menu. The Clipboard options group box displays.
  5. In the Syntax drop-down menu, select the appropriate syntax, VB.NET Source or C# Source.
  6. Optional: If you choose, you can enter a value for Function (or use the default). Also, you can select the Include object prologue check box so that the recorded code includes Sub and End Sub statements for VB.NET, or, for C#, a function declaration.
  7. Click OK.
  8. Open your code editor and paste in the recorded code.

Additional Information

Legacy KB ID

This document was originally published as Attachmate Technical Note 1809.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.