Barbara & Marcia
You are definitly right.
I was wrong but the code was OK for me (I just use the Ctext var in a report and I had not any trailing carriage return.
Sorry and thank you for your help.
I'll use YOUR code.
JPG
Mike,
I find the problem : The option "crypted" option was actived in the project. With this option, Winzip has nothing to do.
Thank for your reply.
JPG
Hi Barbara
Thank for your reply.
This my code.
Function TrimMemoEnd
Parameters Pchamp && Memo field
Private Nn,Nb_line
Nb_Line=ALINES(MemoTableau, Pchamp)
M.Ctext=""
For Nn=1 To Nb_Lines
Ctext=Ctext+MemoTableau(Nn)+Iif(Nb_line=Nn,"",chr(13))
Next
Return Ctext
Thanks Marcia but this will trim chr(13) at the end of the memo field AND INSIDE the memo field. I just want at the end, like TRIM(memo).
I think I have to edit all the memo line and STRTRAN only on the last line.
JPG
Yes Mike.
Same project, same environnement.
No change in VFP parameters.
No change in CONFIG.FPW
No more .JPG or BMP in the project.
No virus found
My Winzip is "Ok" on any other file.
JPG
Hi,
I want to trim all the leading chr(13) or chr(10) at the end of a memo field (before printing).
Alltrim() or trim() has no effect on the chr(13).
strtran() will be a solution but ONLY on the last line.
Is there another function available ?
Jean-Paul
Hi,
My .exe (Vfp6 or Vfp8 application) size is 2.906 Ko.
Last week, when I zip this exe, the size was 765 ko.
But to-day, after a few changement in 2 or 3 .SCX, I can't zip the .exe. The packed size is now 2.865 Ko.
How is it possible ?
Any idea ???
I try on different machine with WINZIP...
Hi,
I have a form 580x580 with a big picture (geographic plan) inside. The user scroll the picture with arrows key, until he gets the right position - and then he places icons where he wants. Then, I want to save this formated 580x580 picture on disk.
From my VFP6 (or VFP7) application, is...
Yes Mike.
We have a "formatted" ie MyLetter.DOT (Word) with text and fields that receive informations from VFP file (ie MyData.DBF)
After the mail merge, Word save the name "MyData.dbf" and the path into the .DOT for an ulterior use.
Now, in our VFP application, we execute a...
Hi,
Does somebody know how to change, from a VFP aplication, the name of the file (.DBF or .TXT) linked to a Word document. It seems that this name is "somewhere" in the .DOC
Do you think the solution might be with low level instruction for making the changes ?
Thanks by advance...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.