How can i run a bit of code straight from the IDE? Right now i make a
temporary button and put the code behind that, then i run debug mode
and click on the button. Is there a way to highlight some code and
tell it to run that? Is there a "scratchpad " type window like in VBA
where I can write some simple code to be executed? Thanks for the help
in advance 19 2224
In debug mode you can write and execute in immediate window
"Bryan" <br*******@gmai l.com> wrote in message
news:11******** **************@ e56g2000cwe.goo glegroups.com.. . How can i run a bit of code straight from the IDE? Right now i make a temporary button and put the code behind that, then i run debug mode and click on the button. Is there a way to highlight some code and tell it to run that? Is there a "scratchpad " type window like in VBA where I can write some simple code to be executed? Thanks for the help in advance
This is quite limited, for example you cannot declare variables.
--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net
"Carl-Johan Wik" <cj***@hotmail. com> wrote in message
news:eg******** ********@TK2MSF TNGP02.phx.gbl. .. In debug mode you can write and execute in immediate window
"Bryan" <br*******@gmai l.com> wrote in message news:11******** **************@ e56g2000cwe.goo glegroups.com.. . How can i run a bit of code straight from the IDE? Right now i make a temporary button and put the code behind that, then i run debug mode and click on the button. Is there a way to highlight some code and tell it to run that? Is there a "scratchpad " type window like in VBA where I can write some simple code to be executed? Thanks for the help in advance
I wish there was a way to run a single sub or function, or even to open
a form without having to set it as the default start up form. Maybe I
am missing something When you guys want to test little things or run a
little maintenece procedure, what do you do?
OK, well just because you are writing a windows applications it doesent mean
you need a user interface. You can remove the form and use a sub main in a
module. you can put your code in there.
--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net
"Bryan" <br*******@gmai l.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. . I wish there was a way to run a single sub or function, or even to open a form without having to set it as the default start up form. Maybe I am missing something When you guys want to test little things or run a little maintenece procedure, what do you do?
Bryan,
I just open them as form, keep the default name and clean all with those
default names up time by time.
:-)
Cor
|I read your article, but without being rude in any way, I dont see that
your methods in step 3 or 4 are functionally any different from what you say
is cumbersome in step 1. In fact I think its more cumbersome and has no
particular advantage wrt trying out a snippet of code.
Things changed with the advent of .NET and people are just going to have to
get over it. In all honesty when you are writing code everyday for seven
hours a day, you get better at preventing compiler or runtime failures and
its not such an issue.
--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net
"Peter Macej" <pe***@vbdocman .com> wrote in message
news:OB******** ******@TK2MSFTN GP03.phx.gbl... This article of mine may help you: http://www.vbdocman.com/blog/archives/21
-- Peter Macej Helixoft - http://www.vbdocman.com VBdocman - Automatic generator of technical documentation for VB, VB .NET and ASP .NET code
"Bryan" <br*******@gmai l.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. . I wish there was a way to run a single sub or function, or even to open a form without having to set it as the default start up form. Maybe I am missing something When you guys want to test little things or run a little maintenece procedure, what do you do?
I put it in a button click event or in form load.
> |I read your article, but without being rude in any way, I dont see that your methods in step 3 or 4 are functionally any different from what you say is cumbersome in step 1. In fact I think its more cumbersome and has no particular advantage wrt trying out a snippet of code.
My experience is this:
The project I'm working on takes about 10 seconds to compile and about
30 seconds to start. This is 40 seconds. Just to see whether, for
example some regular expression I wrote is correct. Opening Snipped
Editor, pasting two lines of code and executing takes me about 10
seconds. With macro IDE it is even faster.
--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mudge |
last post by:
Please, someone, tell me why OO in PHP is better than procedural.
|
by: bigoxygen |
last post by:
Hi.
I'm using a 3 tier FrontController Design for my web application right
now.
The problem is that I'm finding to have to duplicate a lot of code for
similar functions; for example, listing users, and listing assignments
use similar type commands. Is there a "better" way I can organize my
code?
|
by: jason |
last post by:
Hello.
Newbie on SQL and suffering through this.
I have two tables created as such:
drop table table1;
go
drop table table2;
go
|
by: Dario de Judicibus |
last post by:
I'm getting crazy. Look at this code:
#include <string.h>
#include <stdio.h>
#include <iostream.h>
using namespace std ;
char ini_code = {0xFF, 0xFE} ;
char line_sep = {0x20, 0x28} ;
|
by: Andrew Thompson |
last post by:
It seems most people get there JS off web sites, which is
entirely logical. But it is also a great pity since most
of that code is of such poor quality.
I was looking through the JS FAQ for any question that
identifies the warning signs to look out for, the things
that most easily and clearly identify the author of code
as something less than a master of the art.
I did not find an FAQ that answered it, but I think the FAQ
| |
by: ED |
last post by:
I currently have vba code that ranks employees based on their average
job time ordered by their region, zone, and job code. I currently
have vba code that will cycle through a query and ranks each employee
based on their region, zone, job code and avg job time. (See code
below). My problem is that I do not know how to rank the ties. Right
now if two people have the same avg time one will be ranked 3rd and
the other ranked 4th. I would...
|
by: Namratha Shah \(Nasha\) |
last post by:
Hey Guys,
Today we are going to look at Code Access Security.
Code access security is a feature of .NET that manages code depending on its
trust level. If the CLS trusts the code enough to allow it ro run then it
will execute, the code execution depends on the permission provided to the
assembly. If the code is not trusted wnough to run or it attempts to perform
an action which doe not have the required permissions then its execution...
|
by: Joe Fallon |
last post by:
I have some complex logic which is fairly simply to build up into a string.
I needed a way to Eval this string and return a Boolean result.
This code works fine to achieve that goal.
My question is what happens to the dynamically created assembly when the
method is done running? Does GC take care of it?
Or is it stuck in RAM until the ASP.Net process is recycled?
This code executes pretty frequently (maybe 4 times per transaction) and...
|
by: Alan Silver |
last post by:
Hello,
Newbie here, so please forgive what is probably a basic question ...
I see a lot of discussion about "code behind", which if I have
understood correctly, means that the script code goes in a separate file
from the HTML. Apart from the obvious advantage if you have a separate
designer and programmer, are there any other advantages to code behind?
Most of the stuff I've seen so far uses code inside, but that's probably
|
by: tshad |
last post by:
I am just trying to decide whether to split my code and uses code behind. I
did it with one of my pages and found it was quite a bit of trouble.
I know that most people (and books and articles) like it because you can
split the code from the design. That is logical. But if you are the only
one working on the code, it seem a little overkill.
I use Dreamweaver to do my design and find it a bit of a hassle to have
multiple files open...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |