Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

figuring out the field format of a fiel created in GW-BASIC


  • Please log in to reply
3 replies to this topic

#1 glrider

glrider

  •  Avatar image
  • Members
  • 180 posts
  • OFFLINE
  •  
  • Local time:12:44 AM

Posted 02 November 2024 - 11:06 PM

I am trying to digitize all my and my families music on tape and I am going through the tapes to check to see if what I have in my data files that were created in GW-BASIC are accurate. I have two files for my tapes and one can I read normally with the program I wrote, but the second seems to be a different format as far as how long the fields are because the data that get printed after a get statement is all over the place.

 

In the past I have had success opening the dat file in Excel and trying to count the number of characters in each field, but for this one it doesn't seem to be working. Anyone with experience with GW-BASIC have any ideas?



BC AdBot (Login to Remove)

 


#2 glrider

glrider
  • Topic Starter

  •  Avatar image
  • Members
  • 180 posts
  • OFFLINE
  •  
  • Local time:12:44 AM

Posted 03 November 2024 - 12:03 AM

I figured it out. I expanded the field length but forgot to expand the overall record length on the open statement.



#3 Chris Cosgrove

Chris Cosgrove

  •  Avatar image
  • Site Admin
  • 29,721 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:44 AM

Posted 03 November 2024 - 04:51 AM

Now that's the sort of boo-boo that catches nearly all of us out sooner or later !  couple of years ago I wrote a program which collected data from a micro-processor without creating any variables to hold the data. It didn't run !

 

Thanks for telling us how you fixed it.

 

Chris Cosgrove



#4 glrider

glrider
  • Topic Starter

  •  Avatar image
  • Members
  • 180 posts
  • OFFLINE
  •  
  • Local time:12:44 AM

Posted 03 November 2024 - 12:02 PM

It's always the simplest things that get us.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users