Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  Buy Now
  HXTT XML v2.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 Beijing City (abbr, HXTT)

Pascal Style Strings
Martin Ross
2006-06-21 08:06:22.0
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?



Re:Pascal Style Strings
HXTT Support
2006-06-21 08:11:35.0
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.0
What's your data file sample?
Re:Re:Pascal Style Strings
Martin Ross
2006-06-21 08:19:05.0

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.0
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


Copyright © 1999-2017 Heng Xing Tian Tai Lab of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap