Background
I really showed my ass this weekend.
I was looking at a stub of code and I couldn’t walk away from it.
Sample Code
I found a sample code that uses VB.Net.
But, not wanting to install a VB.Net compiler on my machine meant I needed the code converted to VB Script or PowerShell.
Here is a stub that is the subject of this post.
Imports System Imports System.Numerics Module VBModule Sub Main() Dim bigId As BigInteger Dim strLog as String bigId = 0 strLog = "The Value of BigId is:- " & bigId.ToString() Console.WriteLine(strLog) End Sub End Module
Online Compilers
OnlineGDB
I am very vain and I really like the look and feel of OnlineGDB.
Here is a link to it:-
Here is the link to our sample code:-
- System.Numerics.BigInteger.vb
Error Message
Error Message – Image
Error Message – Text
Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.7 - tarball) Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved. /home/main.vb (12,32) : error VBNC30451: 'BigInteger' is not declared. It may be inaccessible due to its protection level. There were 1 errors and 0 warnings. Compilation took 00:00:00.3192040
Explanation
The body of the error message reads:-
Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved.
/home/main.vb (12,32) : error VBNC30451: ‘BigInteger’ is not declared. It may be inaccessible due to its protection level. There were 1 errors and 0 warnings.
Quick Read:-
- Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.7 – tarball)
- Version Number:- 0.0.0.5943 ( Mono 4.7 )
- Developer
- Rolf Bjarne Kvinge
- Copyright (C)
- 2004-2010
- File Name
- /home/main.vb
.Net Fiddle
.Net Fiddle is a good choice, as well.
Here is its Link
Here is a link to the sample page
Message
Message – Image
Message – Text
The Value of BigId is:- 0
Technical Summary
OnlineGDB Visual Basic.Net Compiler appears to be a bit dated.
Why do I say so:-
- Version Number:- 0.0.0.5943
- Copyright:- 2004-2010
It is running on a linux box.
What are the sure sign indicators:-
- Filename:- /home/main.vb
General Summary
With stolen code, please still see if it actually works in its organic state.
If it does not work, try to see if it works in a language you are familiar with.
Thankfully, there are many online compilers, and hopefully you can find one that works for you.
Dedication
I am going to dedicate this post to the Mono Team.
Inclusive:-
- Rolf Bjarne Kvinge
- Miguel de Icaza
- Nat Friedman
Referenced Work
- OnlineGDB
- IDE
- VB Compiler
Link
- VB Compiler
- Sample Code
- System.Numerics.BigInteger.vb
- IDE
- .Net Fiddle
- IDE
- Generic
Link
- Generic
- Sample Code
- System.Numerics.BigInteger.vb
- IDE
- Rolf Bjarne Kvinge
- Blogs
- Xamarin
- Blogs
- Miguel de Icaza
- Wikipedia
Link
- Wikipedia
- Nat Friedman – Nathaniel Dourif Friedman
- Wikipedia
Link
- Wikipedia
- Mono
- Wikipedia
Link
- Wikipedia
- Xamarin
- Wikipedia
Link
- Wikipedia