Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form with grid looks unfinished
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00702128
Message ID:
00702173
Views:
18
Hi!

I recommend to pre-calculate data into cursor that is displayed by grid. This way you will get rid of finction call inside of grid column.

If you still want to go with your current solution, try thisform.CLS and thisform.Refresh to refresh the form. Also, if this will not help, try set _VFP.AutoYield property to .F. for this form.

Hope this helps - I have no other suggestions...

>The form is a one-to-many order entry screen, with order lines in a grid. A column in the grid has for its controlsource, "thisform.ordstat()". When the logic in ordstat() is something simple like "return orditem.ord_line_no", everything works as expected: the column displays the order line numbers correctly. When I change the logic to something more coplex involving an sql select to derive the status of each line, the values displayed in the grid appear as expected; however, other portions of the screen appear scrambled, and text from a screen beneath the orders screen actually shows through, making a mess. However, the command buttons on the order screen behave as normal even though they're hidden or scrambled. I.e., if you put the cursor over the point where the button should appear and click, the correct behavior results. I tried putting thisform.refresh into ordstat() and in form.init, to no avail.
>
>Please help.
>
>Thanks,
>Chris Lawrence
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform