Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace not working in grid - VFP 3.0 Win
Message
De
21/11/1997 16:13:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00061659
Message ID:
00061670
Vues:
37
>I have a combo box in a grid. The grid displays a parameterized view.
>
>The combobox works fine, except when "*OTHER" is choosen by a user. In the valid method of the combobox, I run a modal form which then lets the user type a value into a text box. The value is returned correctly, but when I do a "replace" to put the value into the field in the view, it doesn't change the value. The value of the field stays as "*OTHER".
>
>It is almost as if the REPLACE command isn't excuted.
>
>Note:
>- if I remove the call to the other form, the replace works (I used a constant to test this)
>- the value returned from the form is good
>- the line after the call to the form is executed (I tested this by putting a print statement after the DO FORM line)
>- the debugger shows that the field always keeps the value "*OTHER"
>
>Any ideas?

There is common feature/bug related to REPLACE. Generally, to make things clear you should use SELECT work area before REPLACE.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform