Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable length type declarations
#4
(08-06-2025, 08:20 PM)bplus Wrote: If you set a field to a variable length you will need another file to track the field lengths, seems like allot of mickey mouse.

Typically fields of string type are set to a reasonable maximum.

   You wouldn't need a separate  file but you would need a fixed length RECORD HEADER with a field for the stored data size.    A seperate file with Record locations would probably be necessary for decent search times if the file grows large though !.
Reply


Messages In This Thread
Variable length type declarations - by dano - 08-06-2025, 06:44 PM
RE: Variable length type declarations - by bplus - 08-06-2025, 08:20 PM
RE: Variable length type declarations - by ahenry3068 - 08-06-2025, 08:36 PM
RE: Variable length type declarations - by dano - 08-06-2025, 09:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QB64PE Excel-type spreadsheet supporting formulas and QB64PE macros? madscijr 33 1,446 01-30-2026, 12:28 AM
Last Post: madscijr
  Determining if variable or static string is passed to a Sub dano 9 1,215 06-20-2025, 06:31 PM
Last Post: CookieOscar
  Most efficient way to build a big variable length string? mdijkens 9 1,876 01-17-2025, 11:36 PM
Last Post: ahenry3068
  Huge array of variable length strings mdijkens 9 1,826 10-17-2024, 02:01 PM
Last Post: mdijkens
  TYPE and CONST within SUB/FUNCTION TerryRitchie 9 1,941 07-11-2023, 01:22 AM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)