Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Intermittent control source not storing
Message
De
27/06/2005 14:19:09
 
 
À
27/06/2005 14:16:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01026692
Message ID:
01026796
Vues:
16
Have you checked that when you get to the control on the second page, that the first control's value has been updated? This may not have anything at all to do with your ToolBar.


>No code at all in the lostfocus or valid. No code in any method of this control as a matter of fact. I just now entered code in its interactivechange event that forces the value of the control to be stored to the control source but that should not be necessary. It does force the storing of the value but that is only a workaround.
>
>the control's controlsource is map_time and I put in the control's interactivechange:
>
>map_time = this.value
>
>now the value the user entered is always stored to map_time but that should not be necessary.
>
>>On the surface, that should be the case, leaving the page and entering text in the control on the second page should force the update of control 1. Do you have code in the LostFocus/Valid of those controls or on the pages themselves that can disrupt the normal event processing?
>>
>>
>>>I believe it may be, except that in this case it happens after the user did the following:
>>>
>>>1. Enter text in textbox on page1
>>>2. Click on page2 tab
>>>3. Enter text in textbox on page2
>>>4. Click on save button on toolbar.
>>>
>>>Now when the focus is switched in step 2 above, then the valid should have fired and the control lost focus so the variable in the controlsource of the textbox on page1 should have the value entered in the textbox in step1 above, right? Even if the cursor never left the textbox until the user started typing in the textbox on page2 (in step3 above)...
>>>
>>>>Isn't this the same problem as a toolbar in general never receives the focus, so that your control never "leaves" so it hasn't done anything to store the change? You have to force your control to lose focus, so the LostFocus and/or Valid will kick in and store the value.
>>>>
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform