Solved

REFRESH NON FOCUSED FORM

Posted on 2011-03-15
1
390 Views
Last Modified: 2012-05-11
Hi Experts

I have Form1 with Text1 listbox. which displays the data from veriable Spellx.
by clicking a button I open Form2 and make some changes to Spellx veriable.
I would like to update form1 text1  listbox as I make changes to Spellx while still working on Form2.
Please help
Thanks
0
Comment
Question by:b001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 42

Accepted Solution

by:
pcelba earned 500 total points
ID: 35140941
You may either find the calling form in _Screen.Forms[] collection:

FOR EACH loForm IN _Screen.Forms
  IF loForm.Name = "YourFormName"
    loForm.Refresh
  ENDIF
NEXT

or you may pass the Form1 reference to the Form2 and call it directly from Form2:

Form1.Button.Click:

DO FORM Form2 WITH THISFORM

and Form2 must contain PARAMETER statement in its Init method which you'll use as a reference for the Refresh.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Faxing a Report from Within Visual FoxPro 5 198
VFP automation fails after upgrade to Word 2010 18 526
understanding loops vfp 7 119
VFP9 options in the cloud (and elsewhere) 3 171
Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Read  the original post  on Monitis Blog. Hi.  My name is Erik Dietrich, and this is the first time I’ve posted on the Monitis blog.  By way of introduction, I thought it would make sense to talk about my initial experience with Monitis.   Befo…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question