16,016,789 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13036251 (Top 12 by date)
Member 13036251
5-Apr-17 14:43pm
View
Deleted
Its someone elses data..I just have a snapshot of the data..I dont have access to the dataset. I wouldnt be posting a trivial question. I dont think something like this exists. Just wonder, if there was a way to tackle this..
Member 13036251
5-Apr-17 14:39pm
View
The reason I do that is because I can then analyze the data..I'm most interested in sorting and median values of a sample set. Plus, its a jpeg. The data was stored in an image and I want to extract it then look at the data closer.
Member 13036251
3-Apr-17 19:04pm
View
Active X not working. What do you mean?
Member 13036251
3-Apr-17 17:07pm
View
Just tried it..it downloads it but it doesnt open it..I read alittle on the web but it seems you dont want ActiveX to come up..
Member 13036251
3-Apr-17 16:04pm
View
A third party tool or utility works too..just wasnt sure if anyone has solved this.
Member 13036251
3-Apr-17 14:40pm
View
Figured so.
Member 13036251
30-Mar-17 20:51pm
View
You need to ensure the encoding is the same on the send and receive. Have you thought of using a session variable of type String[]. You can make it multidimensional and could bind it to your grid.
Member 13036251
30-Mar-17 15:54pm
View
Have you tried: SELECT COUNT(column_name) FROM table_name; ?
Member 13036251
30-Mar-17 15:36pm
View
Hide Expand Copy Code
//***********************************************************************************************************************************************
// Purpose: When this method is called, it will display the String parameter which is the menu text which should include the possible selections.
// This method should then prompt the user to make a selection and perform value and type-safe user input checking until a user has made
// a valid selection. If the user does not enter an int value, they should be told “Please enter a number between $min and $max” where
// $min and $max are the values of the parameters min and max.
//***********************************************************************************************************************************************
import java.lang.Math; // headers MUST be above the first class
import java.util.Scanner;
import java.io.*;
// The MenuHelperClass
public class MenuHelperClass
{
public static int displayMenu(String message, int min, int max)
{
int choice = 0;
String input = null;
String error = "";
while (choice < min || choice > max) {
System.out.println(message);
Scanner in = new Scanner(System.in);
choice = in.nextInt();
error = "Please enter a number between " + min + " and " + max;
System.out.print(error);
}
return choice;
}
// arguments are passed using the text field below this editor
public static void main(String[] args)
{
String[][] menuArray = new String [][] { { "Please select a main course:\n 1) Chicken\n 2) Beef\n 3) Pork\n Please make a selection 1-3:", "1", "3"},
{ "Please chose a side:\n 1) Baked Potato\n 2) Soup\n 3) Salad\n 4) Vegetables Please make a selection 1-4:", "1", "4"},
{ "Please chose a side:\n 1) Baked Potato\n 2) Soup\n 3) Salad\n 4) Vegetables Please make a selection 1-4:", "1", "4"}};
int rows = 3;
int columns = 3;
String[] selections = new String[3];
int selectionIndex = 0;
for(int i = 0; i < rows; i++){
for(int j = 0; j < columns; j++) {
String message = menuArray[i][j];
int min = Integer.parseInt(menuArray[i+1][j+1]);
int max = Integer.parseInt(menuArray[i+2][j+2]);
int output = MenuHelperClass.displayMenu(message, min, max);
selections[selectionIndex] = Integer.toString(output);
selectionIndex++;
break;
}
System.out.println( "\n" );
}
String selectedValues = "";
for(int z=0; z < 3; z++){
selectedValues += selections[z] + ", ";
}
System.out.println("You selected options "+ selectedValues +" for your choices.");
}
}
If you could figure out the readline part, it should work. Might need alittle more debugging.
Member 13036251
30-Mar-17 13:13pm
View
Deleted
I uploaded my example just for the fact that I dont mind solving problems occassionally..Please do your best to understand how the program works though.
Member 13036251
29-Mar-17 15:44pm
View
Have you tried powershell? Dont know how you can get that granular.
Member 13036251
29-Mar-17 15:18pm
View
Are you trying to compare the columns or the rows? Also, do you have a sample file?
Show More