The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Problems refreshing the open forms
Posted: 01 Jun 10 10:27 AM
|
Under SLX 7.2, I was using the following code to refresh all of the currently open forms as part of an OK event on a popup form:
Dim i For i = 0 to Application.Forms.Count-1 Application.Forms.Item(i).Refresh Next
That worked fine for me and my users in 7.2 (and still works okay for ME in in 7.5), but some of my 7.5 users are getting script errors when it hits this bit of code. Is there a better way to accomplish this?
Thanks!
Cory |
|
|
|
Re: Problems refreshing the open forms
Posted: 08 Jun 10 10:57 AM
|
What error are they getting?
In 7.5 there are known issues with the timing of events and datagrids, and HF's with a workaround. This may be a similar issue. Try this:
Dim i For i = 0 to Application.Forms.Count-1 If not (Application.Forms.Item(i) is Nothing) then Application.Forms.Item(i).Refresh End if Next |
|
|
|
Re: Problems refreshing the open forms
Posted: 08 Jun 10 2:09 PM
|
Actually, I'm getting that it doesn't recognize .Refresh as a valid method for Application.Forms.Item, which is odd since it not only was valid in 7.2, but it's still working fine for me even though it doesn't work for at least one of our users. Very weird. |
|
|
| |
| |
|