Results 1 to 10 of 10

Thread: Global Options in VBDOS

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2014
    Location
    Northampton, UK
    Posts
    56

    Global Options in VBDOS

    Hi all,

    I hope someone can help. I have a basic vbdos app that I am working on and when my software boots it will load into a plan text mode and on screen it will show the status of the app (eg loading ini files etc)

    I have a global bi file that has all my "global" variables (example I have one called PoSNumber and another called TransNumber etc)

    I am not sure how I can access these from with in forms

    I have tried to follow http://www.antonis.de/faq/qbmonfaq-d...233583164.html

    But I can still not understand it.


    If anyone has any simpler examples or sample code that would be most grateful.

    Also does anyone know how I can make larger number on my form? (I was thinking about using this for the total due that is shown on screen).

  2. #2
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,072

    Re: Global Options in VBDOS

    If I remember correctly you just include your .BI file in your main .BAS module and then all the defined globals will be available throughout the program.
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2014
    Location
    Northampton, UK
    Posts
    56

    Re: Global Options in VBDOS

    Quote Originally Posted by yereverluvinuncleber View Post
    If I remember correctly you just include your .BI file in your main .BAS module and then all the defined globals will be available throughout the program.
    Hi @yereverluvinuncleber,
    I tried that and when i went access for the example the PoSNumber I get either a blank field or a 0 in it

    I'm happy to upload my VBDOS project here as it s a very basic on at the moment.

    I did try this in QuickBASIC and I did not get very far with that at all

    My Plan if i can get this to work is to introduct a VERY BASIC scanning system to my local shop (as at the moment they are using Pen and paper lol)

    Kind regards
    Andy

  4. #4
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,072

    Re: Global Options in VBDOS

    Um, don't.

    Just get a copy of TwinBasic and design your project using a dialect you are familiar with (BASIC) but then choose a supported environment (TwinBasic) where you can receive help and assistance.

    Very few will be able to help you with VBDOS. It is a lost art.

    If you can code in VBDOS then you can code in TwinBasic.
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  5. #5

    Thread Starter
    Member
    Join Date
    Oct 2014
    Location
    Northampton, UK
    Posts
    56

    Re: Global Options in VBDOS

    Quote Originally Posted by yereverluvinuncleber View Post
    Um, don't.

    Just get a copy of TwinBasic and design your project using a dialect you are familiar with (BASIC) but then choose a supported environment (TwinBasic) where you can receive help and assistance.

    Very few will be able to help you with VBDOS. It is a lost art.

    If you can code in VBDOS then you can code in TwinBasic.
    Sorry for late replay I have been having some computer issues.

    I would use TwinBASIC but i do not know how to do the screens correctly that was why I used VBDOS

    I have moved all my globals to a new file called Global.BAS now Do I access them like global.terminalID or
    do I need to stioll use the Dim shared TerminalID as string

    beacuse when it boots up I get "Terminal ID set to : 100" and that is correct but when i go to the sign on screen
    and i have Dim shared TerminalID as string and then on form open labTermID.caption = TerminalID this is blank
    when the screen load

    is this Dim shared creating a new version or do I need to use Dim const so it does not clear the data?

    I know VBDOS is a OLD language but this is mainly for a hobby as I use to use this daily when I was a Teenager

    Kind Regards to anyone who can help

    Andy

  6. #6
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,072

    Re: Global Options in VBDOS

    The dialect of BASIC is virtually the same, syntax &c, you will be familiar with it all. Some differences withe global variables but you will be able to transfer your skills to TB within a day or so.
    The building of forms is virtually the same.

    There is no help to be obtained from 95% of the people here who simply will not have experienced VBDos.

    I have - but I can not remember the specific issues that arise from the use VBDos, so I am no use to you. I no longer have VBDoS so I can't even try things out to test for you.

    You have my recommendation - go to TwinBasic and migrate your skills. If you have problems then we will help. You'll be flying within 2-3 days.

    If you just want to recreate a retro app with retro tools, then I appreciate your efforts but you will need to find another retro-coding group to assist.
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  7. #7

    Thread Starter
    Member
    Join Date
    Oct 2014
    Location
    Northampton, UK
    Posts
    56

    Re: Global Options in VBDOS

    Quote Originally Posted by yereverluvinuncleber View Post
    The dialect of BASIC is virtually the same, syntax &c, you will be familiar with it all. Some differences withe global variables but you will be able to transfer your skills to TB within a day or so.
    The building of forms is virtually the same.

    There is no help to be obtained from 95% of the people here who simply will not have experienced VBDos.

    I have - but I can not remember the specific issues that arise from the use VBDos, so I am no use to you. I no longer have VBDoS so I can't even try things out to test for you.

    You have my recommendation - go to TwinBasic and migrate your skills. If you have problems then we will help. You'll be flying within 2-3 days.

    If you just want to recreate a retro app with retro tools, then I appreciate your efforts but you will need to find another retro-coding group to assist.

    Does TB work still in dos or is this now a windows only version?

  8. #8
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,072

    Re: Global Options in VBDOS

    Quote Originally Posted by AndyGable View Post
    Does TB work still in dos or is this now a windows only version?
    Still? TB never worked in DOS.
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

  9. #9

    Thread Starter
    Member
    Join Date
    Oct 2014
    Location
    Northampton, UK
    Posts
    56

    Re: Global Options in VBDOS

    Quote Originally Posted by yereverluvinuncleber View Post
    Still? TB never worked in DOS.
    Ohh sorry I must have miss understood I was looking for a DOS only solution that was why I want with VBDOS

  10. #10
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,072

    Re: Global Options in VBDOS

    You never stated that. Try to be explicit and clear in your requirements so in future we can attempt to assist you. It is a waste of both our time and yours when you fail to let us know critical information.

    I don't think we can help you further. My suggestion is that you find a retro computing scene where VBDOS users still exist.
    https://github.com/yereverluvinunclebert

    Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.

    By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width