Call from program to form 
Author Message
 Call from program to form

In a form, I am using and edit box to return information about what is
happening when a program is running.  The form runs the program and as the
program performs different calculations and functions, I would like to use
the edit box to inform the user of the activity.

From within the procedure I have tried:

ThisForm.Edit1.Value = [message here]
and
Form1.Edit1.Value = [message here]

however I cannot access the edit box from the program.
Any suggestions?

Thanks in advance...
Ed



Tue, 19 Mar 2002 03:00:00 GMT  
 Call from program to form
Hi,

Try:

_screen.activeform.edit1.Value=<message>

I generally use a WAIT WINDOW to do this:

WAIT WINDOW NOWAIT "my message"

When the operation is complete, issue the command WAIT CLEAR.

Best regards,
Tom


Quote:
> In a form, I am using and edit box to return information about what is
> happening when a program is running.  The form runs the program and as the
> program performs different calculations and functions, I would like to use
> the edit box to inform the user of the activity.

> From within the procedure I have tried:

> ThisForm.Edit1.Value = [message here]
> and
> Form1.Edit1.Value = [message here]

> however I cannot access the edit box from the program.
> Any suggestions?

> Thanks in advance...
> Ed



Tue, 19 Mar 2002 03:00:00 GMT  
 Call from program to form
Ed,
  I have done this in VFP 6.0, no problem. Are you sure the edit box is on
the form? could if be on a page or something?

Try putting a command button on the form, in the click event of the command
button put: WAIT WINDOW ThisForm.Edit1.Value.

If you get a wait window with whatever is in your editbox, that where it is,
if not you need to find it.

Good luck
Julian


Quote:
> In a form, I am using and edit box to return information about what is
> happening when a program is running.  The form runs the program and as the
> program performs different calculations and functions, I would like to use
> the edit box to inform the user of the activity.

> From within the procedure I have tried:

> ThisForm.Edit1.Value = [message here]
> and
> Form1.Edit1.Value = [message here]

> however I cannot access the edit box from the program.
> Any suggestions?

> Thanks in advance...
> Ed



Wed, 20 Mar 2002 03:00:00 GMT  
 Call from program to form
I'm using 5.0.  The edit box works if I am calling it from with in the form.
What I am trying to do is the following, maybe this explanation will be
better.

The form asks for some info.
It is added by the user.
The user clicks the confirm command button.
On the click event a program is called which runs some procedures.  (That
why I am using a program.)
When the program runs the form does NOT close.
On the form there is an edit box (read only) which I would like to use to
tell the user what is happening in the program.
I have tried the following to update the message in the edit box, with no
success.

 ThisForm.Edit1.Value = [message here]
 and
 Form1.Edit1.Value = [message here]

Once again any help is appreciated.



Fri, 22 Mar 2002 03:00:00 GMT  
 Call from program to form
Does your procedure refresh the form? Simply changing the value doesn't
mean the new value will be shown.
Quote:

> I'm using 5.0.  The edit box works if I am calling it from with in the form.
> What I am trying to do is the following, maybe this explanation will be
> better.

> The form asks for some info.
> It is added by the user.
> The user clicks the confirm command button.
> On the click event a program is called which runs some procedures.  (That
> why I am using a program.)
> When the program runs the form does NOT close.
> On the form there is an edit box (read only) which I would like to use to
> tell the user what is happening in the program.
> I have tried the following to update the message in the edit box, with no
> success.

>  ThisForm.Edit1.Value = [message here]
>  and
>  Form1.Edit1.Value = [message here]

> Once again any help is appreciated.



Fri, 22 Mar 2002 03:00:00 GMT  
 Call from program to form
did you try _screen.activeform.edit1.value and
_screen.activeform.edit1.refresh() ?


Quote:
> I'm using 5.0.  The edit box works if I am calling it from with in the
form.
> What I am trying to do is the following, maybe this explanation will be
> better.

> The form asks for some info.
> It is added by the user.
> The user clicks the confirm command button.
> On the click event a program is called which runs some procedures.  (That
> why I am using a program.)
> When the program runs the form does NOT close.
> On the form there is an edit box (read only) which I would like to use to
> tell the user what is happening in the program.
> I have tried the following to update the message in the edit box, with no
> success.

>  ThisForm.Edit1.Value = [message here]
>  and
>  Form1.Edit1.Value = [message here]

> Once again any help is appreciated.



Fri, 22 Mar 2002 03:00:00 GMT  
 Call from program to form
Hi,
Try passing an object reference to the form or edit box to the program.  For
example:

docalc with THISFORM
    or
docalc with THISFORM.Edit1

You can manipulate anything you want on the form this way.

HTH,
Larry Miller


Quote:
> I'm using 5.0.  The edit box works if I am calling it from with in the
form.
> What I am trying to do is the following, maybe this explanation will be
> better.

> The form asks for some info.
> It is added by the user.
> The user clicks the confirm command button.
> On the click event a program is called which runs some procedures.  (That
> why I am using a program.)
> When the program runs the form does NOT close.
> On the form there is an edit box (read only) which I would like to use to
> tell the user what is happening in the program.
> I have tried the following to update the message in the edit box, with no
> success.

>  ThisForm.Edit1.Value = [message here]
>  and
>  Form1.Edit1.Value = [message here]

> Once again any help is appreciated.



Sun, 24 Mar 2002 03:00:00 GMT  
 Call from program to form

Quote:
>> In a form, I am using and edit box to return information about what is
>> happening when a program is running.  The form runs the program and as
the
>> program performs different calculations and functions, I would like to
use
>> the edit box to inform the user of the activity.

>> From within the procedure I have tried:

>> ThisForm.Edit1.Value = [message here]
>> and
>> Form1.Edit1.Value = [message here]

Try

IF TYPE('_Screen.ActiveForm.Edit1') = 'O'
    _Screen.ActiveForm.Edit1.Value = cSomething
ENDIF



Mon, 25 Mar 2002 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Giving a form focus from calling program

2. How to stop program execution when calling a new form

3. Passing a variable from the form back to the calling program

4. Can we turn Foxpro programs into DLL which can be called by other non-Foxpro programs

5. Forms calling forms newbie

6. calling forms from objects in forms

7. Calling a modeless form from another form

8. Calling a form from another form and transfering data

9. Calling form object when using another form.

10. closing a called form and opening another form

11. calling a modeless form from a modeless form

12. error messag, This.cmd2.setfocus() calling form 2 form form1

 

 
Powered by phpBB® Forum Software