?
Solved

Long strings in Delphi 1.0

Posted on 1997-05-27
8
Medium Priority
?
160 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
Industry Leaders: 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 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