Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT Text(CSV)
Pascal Style Strings
Martin Ross
2006-06-21 08:06:22
It would be nice to have support in HXTT text driver for pascal style strings. The first byte of the field contains the actual length of the string.

e.g. 0x09,'H','E','L','L','O',0x20,0x20,0x20,0x20 is 'HELLO '

Any thoughts on this?

Thanks,

Martin

Re:Pascal Style Strings
HXTT Support
2006-06-21 08:11:35
It means that pascal style strings will have a variable length from 0~255?
Re:Re:Pascal Style Strings
HXTT Support
2006-06-21 08:15:37
What's your data file sample?
Re:Re:Pascal Style Strings
Martin Ross
2006-06-21 08:19:05
Yes.

This style string is used in many MacIntosh apps (pre OS8/9) and in many old DOS packages based on Turbo Pascal. Alot of what we use HXTT app for is extracting data from old unsupported packages.
Re:Re:Re:Re:Pascal Style Strings
HXTT Support
2006-06-22 21:03:21
v2.3.022 supports Pascal Style Strings:)
For instance:
create table abc (Symbol longvarchar default 'pascalstring' ,RepDate date

('dd-MMM-yy'),Name longvarchar default 'pascalstring',Open NUMERIC(8,2));

insert into abc values('aaa','2006-07-08','bbbb',56);
insert into abc values('aaa','2007-07-08',null,33.332);
select * from abc;

The key is to use longvarchar(or longvarbinary) default 'pascalstring' for all columns of Pascal style strings.

BTW, PasToJava, JavaToPas,PasToJava,CToPas,CToJava, and JavaToC funtions are provided for conversion between null-terminated string, Pascal-style string, and Java string.

longvarchar default '\0' is used for null-terminated string.


Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap