Solved

Long strings in Delphi 1.0

Posted on 1997-05-27
8
159 Views
Last Modified: 2010-04-04
We have a massive app written in Delphi 2.0 which uses a lot of VERY long strings.  Now we have to re-do it for Delphi 1.0.  It seems that we must contrive a custom class for handling strings of arbitrary length, longer than Delphi 1's limits.  Others must have faced this.  How is it done?  Deeply appreciate any help.
0
Comment
Question by:normpos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 

Author Comment

by:normpos
ID: 1336609
Edited text of question
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1336610
You might have to use PChars.
0
 
LVL 1

Expert Comment

by:buemoh
ID: 1336611
That's a bad way - downsourceing.

Strings where different handled in Delphi 2.x and 1.x, therefore:

If you want to have all the easy to handle string-handling-routines, the best way may be to build a new string-class in Delphi 1.x which supports all this functions.

If you've only used ANSI-string routines in delphi 2.x, you can change alle string statements into PChar-statments.

Both possibilities are not done without any changing of code.

There may be some string-classes for Delphi 1.x on some web-sites, like Delphi Super page.

Bye

hartwig

-----------------------------------------------------------
///\\\ Hartwig MOTAL ///\\\  e-mail: moh@bue.magwien.gv.at
 Weinberggasse 60/9/7, A-1190  Vienna/Austria/Europe

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:tfwong
ID: 1336612
How LONG is the string you need to handle ?
0
 

Author Comment

by:normpos
ID: 1336613
tfwong:  Thank you for your interest.  Your question, "How Long":  Answer:  Arbitrary length, generally much longer than the 65K limit in Delphi 1.0.  Do you know the URL for Delphi Super page?
0
 

Expert Comment

by:tfwong
ID: 1336614
There are several Delphi Super Pages as far as I know, you can visit my page with some delphi links at:

http://www.asiaonline.net.hk/~tfwong/computer.htm

0
 

Author Comment

by:normpos
ID: 1336615
buemoh:  Thank you for your interest.  Yes, I have to "build a new string class" in Delphi 1.  How is this done?  If you can help me, you can have the 100 points.  -- Norm
0
 
LVL 1

Accepted Solution

by:
ozzy earned 100 total points
ID: 1336616
Why not setup a new type called lstring and make it an array or characters?  Or use PChar.  They are easy to use.

If you are concered about the 64k limit, make a pointer, use getmem and the size you will need and point a pointer to it.  Then you can reference the string and it can be as long as you need it.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question