I need help formatting a text portion on a form

Boaz Bezborodko boaz at mirrotek.com
Tue Mar 23 07:58:12 PDT 2010


I am starting business with a customer where I have to print out their 
packing slip form my system.  They send me all the information in a file 
which I import into my order system and I need to get some of the 
information onto a form in the format that they use.  One of the fields 
is a message to the recipient that takes a 148 character field and 
requires that it be formatted into a 37-character by 4 line note on the 
form with proper word-wrap.

I was going to use a memo field so that I can use FP's embedding-object 
functions to do the formatting.  But I
m having trouble getting the information into the memo field.  I am 
using OPEN(), WRITELINE(), and CLOSE() to create a temporary file and 
then issue the command MEMO xx IMPORT "<filename>".  When I do this I 
get a general protection fault.and it craps out.

Am I doing something wrong?  Should I be doing this a different way?



More information about the Filepro-list mailing list