June 26, 2017

Insert C# within MV#

One way that MV# works with C# is to permit any C# code to be written inline within MV BASIC (MV#) code. This is done by simply wrapping the C# code with [CSHARP] and [/CSHARP] tags. To illustrate this for an MV developer, use ED for the following, then save, compile and run it:

Enter the record name  SHOW.CSHARP
6 lines long.
----: P

0001: X = 1
0002: [CSHARP]
0003: X++;
0004: [/CSHARP]
0005: CRT 'Expecting 2 ->':X
0006: END
Bottom at line 6.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

About dwolthuis