IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
-Collapse +Expand Paradox To/From
To/FromCODEGuides
-Collapse +Expand Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

December Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardObjectPAL Topic   Print This     

Adding at the start of a text string

Adding at the start of a text string in ObjectPAL topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Adding at   Adding at start   of text  
Leo
Civilized Africa
I’m running into one problem after another with this assignment I’m doing. Harrr. This time it’s about the output file that I’m trying to create with a textStream. I believe I’ve found a partial solution to some of the problems I have if I can add text lines to the start of the text file. I’ve tried it, but no matter what I do, the original first line always get overwritten. I first tried a normal new file open(name,nw). then I tried to create a new file, close it, then open the file in append mode open(name,a). Nothing helps. Is it at all possible to add text to the front of a text stream?
Another Leo
_ _ ___________________ _ _
We are Micro$oft
You will be assimilated
Resistance is futile
 Posted 18 years ago (Thread Starter)
Comment Quote
About Leo -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #9680, 6 replies
Thread Started 5/29/2003 5:05:00 AM
View Counter=4500
Last Reply Posted 9/19/2012 2:44:07 PM)
Location=Civilized Africa  
Joined=19 years ago   MB Posts=96  
Leo
Civilized Africa
Darn! That kills half of my phylosiphy!!!!! AARRRRRRRRRRRR

I'm sure there's an easier way to do what i'm trying to do. if i have to store the text stream temporarily I might as well store the data and output to a texstream when i'm done. Thanx dude
Another Leo
_ _ ___________________ _ _
We are Micro$oft
You will be assimilated
Resistance is futile
 Posted 18 years ago (Thread Starter)
Comment Quote
About Leo -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #9682 (Level 1.1)  Reply to 9680
Thread Started 5/29/2003 11:31:00 PM
View Counter=2
Location=Civilized Africa  
Joined=19 years ago   MB Posts=96  
mike.p2
merlin circuit tech
UNK UK

Hi Did you ever get a solution to your problem adding text to the beginning of a textstream, i am trying to insert text without over writing is that possible, ?

 Posted 9 years ago
Comment Quote
About mike.p2 -Collapse +Expand
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #14907 (Level 2.1)  Reply to 9682 and Parent is 9680
Thread Started 9/18/2012 8:51:24 AM
Location=UNK UK 
Joined=9 years ago   MB Posts=2  
Daniel Fought
Prestwood IT
Home office in Fresno, CA.

Leo

The help file specificly states that writeline will overwrite the current line.  If you want to preserve the line you will need to read the line into a variable and append it to the end of the string you are writing.  Dont forget to insert a CR/LF .

Dan Fought
Senior Programmer Analyst
Prestwood IT Solutions
http://www.prestwood.com

 Posted 9 years ago
Comment Quote
About Daniel Fought -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Daniel Fought
Danial Fought is a senior programmer analyst with Prestwood IT where he develops custom Windows software and custom websites. When Dan is not coding for clients, he participates in this online community. Coding specialties include Paradox/ObjectPAL, MS Access, Visual Basic, and VS.Net/VB.Net.

Post ID #14912 (Level 2) and Parent is 9680
Reply Posted 9/19/2012 7:28:23 AM
Location=Home office in Fresno, CA. 
Joined=19 years ago   MB Posts=401   KB Posts=12   KB Comments=4  
ASPT
ASPT
Hickory, NC USA

Dan

Wes knows that I can get a bit thick at times and I am curious since I do not work much with text streams and I can not find the right "idiot sheet" to tell me how to insert a "CR/LF".  I am sure that "27/12/13" wont get it but I am missing what will.

Thanks

Ralph Maxwell

 Posted 9 years ago
Comment Quote
About ASPT -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14913 (Level 1.1)  Reply to 14912 and Parent is 9680
Thread Started 9/19/2012 1:12:54 PM
Location=Hickory, NC USA 
Joined=12 years ago   MB Posts=12  
Daniel Fought
Prestwood IT
Home office in Fresno, CA.

That goes way back.  CR/LF  would be chr(13)+chr(10) often the \n works just fine.

Dan Fought
Senior Programmer Analyst
Prestwood IT Solutions
http://www.prestwood.com

 Posted 9 years ago
Comment Quote
About Daniel Fought -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Daniel Fought
Danial Fought is a senior programmer analyst with Prestwood IT where he develops custom Windows software and custom websites. When Dan is not coding for clients, he participates in this online community. Coding specialties include Paradox/ObjectPAL, MS Access, Visual Basic, and VS.Net/VB.Net.

Post ID #14914 (Level 3) and Parent is 9680
Reply Posted 9/19/2012 2:19:43 PM
Location=Home office in Fresno, CA. 
Joined=19 years ago   MB Posts=401   KB Posts=12   KB Comments=4  
Most Recent Post
ASPT
ASPT
Hickory, NC USA

Duh!  When you put it that way it is perfectly clear.  Thanks!

 Posted 9 years ago
Comment Quote
About ASPT -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14915 (Level 1.1)  Reply to 14914 and Parent is 9680
Thread Started 9/19/2012 2:43:08 PM
Location=Hickory, NC USA 
Joined=12 years ago   MB Posts=12  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P184A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #9680 Counter
4500
Since 4/2/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]