Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call updated prg/frx/scx that is outside applicat
Message
 
 
À
10/12/2009 05:47:34
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01438358
Message ID:
01438362
Vues:
103
You cannot. VFP will always execute the ones included in the EXE/APP regardless of the path specified. Even if it was possible, the excluded FXP/SCX will not see other components included in the EXE/APP like class libraries, forms, reports etc.

>Most often I need to make some quick changes to a specific prg / frx / sct which is in the application / exe. How can I achieve the same without having to completely regenerate the application.
>
>I would have liked the same to be achievable as in the sample code below.
>
>In the example < olw > is the on-line working folder, in which I place the recent changes.
>
>
>clear all
>set talk off
>set path to olw,spf,rfs
>mChoice = 'A'
>do while .t.
> @ 10,10 say "Choice:"
> @ 10,18 get mChoice pict "@m A,B,C,D"
> read
> if inlist(readkey(),12,268)
>  exit
> endif
> do case
> case mChoice = "A"
>  if file('olw\choicea.fxp')
>   do olw\choicea
>  else
>   do choicea
>  endif
> case mChoice = "B"
>  do iif(file('olw\choiceb.fxp'),'olw\choiceb','choiceb')
> case mChoice = "C"
>  do choicec
> case mChoice = "D"
>  do choiced
> endca
>enddo
>close all
>clear all
>
>
>Is this the right approach. Can someone guide me on this.
>
>Thanks
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform