I currently don't have the time to check it out, but it should run in Qbasic if you want the program to be compatable. QB4.5 needs BRUN45.exe to be included for compiled common shared values to work with CHAIN. Try the program in each to see how it works. PDS has a lot of options and specs not available in the other versions. How badly do you need PDS?
You could just use another file if you want and open it when needed. Also random is not necessary as WRITE # created data files are easy to use. Place all of your variables in one WRITE # line and then INPUT # the same variables in one swipe. You are currently doing the same consecutive thing using PUT and GET. Since your variables change names, you cannot use a loop. You don't need a placeholder number if you PUT and GET from the first value to the last. String variables should be a defined length.
Just some ideas. Have fun!
Ted
PS: If it does not run in QB 4.5, I don't use PDS.
This message has been edited by burger2227 on Jul 19, 2009 9:13 PM