Page 2 of 2 <12
Topic Options
#120729 - 2004-06-09 01:35 PM Re: KiXbin - kixtart binary access library (cRFC)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ja ja.
feel like being in school again

these are the little things why I shouldn't have tropped it even though they forced me to study swedish

good lesson on simplyfying things.
so, to my next q.
well, I need to think that over...
should I remove the reading and writing of arrays and fall back to something.
I know I can't write array and somehow recognice where it is when reading.
and, I can't read multiple bytes of different types and give them to kixtart without array.
eh, I need some time to mix this up in mind but if you have a opinion, say it.
will take some time before I get back to drawing board.
_________________________
!

download KiXnet

Top
#120730 - 2004-06-09 03:18 PM Re: KiXbin - kixtart binary access library (cRFC)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
just thinking structs here...
although kixtart does not support those, arrays of different vartypes kinda is like one.
wonder, should there be switch for how the data should be aligned... and is that possible.
_________________________
!

download KiXnet

Top
#120731 - 2004-06-09 04:21 PM Re: KiXbin - kixtart binary access library (cRFC)
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
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

Top
#120732 - 2004-06-09 04:22 PM Re: KiXbin - kixtart binary access library (cRFC)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
haven't I told you I hate DB's?

k, back to thinking.
_________________________
!

download KiXnet

Top
Page 2 of 2 <12


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.053 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org