Well, structs are lovely things, and are great for reading and writing fixed length records with mixed data types.

However I think that they may be one step too far though.

I suppose you could do something like:
Code:
$aRecordFormat=	"i",		; Unique Pupil Number
"c20", ; Student forename
"c", ; Student middle initial
"c20", ; Student family name
"d" ; Student average score as percentage

$aRecordData= "100",
"Richard",
"M",
"Howarth",
"99.99"

$obj.WriteRecord($aRecordFormat,$aRecordData)



I would have thought at this point you would be looking at ODBC drivers