Converting from QBasic to VB.nET

vb.net Malaysia
  • 12 years ago

     Hi,

     

    Can anyone help me to convert this QBasic code to vb.net

     

    C$ = CHR$(27)
     
    OPEN "LPT1:" FOR RANDOM AS #1
     
    PRINT #1, CHR(2);
     
    PRINT #1, C$; "A";    'start of job
     
    PRINT #1, C$; "V060"; C$; "H150"; C$; "L0102"; C$; "MSN"; CHR$(&HF8); C$; "MSRIE";
     
    PRINT #1, C$; "V050"; C$; "H198"; C$; "L0102"; C$; "M"; CHR$(&HEF);
     
    PRINT #1, C$; "Q2";    'print quantity 1
    PRINT #1, C$; "Z";       'end of job
     

    PRINT #1, CHR$(3);
     

    CLOSE #1
     
     
    Please please 
     
    Thanks

     

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Debugging is anticipated with distaste, performed with reluctance, and bragged about forever.” - Dan Kaminsky