View Single Post
  #1 (permalink)  
Old 04-30-2005, 03:02 PM
Damfino
Guest
 
Posts: n/a
Default Assigning Variables at runtime?

All

I'm a newbie to Delphi, and newsgroups so please be patient. I have
problem that has me stumped. It's as follows:
I have a binary file containing blocks of 194 bytes of data. Each block
starts with a 2 byte SyncVar of 01101001, so I can easily extract the
194 bytes. The problem comes in that the actual structure of the data
can (and will) be different from file to file. What I would like to do
is define the structure in a text file, and then at runtime apply that
structure to the binary file question.

The text file would then look something like this:
Var1 1 Bit
Var2 16 Bits
Var3 3 Bits
etc.

My application can then use this definition to interpret the data block
and allow for manipulation, etc.

Anyone has an idea if this is even possible?

Regards

Reply With Quote