Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCX not found
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00998986
Message ID:
00999220
Views:
39
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform