rapture 134 Posting Whiz in Training

Tobbek

Maybe you're used to working with global variables?

rapture 134 Posting Whiz in Training

That makes sense, I thought you meant batch the updates in the trigger at first. :)

I'll start looking into that more, thanks again

rapture 134 Posting Whiz in Training

LizR

We can probably batch it as we only cut checks twice per week as it is and the other info could be shared at that time I suppose.

Any ideas why people would say to shy away from triggers? I thought because it's harder to track when there was an error or something?

rapture 134 Posting Whiz in Training

yea, your link is no good

rapture 134 Posting Whiz in Training
BlackSun commented: it`s help +1
rapture 134 Posting Whiz in Training

Hi all,

I'm researching how to move data from a C#.Net web program into our accounting MAS90 database and back. I can do this manually, what I want to attempt to figure out is how to make the system do it without me having to hit a button. I'm hearing we should avoid triggers and I'm not sure why or how else to go about it.

Any help, ideas or direction towards what to look up would be greatly appreciated.

Thanks

rapture 134 Posting Whiz in Training

What exactly are you asking for? You want me to code it for you and give that to you? Or are you asking for the logic to do the program?

(By the way, I'm don't run .exe files from forums. If you want to post a pic of it or something that's fine)

rapture 134 Posting Whiz in Training

To do what you ask you can make global variables and have in your button click

variable1 = txtTextbox.Text

reset the textbox if you so choose and for button 2 then

variable2 = txtTextbox.Text

Since you don't want to do it that way then you're going to either have to keep it all together by adding every button on the form and having people enter the button to get a value and translate the box into a string and substring or parse it out or keep a separate variable for the display

display = variable1 + "+" + variable2 or something of that sort

then after hitting your button set the textbox to display the display variable

rapture 134 Posting Whiz in Training

Wow, tons of good stuff. And while glancing through it I noticed several items that would have answered post questions recently from people in these forums.

Thanks!

rapture 134 Posting Whiz in Training

Well thanks anyway but I got it solved. My problem was here

if ( row < middle){
			spaces = spaces - 1;
			stars = stars + 2;
		}
		
		else{
			spaces = spaces + 1;
			stars = stars - 2;
		}

I had stars + 1 and stars - 1 instead of 2

rapture 134 Posting Whiz in Training

Thanks for the reply . .

the diamond should be filled


*
**
***
**
*

the diamond shape isn't saving correctly for some reason . . .

rapture 134 Posting Whiz in Training

I'm new in Java and supposed to write a program that prints a number into a diamond shape. It doesn't print correctly, can someone point out where I'm messed up?

private static void diamondOfAsterisks(int number) {
		int spaces = number / 2;
		int stars = 1;
		int row;
		int column;
		int middle = number / 2;
		
		for(row = 0; row < number; row++){
			
		for( column = 0; column < spaces;  column = column +1){
				
			System.out.print(" ");		
		}
		for (column = 0; column < stars; column = column +1 ){
			System.out.print("*");
		}
		
		System.out.println("");
		
		if ( row < middle){
			spaces = spaces - 1;
			stars = stars + 1;
		}
		
		else{
			spaces = spaces + 1;
			stars = stars - 1;
		}
		
		}
		
		
	}
rapture 134 Posting Whiz in Training

ahhh, I have to sign in. Smart thinking ddanb

rapture 134 Posting Whiz in Training

Mine at work is just black, I'll try when I get home too

rapture 134 Posting Whiz in Training

Is this similar to what you want to do?

http://www.hunterstone.com/library/RichTextBoxHS.htm

rapture 134 Posting Whiz in Training

Is this similar to what you want to do?

http://www.hunterstone.com/library/RichTextBoxHS.htm

rapture 134 Posting Whiz in Training

Tons of stuff out there to guide you if you search properly

here is a tutorial

http://www.astahost.com/info.php/vb-net-ms-access-interaction-tutorial-part_t12054.html

rapture 134 Posting Whiz in Training

your 'from' is a valid email address as well not just a name?

rapture 134 Posting Whiz in Training

no problem, let us know if it works

rapture 134 Posting Whiz in Training

this is supposed to update the database?

Me.FriendsTableAdapter.Update(Me.TestDB2DataSet.Friends)

I've never done it that way, how does it work?

rapture 134 Posting Whiz in Training

Smelf did you get this? If not then disable ipv6 on your machine and I think his code works fine

http://wiki.williams.edu/download/attachments/17035/Disable_IPV6_Vista.pdf

rapture 134 Posting Whiz in Training

I was going to add that the two outputs are the same . ..

rapture 134 Posting Whiz in Training
rapture 134 Posting Whiz in Training

Will the position change?

I would think you could use String.Insert()

rapture 134 Posting Whiz in Training

lol - wrong page . . I'll get the correct one

http://lisa.uni-mb.si/osebje/bonacic/predmeti/orodja_za_razvoj_aplikacij_in_vs3/CSharp/Serialization_CSharp.htm

That's what I meant to post a link for . ..

rapture 134 Posting Whiz in Training

I found a c# article on it

http://authors.aspalliance.com/dotnetsolutions/Article4tmpl.aspx

a vb.net article relating to add/remove

http://www.startvbdotnet.com/controls/combo.aspx

any of that help you?

rapture 134 Posting Whiz in Training

Does this site help you enough

http://www.perlmonks.org/?node_id=477517

rapture 134 Posting Whiz in Training

Did you search on google for things like

dynamically add dropdown items from combobox

or do anything to prepare for this? What do you have so far and where are you stuck?

rapture 134 Posting Whiz in Training

Maybe this will help for starters

http://www.daniweb.com/forums/announcement58-2.html


Now, what have you done so far?

rapture 134 Posting Whiz in Training

Yea I'm a little lost as well - I thought all he needed was
form1.close() or form2.close() or WhateverYourFormsNameIs.Close()

but he needs to code it as well?

rapture 134 Posting Whiz in Training

That wasn't easy for me to see and if you hadn't pointed it out I don't know if I would have caught it.

how in the world did you see that randomly?

rapture 134 Posting Whiz in Training

wow smelf1 you're just full of questions lately. :)

rapture 134 Posting Whiz in Training

I have no idea what he means by My.computer either - however saying that he can't use System.Data is weird.

Are you typing above everything else

Imports System.Data


???

rapture 134 Posting Whiz in Training

lol no, I've read about mail specifically but not spent time reading about attachments. I'm fairly new to programming and still have a lot to learn.

Thanks for pointing me somewhere new today!

rapture 134 Posting Whiz in Training

Interesting, I've used system.net.mail but didn't realize there was an attachment class built in, not sure why.

For the record, I'm not certain he was pointing you towards the mail class either, just posting a comment on something I picked up here.

rapture 134 Posting Whiz in Training

We need a way to "force solved" any thread that is either open for too long or solved but the poster won't mark it . . .

rapture 134 Posting Whiz in Training

I would agree with the others, show some effort and we can help you through it. One thing I did notice by searching daniweb is that there is already an answer to this question that I think does what you need to do.

http://www.daniweb.com/forums/thread136104.html

rapture 134 Posting Whiz in Training

I've not done this myself, I did find some things by searching . . .

I googled gridview embed a button for each row


looks like you're going to use itemtemplate to do this

rapture 134 Posting Whiz in Training

Well thanks,

I knew it was going to be super simple and was overlooking it - I had read that page and totally passed over what I needed there.

(*must stop making assumptions about code when brain is infected with Microsoft patterns . . .)

You wouldn't happen to have an antivirus for that would you?

In VB.Net if I had development and wantd lop it would be substring(5,3) for where to start and how many. I didn't register the difference.

Thanks again for the help . . .

rapture 134 Posting Whiz in Training

comeon - someone give me a hint here

rapture 134 Posting Whiz in Training

ok, I'm taking my first Java class and in my first week. I've searched but this is different from .Net so much that I have a headache just getting eclipse set up and how to navigate the environment.

That said, I have a program that would take me 5 minutes to do in Visual Studio that I can't figure out in Java.

Here is the code

public static void main(String[] args) {
		
		String inputNumber;
		String number1;
		String number2;
		String number3;
		String number4;
		String number5;
		
		inputNumber = JOptionPane.showInputDialog("Enter a five digit number ");				
		
		
		number1 = inputNumber.substring(0,1);
		
		number2 = inputNumber.substring(1,1);
		
		number3 = inputNumber.substring(2,1);
		
		number4 = inputNumber.substring(3,1);
		
		number5 = inputNumber.substring(4,1);
		
				
		
		
		JOptionPane.showMessageDialog(null, number1 + "     " + number2 + "     "+ number3 + "     " + number4 + "     "+ number5);
		
		
		
		System.exit(0);

	}

what I'm supposed to do is accept input of 5 numbers and then display them separated by five spaces. So if entered 05852 it would then display 0 5 8 5 2

I'm getting
"Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at practiceArithmeticOperators.PracticeArithmeticOperators.main(PracticeArithmeticOperators.java:29)"

rapture 134 Posting Whiz in Training

hey I'll even go one step further

Private Sub btnDelete_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles btnDelete.Click
    If Not DataGridView1.CurrentRow.IsNewRow Then
        DataGridView1.Rows.Remove(DataGridView1.CurrentRow)
    End If
End Sub

but it's not my code - it popped up by googling what you want

http://www.vb-helper.com/howto_2005_datagridview_delete_row.html

rapture 134 Posting Whiz in Training

You're not supposed to post your email addy here like that

and what are you asking for? you want code to download? a program to write it? You have not said what you want so I assume it's code.

Here ya go,

http://www.microsoft.com/downloads/details.aspx?familyid=08E3D5F8-033D-420B-A3B1-3074505C03F3&displaylang=en

download vb.net here for FREE!

Ancient Dragon commented: Exactly :) +36
rapture 134 Posting Whiz in Training

you code it in the button click event

rapture 134 Posting Whiz in Training

Isn't this nice, this thread is apparently a matching making service now.

rapture 134 Posting Whiz in Training

I'm not 10% of the programmer these other guys are, but what I do at this point is insert a breakpoint and step through the code to see where the disconnect is.

rapture 134 Posting Whiz in Training

i am only using it in a small program, but if i try your code i get (collection) a load of times in the combo box. Also it says
ComboBox1.Items.Add(urls)
url is not defined so i assume it meant to be urls

correct, he used url in the first part and urls in the second, it should probably be

ComboBox1.Items.Add(urls)
rapture 134 Posting Whiz in Training

Not that I'm doing a project like this but you questioned about Firefox URL's etc Comatose, would the method to do that be similar but adding those registry locations to the list or would there be something different to do those?

rapture 134 Posting Whiz in Training

First of all you don't have much information as to what it is you need help with . . .
you don't know where to begin
you have an error
etc

Secondly, there is a thread for "Visual Basic 4 / 5 / 6" that might be of better use for you than the VB.Net thread.

rapture 134 Posting Whiz in Training

I'm newer to vb.net so the others might change this a bit

Private Shared Sub GetInstalled()
         Dim uninstallKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
         Using rk As RegistryKey = Registry.LocalMachine.OpenSubKey(uninstallKey)
             For Each skName As String In rk.GetSubKeyNames()
                 Using sk As RegistryKey = rk.OpenSubKey(skName)
                     Console.WriteLine(sk.GetValue("DisplayName"))
                 End Using
             Next
         End Using
     End Sub
Comatose commented: Perfect Code Port +8