FoxPro for Windows Cross-Platform Tips and Tricks

Last reviewed: March 18, 1997
Article ID: Q117350
2.60 WINDOWS kbinterop kbole kbprg

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.6

SUMMARY

This information is also available in FoxPro's online Help files.

To go directly to this topic, choose the "Tips and Tricks" Help topic. Then do one of the following, depending on which online Help file is in use:

  • FOXHELP.HLP: Choose the "Cross Platform Tips" jump text.
  • FOXHELP.DBF: Scroll to the "Cross Platform Tips" heading.

MORE INFORMATION

Cross Platform Code

When designing cross platform applications, much of the same code can be used transparently across platforms. Try to separate this code from platform specific code. Code that involves database operations can usually be generic across platforms. Interface code, on the other hand, can vary across platforms.

Separate platform specific code using IF...ENDIF and DO CASE...ENDCASE structures with platform system variables such as _DOS, _WINDOWS, _MACINTOSH, and _UNIX.

Updating Cross Platform Applications

You can run FoxPro applications transparently on different platforms. However, remember that some changes you make on one platform are not automatically reflected on other platforms. Changes made in one platform do not necessarily update all platforms. For example, if you add a new object to a screen in FoxPro for Windows and recompile the application, that new object will not appear when you run the .APP in FoxPro for MS-DOS. You must open the screen in FoxPro for MS-DOS and rebuild the application. The Transporter dialog appears, showing that new objects were added on another platform and asking if you'd like to make the same changes on this platform.

Transporting Screen Elements

When transporting applications across platforms, you may need to adjust some screens, especially if you are going from a character to graphical environment. If you intend to port Windows applications to MS-DOS, leave extra space in screens because there are more pixels in a graphical environment than there are rows and columns in a character environment. Also, try to use objects available on both platforms. OLE and picture objects cannot be used in FoxPro for MS-DOS.


Additional reference words: FoxWin 2.60 on-line cross-platform
xplat x-plat
KBCategory: kbinterop kbole kbprg
KBSubcategory: FxinteropOle
Keywords : FxinteropOle kbinterop kbole kbprg
Version : 2.60
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.