Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call updated prg/frx/scx that is outside application
Message
From
10/12/2009 05:47:34
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to call updated prg/frx/scx that is outside application
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01438358
Message ID:
01438358
Views:
171
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
Helping hands are better than praying lips.
Next
Reply
Map
View

Click here to load this message in the networking platform