Title: Message

<@replace>?  Don't have the syntax, but it's in the help on metatags.  You could set up a string with a certain character at each field marker and replace that character plus so many blanks?

 

Still, I think you'd do better with a series of variables, all set to blanks at each iteration of the loop.  Then, you'd fill them with the data, concatenate them and write the new variable to wherever you are saving the data.

 

Hope this helps.

 

Hutch White

IT Development Specialist

Capital Pacific Homes, Inc.

1717 W. 6th. St., Ste. 140

Austin, TX    78703

Phone          :(512)320-8888

Fax              :(512)320-0724

Mobile         :(512)750-3346

 

-----Original Message-----
From: Wolf, Gene [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 9:54 AM
To: '[EMAIL PROTECTED]'
Subject: Witango-Talk: Help with Strings

 

OK, I've just run into somethng that I have not seen before, and not seen addressed here. I'm hoping that someone here has come up with something similar.

 

I'm writing a program to interface with an OLD DOS type system. The interface requires a series of import records of exactly 252 bytes in length. In this record specific data items like, employee number, shift, date, etc., have specific columns into which they must be placed and have specific lengths.

 

What I'd like to do is create a record of 252 bytes, then "substring" into those locations the data for each employee and then write that record and do the same for the next employee record. Unfortunately substring doesn't work this way and I can't figure out how to make this happen. I suppose I could build this string field by field, and may be reduced to doing that, but I thought there may be a better way.

 

Anyone have any ideas?

 

Sincerely,

Gene Wolf
Business Systems Analyst

DRS Optronics, Inc.
2330 Commerce Park Drive
Palm Bay, Florida 32905
Phone: 321-309-0685

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to