I need help formatting a text portion on a form

Boaz Bezborodko boaz at mirrotek.com
Tue Mar 23 08:27:49 PDT 2010



Bill Randall wrote:
>
>
> On 3/23/2010 11:12 AM, Boaz Bezborodko wrote:
>>
>>
>> Bill Randall wrote:
>>>
>>>
>>> On 3/23/2010 10:58 AM, Boaz Bezborodko wrote:
>>>> 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?
>>>>
>>>
>>> Can we see your actual syntax?  I just did a quick test and it 
>>> worked fine.
>>>
>>> Bill
>>>
>> :ord(53) ne "":ar=OPEN("MemoTemp.txt","rwc0t"):
>> :ord(53) ne "":as=WRITELINE(ar,ord(53)):
>> :ord(53) ne "":zy=CLOSE(ar):
>> :ord(53) ne "":MEMO 201 import "MemoTemp.txt":
>>
>>
> It may have something to do with the location of the file.  Try this.
>
> :ord(53) ne "":ar=OPEN("MemoTemp.txt","rwc0t"):
> :ord(53) ne "":as=WRITELINE(ar,ord(53)):
> :ord(53) ne "":zy=CLOSE(ar):
> :ord(53) ne "":fn="FullPathTo\MemoTemp.txt"
> :ord(53) ne "":MEMO 201 import (fn):
>
> Bill
>

I tried that and I still get the same thing.


Boaz


More information about the Filepro-list mailing list