Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCX not found
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
00998986
Message ID:
00999220
Vues:
40
>Greatings,
>I have an executable made from VFP and it calls different applications (.app) accourding to the user choice. The problem here is when select one option from the main exe, it launches the corresponding .app file and when it encounters the command 'do form' it gave me 'scx not found error'. Why the compiled file looking for an SCX file ?
>
>Could some one explain me why this is happening and how can i resolve this.
>Really appreciate it.

The problem is that once you are running something outside the EXE (like an APP) you can't call an SCX or VCX that's in the EXE without returning back to the EXE. VFP just can't see anything but a PRG in the EXE when it's running outside of that EXE.

The workaround for this problem is to have a generic function in a PRG that will call the SCX or VCX in the EXE for you. Something like this: (Warning: untested code!)
FUNCTION RunMyCommand
LPARAMETERS tcCommand
LOCAL lvReturn

lvReturn = &tcCommand
return lvReturn

ENDFUNC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform