dbTalk Databases Forums  

vfp 8 parameters and variable question

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss vfp 8 parameters and variable question in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ilkaos
 
Posts: n/a

Default vfp 8 parameters and variable question - 05-09-2005 , 09:06 AM






hi all.
i am new to foxpro programming.
I am not sure that this is the best place for my question but i am not able
to find "working" newsgroup and/or forum about foxpro (btw, any hint
appreciated) .

my problem: I have a form defined procedure and would like to call it and
receive 2 parameters back.
i tried with: thisform.myproc(parm1,parm2) but it does not work (i read that
in this way the parameter are passed by value and not by ref...)
so i tried with DO thisform.myproc WITH (parm1),(parm2) ... but it does not
work...myproc is not recognised (even without thisform.)
so what can i do???
i tried with global variables and it worked but i do not want to use global
variable for this kind of stuff...but...it is not possible to define the
variable scope for the form? only for the procedure itself or global seem to
be the possibilities...

if somebody knows other resources for my problem, plese let me know.

thanks and ciao.





Reply With Quote
  #2  
Old   
Mike
 
Posts: n/a

Default Re: vfp 8 parameters and variable question - 05-12-2005 , 02:25 PM






easiest way: make parm1, parm2 public
ilkaos wrote:
Quote:
hi all.
i am new to foxpro programming.
I am not sure that this is the best place for my question but i am
not able
to find "working" newsgroup and/or forum about foxpro (btw, any hint
appreciated) .

my problem: I have a form defined procedure and would like to call
it and
receive 2 parameters back.
i tried with: thisform.myproc(parm1,parm2) but it does not work (i
read that
in this way the parameter are passed by value and not by ref...)
so i tried with DO thisform.myproc WITH (parm1),(parm2) ... but it
does not
work...myproc is not recognised (even without thisform.)
so what can i do???
i tried with global variables and it worked but i do not want to use
global
variable for this kind of stuff...but...it is not possible to define
the
variable scope for the form? only for the procedure itself or global
seem to
be the possibilities...

if somebody knows other resources for my problem, plese let me know.

thanks and ciao.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.