Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to add codes to methods at runtime?
Message
 
À
16/09/2004 02:46:09
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00942377
Message ID:
00943016
Vues:
30
You can also press parameters - modify the code withese snippets:
PROCEDURE lostfocus
IF !EMPTY(thisform.edtEdit1.Value)
   EXECSCRIPT(thisform.edtEdit1.value,thisform,this,0)
ENDIF
ENDPROC 
visible=.t.
ENDDEFINE 

DEFINE CLASS Edit1 as EditBox
top=60
height=120
left=20
width=300
value="parameters oform,oObj,nVal"+CHR(13)+;
      "messagebox([Execute Script Line 1])"+CHR(13)+;
      "messagebox([Execute Script Line 2])"+CHR(13)+;
      "oObj.Value='Exec Script executed in EditBox'"+chr(13)+;
      "oform.backcolor=RGB(0,0,255)"
visible=.t.
ENDDEFINE
>I think so need more explanation. I want to create a grid at runtime and fill its columns events at runtime. I know I can do anything with execscript but how I can tie that to an event?
>
>
>>Would EXECSCRIPT() or Macros "&" do the job?
>>
>>>Hmmm. If I cannot find more easy workaround maybe.
>>>
>>>Teþekkürler, :)
>>>
>>>
>>>>Depends on what you want to do. If say you're doing that with a copy of a table (scx,vcx,...) then you could write code and compile on the fly (or create a class on the fly).
>>>>Cetin
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform