Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

? Changing events contents at run-time ?

Status
Not open for further replies.

BundaZSZ

Programmer
Sep 6, 2003
12
RO
HY

It is this posible?

run a form and after that i want to add some command lines in the running form in the dectivate or destroy event

Thanks for your suport

 
BundaZSZ

I a compiled environment? Not that I know of, but you could add the code at designed time and put a condition to it.

In the destroy.


Code:
IF CONDITION = .T.
  *** do something
ELSE
  *** do something else
ENDIF




Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi

This is possible indirectly, if you call it that..

1.Accept the commands in a Memo/Edit type variable OR
2.read from a tables Memo field OR
3.read it from FILETOSTR(myCmdFile) or
whatever your imagination..
Now let us say..
The ThisForm.myCommandVar string hold your command lines..

Your Deactivate or Destroy Event should have the code..

LOCAL nLines
nLines = ALINES(laCmd,ThisForm.myCommandVar)
IF nLines > 0
FOR I = 1 to nLines
&laCmd(i)
ENDFOR
ENDIF

That will do the trick.
:)

ramani :)
(Subramanian.G)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top