Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
colums
- Page 1
dataGrid Table 2 colums (INSERT)
Programming
Software Development
15 Years Ago
by njitram
Hello i need some help! [code=C#] dataGridView1[ID].Add(idPlayers); dataGridView1[Name].Add(nmPlayers); [/code] This aint working ... ;) [code]
Colums
: ID, Name Values: idPlayers = Reader.GetString(0); nmPlayers = Reader.GetString(1); [/code] How can i add this into the dataGrid table?
Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by gor.irina
I'm very new to Java and I'm basically teaching myself. I'm writing a program where I need to plot some values. I have a while loop and I need to print x and y values to a text file that I can later graph using gnuplot. If someone can help me make two
colums
of x and y values to a text file I would really appreciate it!
Select 3 times two colums in mysql query
Programming
Databases
10 Years Ago
by developer707
… their projects(table name objecte). The table objekte has 4
colums
that are connected with the id of the staff. The…
Re: Select 3 times two colums in mysql query
Programming
Databases
10 Years Ago
by developer707
Thank you priaeas! I will try to make it works in my case, because the execution of this query gives me to many
colums
for the moment ...
Re: How do I put my output in colums of 4?
Programming
Software Development
16 Years Ago
by alembic21
Nick, I entered to code and my results were 4
colums
of 20 #'s, not 5 columns of 4 #'s. Any suggestions?
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by NormR1
By columns I assume you mean two fields of data separated by some spaces on the same line. The line ending with a newline character. When you build the record insert the number of spaces between the two fields and add a newline char at the end: String rec = dataForCol1 + " " + dataForCul2 + "\n"; If you want the …
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by jon.kiparsky
...or based on the second column if you want the columns to be right justified. What sort of input does gnuplot want? Fixed-width, delimited?
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by gor.irina
It should look like the two columns of data on this website: [url]http://sip.clarku.edu/tutorials/gnuplot/[/url]
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by NormR1
Do you have any questions on how to create the file you need?
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by gor.irina
I do. I'm not sure what the right question to ask is, but when I tried writing [CODE][/CODE]String rec = x + " " + y + "\n"; it didn't give me an output. I wrote that line in the middle of my while loop. I also tried doing [CODE][/CODE] System.out.printf("%1$10d%2$11.2f%3$10d%4$11.2f\n", x, y); earlier, and it gave …
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by NormR1
Setting a String variable to a value does NOT create any output. printf() will display the output on the console. Your printf() args look too complicated for what you need. [CODE] System.out.printf("%f %f\n", x, y);[/CODE]
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by gor.irina
How can I create an output?
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by NormR1
What is an output?
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by gor.irina
Whoops! Sorry I didn't notice the rest of your message. The code works perfectly! Thank you so much. what does the %f and %f/n mean?
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by NormR1
Read the API doc for the Formatter class. It is explained there.
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by java_programmer
%f is formatter for float data type. In Printf() function, you have to specify the formatter for data type - like %d for int, %s for String, %f for float etc. And /n implies new line. After printing each line, it will print a new line i.e. next output will be printed in a new line. [QUOTE=gor.irina;1296958]Whoops! Sorry I didn't notice the …
Re: Two Colums of Data to a Text File
Programming
Software Development
13 Years Ago
by java_programmer
Mark the thread as solved, if your purpose solved. [QUOTE=java_programmer;1297938]%f is formatter for float data type. In Printf() function, you have to specify the formatter for data type - like %d for int, %s for String, %f for float etc. And /n implies new line. After printing each line, it will print a new line i.e. next output will be …
Re: Select 3 times two colums in mysql query
Programming
Databases
10 Years Ago
by pritaeas
Start with this, you just need to select the columns you need: select * from objektet o left join stafi s1 on s1.id = o.id_pergjegjesi left join stafi s2 on s2.id = o.id_punime_civile left join stafi s3 on s3.id = o.id_punime_elektomekanike left join stafi s4 on s4.id = o.id_punime_elektrike
Re: Select 3 times two colums in mysql query
Programming
Databases
10 Years Ago
by pritaeas
You can just select what you need from the o and s1 aliases.
Re: Select 3 times two colums in mysql query
Programming
Databases
10 Years Ago
by 1stDAN
Hello, are you about to design a new database or have you been working on an already existing database which include these two tables stafi and objektet? Well, if you are freely able to change both tables, life could be easier. Consider this: A staff member is working on many projects. A project has many staff members working on it. I …
Update Scoreboard - ASP
Programming
Web Development
17 Years Ago
by cancer10
…... I have a database with the following
Colums
and the data type of all
Colums
are integer id|score1 | score2 | score3 ------------------------------------ …, and I want to add 30 scores in each 3
colums
, the updated value will be 42 | 96 | 40 But … cannot figure out, how should I add and update the
colums
If I am selecting multiple IDs i.e. 7, 5…
compare two SQL database
Programming
Databases
12 Years Ago
by ab73745
… each other. Now each file have 10
colums
but i only want to compare 5
colums
with other file. for example, some…
colums
names are (invoice num, time, date, amount) so… script i can write where i can compare those 5
colums
. Thanks in advance.
Printing problem
Programming
Software Development
16 Years Ago
by blondie.simon
… software that creates a text file, the text file contains
colums
of data. When I view and print the text file… using notepad all the
colums
line up correctly. I am now trying to print the… my form but every time I print it all the
colums
are no longer lined up :-( This is the code that…
showing records into grid asp.net+ms access
Programming
Web Development
13 Years Ago
by selicon.valley
… now i have the grid into it with show 3
colums
my questions are if i want to add2 more…
colums
which i want to 5 how do i do now …i want to add records into grid rows and
colums
rember rows are unlimited i m programmer of vb6 i…
rerreiving records from ms access into grid asp.net
Programming
Web Development
13 Years Ago
by selicon.valley
… now i have the grid into it with show 3
colums
my questions are if i want to add2 more…
colums
which i want to 5 how do i do now …i want to add records into grid rows and
colums
rember rows are unlimited i m programmer of vb6 i…
DataGridview - Ado.net Insert problem
Programming
Software Development
12 Years Ago
by symeramon
… it into the datagridview, after that, I add 4 more
colums
into the datagridview which are editable, finally pass the entered… in the load of Datagridview... I have 19
colums
return from view, 4 more
colums
I have added. Here is the code…
CSV file to Excel
Programming
Software Development
12 Years Ago
by gedas
… worksheet sub import_data { my $workbook = shift; my $base_name = shift; my $
colums
= shift; my $data = shift; my $limit = shift || 50_000; my $…->add_worksheet("$base_name - $w"); $worksheet->write('A1', $
colums
,$bold); } $worksheet->write($i++, 0, $row); } autofit_columns($worksheet); …
Quick Help
Programming
Software Development
11 Years Ago
by LegendX
…(); System.out.println("Please enter the total number of
colums
: "); COL = scan.nextInt(); int [][] nums = … have to prompt the user for total rows and
colums
(which I have). **Next, I'm trying…to generate random, capital letters formatted in rows and
colums
, which I cant generate, its giving some weird…
Adding and deleting a column in JTable
Programming
Software Development
19 Years Ago
by freesoft_2000
… seem to have in problem in adding columns and deleting
colums
in the JTable. When my program initializes there are five…" . What i need is a way that when the
colums
are added the column header names are default. what i…
ASP - Excel to Database
Programming
Web Development
17 Years Ago
by cancer10
…, Can someone help me with this problem? I have 3
colums
in an excel sheet (Serial No, Name, Mobile no), I… the excel sheet into the database which also has 3
colums
(Serial No, Name, Mobile no) with a single click of…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC