Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Only bottom half of form refreshes....
Message
From
09/07/1999 12:25:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Only bottom half of form refreshes....
Miscellaneous
Thread ID:
00239488
Message ID:
00239488
Views:
50
Hello,
I've built a form (with the Many for one Wizard) that displays Invoice Header info (via text boxes) on the top half, and it's related Invoice details records in a grid on the bottom half.
As I move through the Next, Prev, etc command buttons, everything displays properly. I can edit, add, delete, etc.
I've added a Listbox for the user to select a specific invoice. Upon selection, only the detail records (in the grid)display properly. The Header record and it's textboxes are all blank. I know I found the correct records (through the debugger), and if I hit the Next button, the next record AFTER the selected record displays okay.

I've tried using the DODEFAULT() in the click event preceeding the Thisform.Refresh, but that doesn't seem to do it. However, (and this is the real Stumper), If I STEP through the code in the trace window, the Header record properly displays.

The code is simple and straghtforward:

Thisform.Visible = .T.
Select SelHdr
Locate for Selhdr.Invid = thisform.list1.value
If found() && (and it always does find it)
thisform.refresh
else etc.........

Why does this work ONLY in the Trace mode? I'm using VFP 5.0. I've placed the code in the Command button click and also tried it in the Lost Focus Method of the ListBox. Doesn't seem to make a difference. I even tried a timeout instruction before the Refresh whcih also didn't work.

I know I must be missing something here but can't seem to find it. Any help would be very much appreciated.

TIA

Barry
If at first you don't succeed......SET STEP ON!
Next
Reply
Map
View

Click here to load this message in the networking platform