I block text files with a simple script that loops through each line of the file and outputs it to a new file using awk and printf to do the formatting. In this example carriage returns are removed by the "tr" program and each line is blocked to 256 characters with no NL added. cat $1 | tr -d "\15" | awk -F' ' '{ printf "%-256.256s", $1 }' Hope this helps. Terry J. Deo Process Control Systems Engineer Infineum USA Bayway Chemical Plant=20 -----Original Message----- From: steve.shimp@xxxxxxxxxxxxxx [mailto:steve.shimp@xxxxxxxxxxxxxx]=20 Sent: Tuesday, October 21, 2003 9:05 AM To: foxboro@xxxxxxxxxxxxx Subject: Re: [foxboro] PICK a text You don't need to have the same length in the plain text file. By converting the file over to a fixed length block file you are forcing all the record lengths to the same size. I use a C program to convert any text files, but there may be an available Foxboro utility to do the job. Steve Shimp Maintenance & Systems Engineer ExxonMobil Paulsboro Lube Plant =20 "MUTI, Jean-Christophe" <Jean-Christophe.MUTI@AirL To: "'foxboro@xxxxxxxxxxxxx'" =20 iquide.com> <foxboro@xxxxxxxxxxxxx> =20 Sent by: cc: foxboro-bounce@xxxxxxxxxxx Subject: Re: [foxboro] PICK a text =20 rg =20 =20 =20 10/21/03 06:25 AM Please respond to foxboro =20 =20 Thanks for the answer, How do i do if i don't have the same size for each product name ? What is a blocked text ? What is a fbt file ? What is a fixed lenght block file ? thank you=3D20 -----Message d'origine----- De : steve.shimp@xxxxxxxxxxxxxx [mailto:steve.shimp@xxxxxxxxxxxxxx] Envoy=3DE9 : 20 October 2003 16:55 =3DC0 : foxboro@xxxxxxxxxxxxx Objet : Re: [foxboro] PICK a text Jean-Christophe: We've done this type of thing in the past, but only with Display =3D Manager, not Foxview. However, in Display Configurator you can setup a text =3D field as "Read File". (The file must be a fixed length block file .) Then configure the text field to execute program "=3D3D PICK1 @ = ; dmcmd =3D getstr". Then we'd have a text field to display PICK1 to allow the operator to confirm they had chosen the desired item. You'll probably have to then link a button to a script to store the =3D string in the C:B.P. Hope this helps! Steve Shimp Maintenance & Systems Engineer ExxonMobil Paulsboro Lube Plant Phone: 856-224-5059 Cell: 609-820-8501 Fax: 856-224-5030 Email: steve.shimp@xxxxxxxxxxxxxx =3D20 "MUTI, Jean-Christophe" <Jean-Christophe.MUTI@AirL To: "'foxboro@xxxxxxxxxxxxx'" =3D20 iquide.com> <foxboro@xxxxxxxxxxxxx> =3D20 Sent by: cc: foxboro-bounce@xxxxxxxxxxx Subject: [foxboro] PICK a text =3D20 rg =3D20 =3D20 =3D20 10/20/03 10:18 AM Please respond to foxboro =3D20 =3D20 Hi list, Who can help me : I want to read a text file (/usr/prog/tools/myfile.txt- =3D One word per line) on foxview and allow operators to select a word in this text =3D file. When they select the text (by clicking on it for example) = =3D it put the string in a C:B:SN000x . Do you know how to do that. I will need to change a lot of time the text file, and i don't want to change the display each time. tanks a lot MUTI Jean-christophe Service Automatisme - SEPIPROD 127, chemin de la Poudrerie 81100 Castres Tel : +33 (0)5.63.72.69.14 Fax : +33 (0)5.63.72.69.70 _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: =3D mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin to unsubscribe: =3D mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave =3D20 =3D20 _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html =3D20 foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: =3D mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin to unsubscribe: =3D mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave =3D20 _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: = mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin to unsubscribe: = mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave =20 =20 _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html =20 foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: = mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin to unsubscribe: = mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave =20 _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave