Online IDE:- VB.Net & System.Numerics.BigInteger

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:-

  1. 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:-

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.

 

Quick Read:-

  1. Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.7 – tarball)
    • Version Number:- 0.0.0.5943 ( Mono 4.7 )
  2. Developer
    • Rolf Bjarne Kvinge
  3. Copyright (C)
    • 2004-2010
  4. 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:-

  1. Version Number:- 0.0.0.5943
  2. Copyright:- 2004-2010

It is running on a linux box.

What are the sure sign indicators:-

  1. 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:-

  1. Rolf Bjarne Kvinge
  2. Miguel de Icaza
  3. Nat Friedman

 

Referenced Work

  1. OnlineGDB
  2. .Net Fiddle
  3. Rolf Bjarne Kvinge
  4. Miguel de Icaza
  5. Nat Friedman – Nathaniel Dourif Friedman
  6. Mono
  7. Xamarin

 

Leave a comment