C++ :: How To Read Selected Letters
Jun 1, 2013
I have a text file in which i need to read only selected letters and substitute them with integers to calculate.
Eg:-
In the text file
f2,h1
Here i need to read only the the letters f & h and substitute them with some integer and add them up.
View 1 Replies
ADVERTISEMENT
Mar 4, 2013
I want to retrieve the records selected between from_dt and to_dt and also the records of the selected date should be retrieved...
SELECT ChallanDtl.chalID, ChallanDtl.chalTo,
ChallanDtl.chalNo, ChallanDtl.chalDDate,
ChallanDtl.chalYourNo, ChallanDtl.chalPO_NO,
ChallanDtl.chalPO_Date,
ChallanSubDtl.chalsubdescription,
[Code] ...
I am not getting all the records.... when i select the same date in both datetimepicker no record is displayed... i also want the record of the selected dates from both datetime picker..
View 2 Replies
View Related
Apr 16, 2013
I have to write a function that reads letters one at a time from a text file, such as (aBCdefG) using fgetc(). However, each character needs to be inserted into the array in ascending ASCII order, so it should come out as (BCGadef). I wanted to use an insertion sort, however, that would require me to pass the whole array. My professor wants me to sort the letters as they are read, though, and not as a whole array.Can you even do that?
View 11 Replies
View Related
Mar 2, 2013
I'm reading a binary file and I want to read all of the letters, but I have noticed that it doesn't read all of the letters and I think it is because of appears as data.
View 11 Replies
View Related
Sep 11, 2013
What data_type will read in a string of letters mixed with numbers using fstream :);
View 1 Replies
View Related
Aug 31, 2014
I have a secnario where I have few tab controls one ineide the other, where my real tab pages containing the data are 4 level deep. This entire structure is dynamically built from a data base.
Now I have a tick event, on whice I want to update the data in the currently selected tabpage.
How can I find it, recall that I have many tab controls, each has a tabpage with another tab control an so forth...
Two ideas I had in mind, I though I caould generate a list of all my data TabPages and itterate it, but I failed to find an indicator of the selected tab.
Another idea was to track the currently selected tabpage via an event, but I feared that I might miss somehow the track and my update the wrong tab page.
Last idea was really unelegant - Look at the main control, get the selected tab page, find the tab control on that page via searching its controls, than find this control selected page, and do the same until I reach the 4th level.
View 4 Replies
View Related
Mar 2, 2013
I want to create a GUI using C, for displaying time when a time zone is selected.
I absolutely don't know how to write a program for that. How to get the time of a zone displayed when the zone name is given as input.
View 2 Replies
View Related
Jul 28, 2014
This is part of the program, What should i do if i want to total the number of times a shape was selected at the end?
#include<iostream>
#include<string>
#include<iomanip>
[Code]....
View 3 Replies
View Related
Jan 28, 2015
I'm trying to find an event for the combobox when its selected value changes , but I can't seem to find the right one since I've tried several events in the dataGridView that are just triggering at the wrong moments. I need to remove the selected item from that combobox so that it doesn't get selected again at the second combobox which usually have the same items .
View 5 Replies
View Related
Feb 24, 2014
I am developing a project that generates questions from a database, the questions are generated with multiple choice answers. On this form I have got a textbox that reds the question from the database and 4 radio buttons that reads the possible answers from the database. The radio buttons text names are updated with records from a database table each time the "next button" is clicked.
What I want this program to do is that when the user selects one of the radio buttons, I want the system to check if the selected radio button textname equals the right answer in the database table. for example in the table there are 5 columns namely: option1, option2, option3, option4 and rightAnswer. So whenever a user selects a radio button, I would like the system to check if the selected radio button's textname equals the record in the "RightAnswer" column and if so I would a messagebox to show "correct" and if not the messgaebox to show "wrong"
This is the the way I am updating the radio button text names from the database This method is called when the form is loaded
void LoadingPossibleAnswers() {
Query = "SELECT * FROM AnswersTbl";
theReader = conn.ExecuteStatement(Query);
while (theReader.Read()) {
radioButton1.Text = theReader["Option1"].ToString();
[code]....
This method is called when the button is clicked
void CorrectAnswer( RadioButton rdb) {
string correct = rdb.Text;
Query = "SELECT * FROM FROM AnswersTbl;"
theReader = conn.ExecuteStatement(Query);
while (theReader.Read())
[code]....
When ever I run my code above, else condition executes even if the correct radio button is selected.
View 3 Replies
View Related
Jul 21, 2014
I've a winapi listbox with a bunch of entries, I'd like that when the user click on an entry, the entry number will be saved on an integer variable.
View 3 Replies
View Related
Jun 5, 2014
how to get source path of selected file.
for example :
selected image in E:/
E:ewfolderillustration.jpg
application - asp.net(C#)
View 4 Replies
View Related
Apr 17, 2014
I want to select text entered in a popup and save it. I have a form that contains a text area and a button
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="103px" Width="262px"></asp:TextBox>
<br />
<br />
<asp:button runat="server" text="Add" onclick="Unnamed1_Click" />
when we click on a line in text area I want to open a popup having all text from that line. I should be able to select some of its text then if I click on save button of popup then only selected text should be saved and displayed in original text area of form. I want to use this for multiple sentences of text area.
Add button will add new line.
View 8 Replies
View Related
Sep 7, 2014
how to create a context menu but none of them discuss how to actually fetch the selected menu item?
if (e.Button == MouseButtons.Right)
{
ContextMenu m = new ContextMenu();
m.MenuItems.Add(new MenuItem("Font Size 8"));
m.MenuItems.Add(new MenuItem("Font Size 9"));
m.MenuItems.Add(new MenuItem("Font Size 10"));
m.Show(listBoxChecklist, new Point(e.X, e.Y));
//tempString = m.?????
}
View 3 Replies
View Related
Feb 18, 2013
i have 10 column in my datagridview. i want to get whole value from row(which row i'll select). i have this code but it's shows only one cell value,
richtextbox.Text = dataGridView1.CurrentCell.Value.ToString();
View 1 Replies
View Related
Jan 5, 2014
I'm trying to build an app, but i don't know which is the best language choice. For starters, the app should be able to:
1. run from context menu
2. when selecting some text from a web browser (ff, ie), that text is captured (preferably not in clipboard) and sent as argument to the program via context menu and the program starts executing...
Is this possible?
e.g. [URL] ....
View 2 Replies
View Related
Jul 8, 2014
My assignment asks me to read inputs from a certain file which has data as shown below:
else if (menu == 3) {
ofstream outFile("output.txt");
Shares share1 = shareList.get(0);
double price1 = share1.getTradePrice();
time24 time1 = share1.getT();
[Code] ....
View 1 Replies
View Related
Jun 4, 2014
IF statement. Really new, so this will be simple I'm sure. I'm essentially just trying to roll a 6 and 20 sided die. I want the statement to run "If 20,then display the randomly selected number for 20".
// auto dice roller
#include <iostream>
#include <string>
#include <ctime>
#include <cstdlib>
using namespace std;
const char* twenty[20] = {
"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20"
[Code] ......
View 7 Replies
View Related
May 29, 2013
string st=combobox1.selectedvale.tostring();
combo box return 2 item ,
1:text
2:value
The value of combo not type of(int),the value type (string)
How value ofcombobox return data with type(string)?
View 2 Replies
View Related
Nov 13, 2013
I have created a form (in ASP.NET and C#) which have 5 dropdown
1.3rd dropdown fill on the basis of 1st n 2nd dropdown value
2.5th dropdown fill on the basis of 4th dropdown value
I applied onselectedindexchanged event on 2nd and 4th dropdown and both are autopostback true.All values come according to the requirement.
Problem is when I select a value in 3rd dropdown and it becoming change when I select some value from 4th dropdown.
View 1 Replies
View Related
May 17, 2013
passing selected row in gridview to my dropdown. I have 1 gridview, 1 textbox and 1 dropdown list box. My dropdown is populated by SqlDataSource from my table Country. On my gridview, I have 3 columns, which are SELECT, NAME and COUNTRY. Under SELECT column, I have my hyperlinked Select, every time I clicked on a certain row NAME will pass in textbox (no problem with that), but in my dropdown it does not populates the COUNTRY that I choose. For example, I have Jack for name and USA for country. Beside Jack and USA, I have a hyperlink Select, when I click Select, Jack will display on my textbox and supposed to be USA will display on my dropdown but not displaying instead it says an error "'cboCountry' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value".
I have tried the codes below:
protected void GridView2_SelectedIndexChanged(object sender, EventArgs e)
{
txtname.Text = GridView2.SelectedRow.Cells[1].Text;
cboCountry.Text = GridView2.SelectedRow.Cells[2].Text;
}
Only the textbox os working, no luck at all in dropdown...I'm using c# and asp.net.
View 1 Replies
View Related
May 13, 2014
I am maintaining a legacy VC++ 6 project.
When I use SHBrowseForFolder I can retrieve a PIDL of the selected folder and with this PIDL I can get the path with SHGetPathFromIDList.
Now, given a path to a folder, I want to retrieve its PIDL. How can I do it? I tried SHParseDisplayName() but seems that function is unsupported in VC++ 6.0
View 3 Replies
View Related
Oct 12, 2014
I need to make a program using public and private classes. I need to make a farm of five animals using the class Animal and the class has to contain charactaristics about animals i.e. speech or number of legs. So when I run the program it should output a number set to each animal and then it would display the characteristics of the selected animal.
View 1 Replies
View Related
Dec 15, 2014
How does one go about Playing a music file that they picked and playing it in the default player?
I already have this:
#include <iostream>
#include <windows.h>
using namespace std;
int main(){
string wavfile = "C:Documents and SettingsJasonMy DocumentsJasonMy MusicDummy.wav";
[Code] ....
View 5 Replies
View Related
Jan 25, 2015
I'm using listView to show content (selected item) in ComboBox, TextBox, Labels..
I was using
DropDownStyle = DropDown
and actually i use DropDownStyle = DropDownList.
With this change,
comboB.Text = Name;
stopped working correctly (onload), only work after first click any item. Why?
I tried too
private void comboB_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = true;
}
but with copy/paste with mouse i can add text in ComboBox.
PS: My objective is combobox no editable.
View 1 Replies
View Related
Jul 28, 2014
My project is to make a options menu for the user to select a shape and than draw out the shape. That whole process is already done and ready to go. What i am having trouble on is totaling the number of selected shapes. For example, at the end of the program i need to prompt a message saying ("You have selected "shape" this many times "number").
View 1 Replies
View Related