Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can not make the form refresh properly...
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Can not make the form refresh properly...
Miscellaneous
Thread ID:
00662645
Message ID:
00662645
Views:
56
Hi everybody,

I inherited DataEntry application. I changed it to work with our main classes instead of the framework it was originally designed. I also made lots of other changes. At this very moment I'm working on the following problem (have been struggling with it more than 30min already):

Here is the code I put in txtMiscType.Refresh (which is on the form
directly):
store BldMstr.Source='C' to this.visible, ;
thisform.lblMiscType.visible
thisform.newRec.visible = BldMstr.RecNum = 0 && It's still a new record
I'm navigating from record to record using our navigation bar buttons. There are lots of code firing behind these buttons, but basically it does skip and form.refresh().

However, it looks like my code is not firing or I'm not yet sitting on the correct record (or some values are still referring from the prev. record). Anyway, I don't have a good explanation here, but the code is not working, e.g. txtMiscType is not visible for when I switch from "S" (sales) to "C" (credit) record...

Do you have ideas, what could be wrong here?

If I insert some messagebox into refresh() method, it fires just fine and I don't see this problem...

Well, I found that txtMiscType.valid is fired twice for credit records transactions, even if I'm originally sitting on txtSource field. I guess, somewhere in the code I switch focus...

Ok, I fixed this particular problem by surrounding valid method with check for this.visible. Now I have another problem...

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform