To retrieve data from diffrent textbox to put in one field
-
I'm new in VB.Net. I want to generate document number in this format i cannot make the date format starting with year so i make 3 text box each is year, month n day. how to make 3 items from date, custID and running_no put in one field call docNo. i'm using Microsoft Visual Studio .NET
-
I'm new in VB.Net. I want to generate document number in this format i cannot make the date format starting with year so i make 3 text box each is year, month n day. how to make 3 items from date, custID and running_no put in one field call docNo. i'm using Microsoft Visual Studio .NET
zaimah wrote:
i cannot make the date format starting with year
The way to do this is the overload of the ToString method that lets you specify the format with a format string like YYYYMMDD.
zaimah wrote:
how to make 3 items from date, custID and running_no put in one field call docNo.
Assuming the are all textboxes docNo.Text = date.Text + custID.Text + running_no.Text
zaimah wrote:
i'm using Microsoft Visual Studio .NET
Well, obviously. Telling us the version number may help, but we know you're using visual studio. I suspect you'd benefit from working through a book on VB.NET, it would cover things like how ToString is overloaded, and how to add strings to each other.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
zaimah wrote:
i cannot make the date format starting with year
The way to do this is the overload of the ToString method that lets you specify the format with a format string like YYYYMMDD.
zaimah wrote:
how to make 3 items from date, custID and running_no put in one field call docNo.
Assuming the are all textboxes docNo.Text = date.Text + custID.Text + running_no.Text
zaimah wrote:
i'm using Microsoft Visual Studio .NET
Well, obviously. Telling us the version number may help, but we know you're using visual studio. I suspect you'd benefit from working through a book on VB.NET, it would cover things like how ToString is overloaded, and how to add strings to each other.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
zaimah wrote:
i cannot make the date format starting with year
The way to do this is the overload of the ToString method that lets you specify the format with a format string like YYYYMMDD.
zaimah wrote:
how to make 3 items from date, custID and running_no put in one field call docNo.
Assuming the are all textboxes docNo.Text = date.Text + custID.Text + running_no.Text
zaimah wrote:
i'm using Microsoft Visual Studio .NET
Well, obviously. Telling us the version number may help, but we know you're using visual studio. I suspect you'd benefit from working through a book on VB.NET, it would cover things like how ToString is overloaded, and how to add strings to each other.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )