Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6851457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:15:01+00:00 2026-05-27T01:15:01+00:00

Does anybody know how to enumerate the used file-numbers [as in FileOpen(filenum, …)] in

  • 0

Does anybody know how to enumerate the used file-numbers [as in FileOpen(filenum, …)] in Visual Basic .NET 3.5 (VS2008)?

The situation is: I’m doing “a quick port” (just to bring it up a supported architecture) of an old VB6 WinForms application (it’s “just a tool” really, not a full-on app) to VB.NET using Visual Studio 2008’s automatic translator, over the .NET 3.5 framework. The existing code stores “records” in parallel arrays, the index of which is the output-file-number, and output-files are opened and closed “ad hoc”… so I can’t “just” use FreeFile (I could, but it’d basically be a rewrite, which we won’t get paid for).

After translating I’ve got an “invalid filename or number” error upon FileOpen’ing filenum=350 for Ouput… I know the filename is valid, and doesn’t already exist. I tried (just for debugging) setting filenum=FreeFile and that worked (i.e. the file was opened)… so I figure that filenum=350 is already open, but how to tell BY WHAT? A listing of the used filenums -> names would give a huge leg-up.

I suspect this just isn’t possible, but I’ve got to ask anyway, because it was save ever-so-much time, effort, and thought if it is possible, so here we are.

Cheers all. Keith.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:15:01+00:00Added an answer on May 27, 2026 at 1:15 am

    I may be wrong here, but I don’t think that file numbers can be greater than 255.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody know how to get thumbnail (still image) from 3gb video file? First
Does anybody know what hypothetical indexes are used for in sql server 2000? I
Does anybody know of an up to date tutorial on using Ajax with ASP.net
Does anybody know a way to deactivate the autoplay function of windows using c#/.NET?
Does anybody know how to properly read from a file an input that looks
Does anybody know if http://reportman.sourceforge.net/ will be available for Delphi XE?
does anybody know how to figure out the assembly versions (not file versions) of
Does anybody know any way or any software which could decompile swf file to
Does anybody know how I use asp.net mvc routing to force any non ajax
Does anybody know any good resources for learning how to program CIL with in-depth

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.