I want to set up runtime environment as far as the way memo fields are displayed in the editor. I tried to use the code I found in Help:
SET LIBRARY TO EDSETENV
= EDSETENV("x")
First, there is no library file by this name, at least I could not find it. Second, the whole thing is not recognizable by the compiler. How do I define string "x " Do I have to write a C++ module to do it
But my first concern is to make the first statement work. It does not.
Thanks.

EDSETENV
Macker
Satish Rao
SET LIBRARY TO EDSETENV
= EDSETENV("x")
I believe that the library you are looking for is FoxTools.fll and you want to accesssome of the Exposed FoxPro Editor API Functions (they all begin with _Ed)
SET LIBRARY TO FOXTOOLS.FLL ADDITIVE
Then you have access to all these functions and can call them just like native VFP functions. Here is documentation on the _EdSetEnv() function:
Set the environment for a text or program file opened for editing.
Syntax
lnresult = _EdSetEnv(nWhandle, @aEnvironment)
nWhandle
The whandle of the file containing the text
aEnvironment
An array to hold the environment settings. This array should be dimensioned to at least 25 rows, and must be passed by reference.
The function will return 1 if it succeeds, 0 if it does not.
Setting some values may require that the window be re-drawn in order for the changes to be noticed. The following code snippet demonstrates how to display a file edit window with word wrap turned off. A similar technique may be required for other changes as well.
* lcfile is a file to edit
MODIFY FILE (lcfile) NOWAIT
lnwhandle = _WonTop()
* Minimize the window
= _WZoom(lnwhandle, 2)
DIMENSION a_env[25]
= EdGetEnv(lnwhandle, @a_env)
a_env[16] = -1
= EdSetEnv(lnwhandle, @a_env)
* Restore the window
= _WZoom(lnwhandle, 1)
Anoyomouse
>.This should have been explained explicitly why it is there.
When you find a perfect help file for ANY product, do let us know :)
Tom_R
Thank you very much, Andy. It is great to have you, Marcia, Tamar and other well known names in FoxPro world, authors of books, etc., to answer our questions.
Of course I am confused. Although I suspected that what you are saying is the case. It is obviously a C code sample. HOWEVER, the way they wrote that HELP piece is confusing as well. This should have been explained explicitly why it is there.
Josh Williams
= EDSETENV("x")
I think you are getting confused here. This is from the Help reference to the FoxPro API for writing C routines that access FoxPro. The example you quote is the VFP code required to call the C++ example given below (in other words the C++ code is for CREATING the "edsentenv" library).
As Marcia has pointed out, you use FoxTools.fll to access these functions from within VFP. This library has its own help file named "foxtools.chm" which details all of the functions available.