Bryan - Gendev
Programmer
I am Updating my ten year old app!
I have a grid on a form offering the user a chance to edit 3 of the fields - to set a flag if they make a change.
One field is a Memo and I have a class to do that but I need a similar class for a character field. If I use the Modify FIELD command i get a new grid with all of the fields listed- I just want to change one just as the Modify Memo allows me to do.
My code for the Memo field modifier is
Define Class gs_captionedit As TextBox
Height = 17
ReadOnly =.F.
Procedure Click
thisfield = mycursor.caption
Modify Memo Caption SAVE
IF !mycursor.caption = thisfield
isupdated = .T.
endif
Thisform.grid1.Refresh()
Thisform.grid1.SetFocus()
Endproc
ENDDEFINE
What is the command to modify and save the new field value please?
GenDev
I have a grid on a form offering the user a chance to edit 3 of the fields - to set a flag if they make a change.
One field is a Memo and I have a class to do that but I need a similar class for a character field. If I use the Modify FIELD command i get a new grid with all of the fields listed- I just want to change one just as the Modify Memo allows me to do.
My code for the Memo field modifier is
Define Class gs_captionedit As TextBox
Height = 17
ReadOnly =.F.
Procedure Click
thisfield = mycursor.caption
Modify Memo Caption SAVE
IF !mycursor.caption = thisfield
isupdated = .T.
endif
Thisform.grid1.Refresh()
Thisform.grid1.SetFocus()
Endproc
ENDDEFINE
What is the command to modify and save the new field value please?
GenDev