Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I refresh my combo to see a newly appended record
Message
From
18/08/1999 05:58:12
 
 
To
18/08/1999 01:38:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00253805
Message ID:
00254859
Views:
25
>>What I suggest is you're better to disable or hide the combox during append blank record until the new record is updated or tablerevert!
>
>Although I've figured out how to do what I want, I like your idea of just making it invisible then fixing it when it reappears. Wish I'd heard from you sooner!

Well, you should Disable all controls which can move the record pointer, otherwise if user move the cursor with
those controls by mistakes or by destructive propose, they can complain the application can update wrong record!!

In my application, I add 2 new proc in each entry form.
WhenAdd() and AfterAdd()

WhenAdd proc is to disable all the moving cursor controls and enable some "read-only" control to writable!

AfterAdd proc is the reverse!

So, If user wants to cancel add record or complete add, simply call AfterAdd will do what I wants!!

Besides, I also add a new proc ChgRecord() to handle all code handling to show right value!
In your case, you also need to adjust the combox value to right value if you change the record cursor!

In my application, user can click Top, Previous, Next, Bottom, or type in key to search
(Incremental search in File Section) or Select record in Combox.

So, I did quite a lot of code on those 3 proc to handle all cases!! ^_~

What I suggest to do is to add new proc to form and call it with easy!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform