Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Setfocus
Divers
Thread ID:
00251771
Message ID:
00251771
Vues:
60
To: All

When I run this code on a form it says that:
Property SETFOCUS is read-only.

* Add Button
* StateUnemployment
StateUnemployment.txtSutaState.ReadOnly = .f.
StateUnemployment.txtSutaState.Visible = .t.
StateUnemployment.txtSutaState.Enabled = .t.
StateUnemployment.txtSutaState.SetFocus = .t.
APPEND BLANK
StateUnemployment.Refresh

This field is read only unless I want to add a record. You can edit this field only when you are adding new records. By default this field is readonly and is not enabled.

I am using tableupdate() function in other buttons.

Thanks
Bruce Strom
Bruce Strom

Prayer of St Ephrem:
O Lord and Master of My Life,
Take from me the spirit of sloth, meddling, ambition and vain talk.
But give me a spirit of prudence, humility, patience and love.
Yes Lord and King grant me to see my own sins and faults
and not judge my brother.
For You are Blessed Forever and Ever. Amen.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform