>Hi Klas,
>
>I guess, Arnon's method is the best way to solve your problem. The method which Jayesh suggested requires that VFP be installed on the client machines.
>
>Moreover, you might want to have a look at CodeBlock, which is a utility available for download on the UT.
>
>>Good day to you all,
>>
>>Is there any way I can change the Method code of an object from the objects Init Method, or from any other place for that matter??
Here is a good example.
Removing the text1 in grid and put a new 'text1' to solve Grid IME Problem.
Since WriteMethod is only can be used in Design-time, you need to pre-define
the txtnoime class before use.
txtnoime has only one LOC:
* txtnoime.gotfocus
This.imemode = 2
with this
local i
if .ColumnCount > 0
for i = 1 to .ColumnCount
.Columns[i].RemoveObject("Text1")
.Columns[i].AddObject("Text1", "txtnoime")
.Columns[i].Text1.Visible = .T.
.Columns[i].Sparse = .F.
endfor
endif
endwith
After you did above two simple things, you can make a Grid which
fix the Grid IME problem!
So, try to find the general common things to make a class.
Then putting new properties to carry special variable and factor.
As a result, you can freely reuse it at any time and save huge design time
to do similar things!! ^_~
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.