Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.135
  HXTT Cobol 5.0.135
  HXTT DBF 7.1.136
  HXTT Excel 6.1.139
  HXTT Json 1.0.107
  HXTT Paradox 7.1.135
  HXTT PDF 2.0.135
  HXTT Text(CSV) 7.1.135
  Buy Now
  HXTT Word 1.1.135
  HXTT XML 4.0.136
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)

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 © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap