CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 03-20-2003, 09:35 PM
Lim Chee Beng's Avatar
Lim Chee Beng Lim Chee Beng is offline
Registered User
 
Join Date: Nov 2002
Location: Malaysia
Posts: 210
Question How to ensure read_file reaching end on each line?

In OSDD macro, READ_LINE will take only maximum of 1023 characters. Probrlem arises when 1 line of text is longer than 1023 characters.
1. Can anybody recommend a way, ensuring macro always read till end of each line (regardless # of characters)?
2. Is a string variable also limited to hold certain # of characters?

Reply With Quote
  #2  
Old 03-20-2003, 10:31 PM
Lim Chee Beng's Avatar
Lim Chee Beng Lim Chee Beng is offline
Registered User
 
Join Date: Nov 2002
Location: Malaysia
Posts: 210
Re: How to ensure read_file reaching end on each line?

Quote:
Originally posted by Lim Chee Beng
2. Is a string variable also limited to hold certain # of characters?

[/B]

I found that a string variable is limited to hold 1023 characters. DISPLAY is also limited to the same # of characters as well. But, is there a way to hold/display >1023 characters in a single variable?
Reply With Quote
  #3  
Old 03-31-2003, 12:29 PM
bfisher bfisher is offline
Registered User
 
Join Date: Oct 2002
Location: Fort Wayne, Indiana
Posts: 40
Lim,

You describe a most unusual situation. Does this have anything to do with reading unix formatted text in a windows/dos environment? If so, the solution is to convert the text to dos first.

Other than that, you will probably have to use a programming tool like VB, Delphi, C++, Pascal, etc., and read in the file one character at a time until you find the LF/CR characters. It's a slower process, but gives you more control.

Good Luck
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:52 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.