| View previous topic :: View next topic |
| Author |
Message |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Wed Jul 18, 2007 8:52 am Post subject: |
|
|
I'm confused by what you mean. Make it display its source code while running, or having the user input a source code and clicking the "Command1" button and it edits the progs source? _________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Jul 18, 2007 9:12 am Post subject: |
|
|
Program that displays the code it is running. _________________
Get kidnapped often. |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Jul 18, 2007 9:32 am Post subject: |
|
|
say your doing a command click
he wants the code thats in the procedure of that click to display in a memo _________________
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Wed Jul 18, 2007 9:43 am Post subject: |
|
|
Hmmm...make a text file with easch command written into it and then have your program read from the right text file for a certain command.
i.e Button1Click.txt -> procedure TForm1.Button1Click(Sender: TObject);
begin
end;
Edit:
Sorry, didn't see that you didn't want the source code already written in another file to be read from. T.T[/quote] _________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Wed Jul 18, 2007 10:01 am Post subject: |
|
|
| what you want is a debugger, comes with most IDEs in most any language. |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Jul 18, 2007 7:47 pm Post subject: |
|
|
| appalsap wrote: | | what you want is a debugger, comes with most IDEs in most any language. |
im doing that for the heck of it, so im not expecting anyone running this program to have an IDE with them too? and that's also the reason why im showing the stuff in a text box instead of telling people to look into the source code because i am only giving them an EXE which, hopefully, will display its own source. _________________
Get kidnapped often. |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jul 18, 2007 7:55 pm Post subject: |
|
|
e: I'm kind of dopey and misread.
Why would you want it to crap out a controls source? Just distribute the actual program source. |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Jul 18, 2007 8:47 pm Post subject: |
|
|
For debug reasons. And since I debug (at school) I don't think an IDE / a debugger is available at that moment. _________________
Get kidnapped often. |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jul 18, 2007 9:14 pm Post subject: |
|
|
| ... how would it merely showing the code be useful for debugging purposes? |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Jul 18, 2007 9:20 pm Post subject: |
|
|
| slovach wrote: | | ... how would it merely showing the code be useful for debugging purposes? |
well, im not debugging a program as simple as the one in the screenshot, see... im trying to make a program which logs all the subs and functions it goes through. sometimes its hundreds of subs, sometimes its thousands of subs in a single button click, and its troublesome to emulate this sort of thing at home after getting the error at school and not having the tools for seeing what went wrong.
(is that reasonable for you?) _________________
Get kidnapped often. |
|
| Back to top |
|
 |
|