Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5-VFP9 Conversion and include files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01194861
Message ID:
01194868
Vues:
10
This message has been marked as the solution to the initial question of the thread.
Michael,

It should "jump over this line" anyway. This line is the preprocessor directive that is implemented while compiling.

Also, in the debugger you will not be able to watch GB_SystemName: it is not a variable during run time, it does not exist during run tiem, and it is replaced with its values "Frantisi Database System" in the compiled code.

Try to add something like:

lo= GB_SystemName

immediately after #INclude, and watch "lo" variable while debugging.


>I am converting a VFP5 application to VFP9.
>
>The offending line in the code is:
>#INCLUDE INCLUDE\APPINCL.H
> The file is in the directory and has that name.Its contents are below:
>
>#INCLUDE "FOXPRO.H"
>#INCLUDE "STRINGS.H"
>#INCLUDE "\STONEFIELD\SDT\SOURCE\SDT.H"
>
>#DEFINE GB_SystemName "Frantisi Database System"
>#DEFINE Gb_CompanyName "Software Strategies."
>#DEFINE GB_DevelopedBy "Developed By Software Strategies"
>#DEFINE GB_Copyright "Copyright 1998"
>
>#DEFINE DEBUGMODE .F.
>#DEFINE CRLF CHR(13) + CHR(10)
>#DEFINE CR CHR(13)
>#DEFINE TAB CHR(9)
>
>#DEFINE CURRENCY "$"
>#DEFINE AERRORARRAY 7
>
>*-- These constants are used in Maintenance Form to
>*-- indicate the status of the current alias
>#DEFINE FILE_OK 0
>#DEFINE FILE_BOF 1
>#DEFINE FILE_EOF 2
>#DEFINE FILE_CANCEL 3
>
>*-- Constants to identify which trigger failed
>*-- using element 5 of the array returned by
>*-- AERROR(), as well as to reference the appropriate
>*-- array element in the error message array: aErrorMsg[]
>#DEFINE INSERTTRIG 1
>#DEFINE UPDATETRIG 2
>#DEFINE DELETETRIG 3
>
>*-- Constants used to read the system registry
>#DEFINE HKEY_LOCAL_MACHINE -2147483646
>#DEFINE KEY_SHARED_TOOLS_LOCATION "Software\Microsoft\Shared Tools Location"
>#DEFINE KEY_NTCURRENTVERSION "Software\Microsoft\Windows NT\CurrentVersion"
>#DEFINE KEY_WIN4CURRENTVERSION "Software\Microsoft\Windows\CurrentVersion"
>#DEFINE KEY_QUERY_VALUE 1
>#DEFINE ERROR_SUCCESS 0
>
>
>This file does not seem to be included as the global variables above, do not get set. When I step through the code, it jumps over this line as if it is not there.
>
>What am I doing wrong? When the app runs one of the variables GB_SystemName, holds the application name and is shown in the title bar of the application. Needless to say, it blows up in VFP9 with a variable not found error.
>
>What's going on?
>
>Any ideas?
>
>TIA,
>Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform