You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Originally posted by Donald Miller:
Hey, Lance, how about something in PB instead of VB?
Sure... check out the EXCEL examples that ship with PB/CC 3.0 and PB/Win 7.0... they show you how to send data to Excel via COM. (the ealier reply did not mention COM since PowerBASIC's Windows compilers did not support COM back in 2000!)
However, that sort of functionality is is not possible from DOS... so the CSV or TSV technique is still a valid approach from DOS.
The first thing that comes to mind is to create a CSF (comma separated file) and then import the file into Excel/Access, etc. Of course this would require manual work, but the 'importing' phase could be accompished with a VBA script in Excel I suppose.
Hey, Lance, how about something in PB instead of VB?
The first thing that comes to mind is to create a CSF (comma separated file) and then import the file into Excel/Access, etc. Of course this would require manual work, but the 'importing' phase could be accompished with a VBA script in Excel I suppose.
The second idea is to write a Windows application that can read the random-access file and then use the ODBC interface to store the data in Excel's own native database files. With PB/CC you can read the files just like you can do in PB/DOS, and if you combine this with an ODBC toolkit (like SQLTools from www.perfectsync.com ) then you'll be able to perform the whole task programmatically. As a bonus, you can SHELL to a PB/CC application directly from PB/DOS and continue on when the app finishes - you'll need to be running at least Windows 95, however, as that is the 'lowest' Win32 platform PB/CC applications will work with.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: