Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Ken Murphy
 To: Adalberto/bertle73 Mercado
  Where is Adalberto/bertle73 Mercado?
 Texas - United States
 Adalberto/bertle73 Mercado
Subject: RE: Conversion to VFP6 functions problems
Thread ID: 104232 Message ID: 104450 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Projects and Design
Date: Wednesday, August 16, 2006 4:07:32 PM         

> I converted an application from FoxPro 2.5 to VFP6 almost everything works fine but I’m having problems with the functions and the variables on some of the prg files with the procedures I had no problem, all I did was Do procedure in “file where procedure is” but I don’t know what to do for the variables and the functions. I tried set procedure for the functions but it didn’t work. I would really appreciate if someone could tell me how to get them to work.


If you have all of your functions defined in a single .prg() it becomes quite simple.
SET PROCEDURE TO [Path2\MyFunctionFile.prg] ADDITIVE
This places your functions into memory and VFP will be able to access them with
MyResult = MyFunction(Parmameter1,Parameter2,...)
For that matter, you can also place all of your procedures in that same file and now you will not need the IN clause in your DO commands. On the other hand, if your function is defined in the calling .PRG, you don't need to SET PROCEDURE TO anything. You can just
MyResult = MyFunction(Parmameter1,Parameter2,...)

You shall know the truth - and the truth shall set you free. (John 8:33)


Conversion to VFP6 functions problems Posted by Adalberto/bertle73 Mercado @ 8/14/2006 6:10:20 AM
RE: Conversion to VFP6 functions problems Posted by Jojo Sabino @ 8/14/2006 6:36:07 AM
RE: Conversion to VFP6 functions problems Posted by tushar @ 8/14/2006 8:34:59 AM
RE: Conversion to VFP6 functions problems Posted by Ken Murphy @ 8/16/2006 4:07:32 PM