Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Foxpro 2.6 SYS() question 3

Status
Not open for further replies.

jpower5

Programmer
Mar 2, 2004
25
US
hello...

I am converting a windows 2.6 version of fox to visual fox ver 8.0
When doing this, i realized that the code for the individual buttons, etc on the screen built in 2.0 was not converted into visual fox 8.0...but
what i neeed to know is does anyone know waht the sys() function 2027 in windows 2.6 is and what is it partner in ver 8.0?? I checked the help section under sys() and sys(2027) does not exist is visual fox

thank you in advance
 
Not only is there no sys(2027) in VFP, I can't find it in the help file for FPD2.6 either. What's it supposed to do in 2.x?


-BP (Barbara Peisch)
 
thats the 64000 question...I do not know what it is suposed to do..
What I have is the following code..
#define cPATHSYS 2027

then in the code section is this

lcgetdir = getdir(m.lcpath,"development directory"0
if not empty(m.lcgetdir)
lcdevpath= sys(cpathsys,m.lcgetdir)


 
It looks like it's adding a drive letter onto the path if there isn't one. It appears that it just adds the default drive (sys(5)), which isn't necessarily correct. I don't understand why the original programmer is doing this. GETDIR() will return the drive letter as part of the path. Since the 2027 function is undocumented, I wouldn't use it.


-BP (Barbara Peisch)
 
I just fired up FPD 2.6 and typed "Help SYS(2027)", and got the following explanation:
===========================================================
SYS(2027,<expC>)

-----------------------------------
Returns a path with the shorthand notation for the Macintosh.
Return value - Character
-----------------------------------

In FoxPro for Macintosh, functions (such as CURDIR() and
DBF()) that return paths use MS-DOS shorthand notation for
the paths for compatibility with FoxPro for MS-DOS and FoxPro for Windows. You can use SYS(2027) with these functions to return their results using Macintosh shorthand notation.

==========================================================
It seems this function was intended only for use in Foxpro 2.6 for the Macintosh.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top