43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for INI

Hi all, What code can I use whereby if the user times in anything other than a number an error message will prompt them. [code] [U]If NOT val(Textbox1.value) then[/U] Msgbox("Sorry you must only put numbers") else end if [/code] The line underlined, does not work. Please can someone tell me …

Software Development visual-basic
Member Avatar for Comatose
0
148
Member Avatar for BillWebber

Hi to whoever has been good enough to read this. I am very new to Visual Basic 6 and are trying to build a small data base program as part of a tutorial i managed to get my hands on. I have been struggling with this problem in my code …

Software Development visual-basic
Member Avatar for BillWebber
0
187
Member Avatar for swapnamishra

How to execute the code written in a .py file. I wanted to know the exact command to be used. Is it executeFile("File.py")?

Software Development python
Member Avatar for Ene Uran
0
88
Member Avatar for biganimal

I created a program for my daughter and its a little rough around the edges. I need to make some improvements to it but stuck. I want it to be able to save input data and be able to load it back in so every time you start the program …

Software Development python
Member Avatar for Ene Uran
0
91
Member Avatar for Eddy Dean

Hello everyone, I downloaded the source of an internet file and need to filter a specific part of it. I know how the [inlinecode]string::size_type position = Line.find("World:</TD><TD>");[/inlinecode] function works, but this only tells me where the data I am looking for is located (the data is after "World:</TD><TD>"). I want …

Software Development c++
Member Avatar for Eddy Dean
0
114
Member Avatar for Ene Uran

Does anyone have a good example of a wx.FlexGridSizer() application.

Software Development python
Member Avatar for Ene Uran
0
817
Member Avatar for Ene Uran

Is there a way to verify an exit, if you click on the exit symbol on a wxPython frame?

Software Development python
Member Avatar for Ene Uran
0
79
Member Avatar for biganimal

I have a simple program started and need help enhancing it and making it a more realistic database tool giving easy entry and retrieval. import shelve import string UNKNOWN = 0 HOME = 1 WORK = 2 FAX = 3 CELL = 4 class phoneentry: def __init__(self, name = 'Unknown', …

Software Development python
Member Avatar for bumsfeld
0
114
Member Avatar for rockzZ25

Hi All, I have an algorithm on the server. I want the algortihm to perform calculations based upon the data which is stored from a database to nested lists before the algorithm is run. Is there anyway of keeping the program running without any need of retrieving the data from …

Software Development algorithm client-server python
Member Avatar for rockzZ25
0
121
Member Avatar for Mwakudua Andrew

hi, could someone help me on to to write codes on my city council project which would enable the system to collect revenue automatically from clients?

Software Development pascal
Member Avatar for Mwakudua Andrew
0
106
Member Avatar for zx9

hi, This is my problem i have programmed a little word unscrambler i have a file wordlist.txt in my python folder and this program works just fine and unscrambles one word at a time but i dont how how to edit it to make it unscramble 10 words at a …

Software Development python
Member Avatar for jrcagle
-1
2K
Member Avatar for j1979c

[B]Errr... anyone knows what this means in Delphi language? [/B]:sad: [code] i : integer; i := i - $24; [/code] It's actually in a function that completes a WAV file header something similar to the Microsoft's RIFF specification for WAV. The code goes something like this. [code] procedure TForm1.StopRecording; var …

Software Development delphi file-stream pascal
Member Avatar for j1979c
0
148
Member Avatar for Shital Parab

How to swap two variables without using a third variable & pointer?

Software Development c
Member Avatar for Salem
0
222
Member Avatar for Daan

Hello :-) I'm trying to pass a filestream to a function: [code]template <class T> void grid<T>::print(std::ofstream file) { for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) file << cell[i][j] << "\t"; file << std::endl; } }[/code] so that I …

Software Development c++
Member Avatar for Daan
0
169
Member Avatar for lostpenan

I would like to extract the header info from an image file. For example I would like to search for the key "LINES" and return "2240" as string. And should I use open("r") or open("b") since im only interested in the header. Header: [inlinecode] BANDS = 1 BAND_STORAGE_TYPE = BAND_SEQUENTIAL …

Software Development file-system image python
Member Avatar for lostpenan
0
2K
Member Avatar for djkross

So I have this sorting program due and I did it all but there's something crazy happening when I run the program. If I enter a value that's greater than 6400 for the size of my array, the program crashes when it tries to sort it out. Also, when i …

Software Development algorithm c++
Member Avatar for djkross
0
76
Member Avatar for sciocosmist

I am having some trouble trying to get a JApplet to display in a Browser. The [applet](http://javafaq.nu/images/smiles/icon_sad.gif) does compile and does come up (displays) in a Microsoft Windows window frame, but does not display in a browser. I have several components that I place in JPanels and successfully place those …

Software Development java java-swing microsoft-windows samba
0
70
Member Avatar for nwiner

[code]#include <iostream.h> int fred[] = { 11, 22, 33, 44 }; int *fp; int main(int argc, char *argv[]) { for (int i=0; i<argc; i++) cout << argv[i]; cout << endl << "Hello world." << endl; fp = fred; cout << *fp++ << *fp++ << *fp++ << *fp++ << " - …

Software Development c++
Member Avatar for nwiner
0
108
Member Avatar for abayden

Hi, I am having trouble with wxPython on SUSE Linux Enterprize Server 9. The Computer has several Itanium 2 processors, and the version of Linux is for these processors. Python works just fine. So do other graphical toolkits Tkinter, pygtk, and qt. However when I try to use wxpython it …

Software Development python qt suse tkinter windows-server
Member Avatar for bumsfeld
0
133
Member Avatar for krayJ

[code] { int input; cout<<"Please select a number from 0 to 127: "; cin>>input; if (input<127 && input>0) MarkNumber(input); else cout<<"Please enter a number from 0 and 127!"<<endl; } void MarkNumber(int input) { int loop=0, n=0; while (loop!=input) { cout<<n; n++; //incrementing number from 0 loop++; //incrementing counter for loop …

Software Development c++
Member Avatar for dilip.mathews
0
102
Member Avatar for chepps

Hi, Iam a new comer.Joined today.Would like to clear one of my doubts. I have a doubt regarding the columns in datagrid. Iam using vb.net2005 (win application) I have a typed dataset, with the column names as that of the database(sql) table fields.i had set a datagrid's datasource to this …

Software Development dataset vb.net
Member Avatar for chepps
0
69
Member Avatar for lover99509

Hi guys, i have a problem in vb6 . lets say i have a command button named print in form1 then after clicking the print button it will transfer me to form2 which will control the number of copies,quantity and these things of printing options. The problem is how to …

Software Development visual-basic
Member Avatar for Comatose
0
169
Member Avatar for srired

hi, im kindof new to these things.iv just learnt a little python and am looking to learning something about parsing XML from APIs etc. could anyone give me a few pointers. also any advice as to what should i learn from now on would be very much appreciated(could you please …

Software Development python tkinter xml
Member Avatar for bumsfeld
0
93
Member Avatar for MckeMowse

Hi all, I'm pretty new to Perl and already I'm finding myself lost. I have created a form for my website that allows users to enter news articles (a textarea) and then my code saves the text entered ($Text) to the database. I have set the Text to longtext through …

Software Development perl
Member Avatar for Comatose
0
114
Member Avatar for hiphoprules

This is a input file DEL 0050 XYZ 0050 0310 CCU 0710 MAA 1325 TRZ 10415 KWI 0050 FJR 0325 0325 CCJ KWI 0050 FJR 0325 0425 CCJ 0925 1005 i.e maximum items(column entries) in a row can be 8 but their data type will be in same order i.e …

Software Development c file-system
Member Avatar for Dave Sinkula
0
157
Member Avatar for hiphoprules

hi! this is my input file by name SC.txt CD 737 123457 AM 320 246 XY 543 357 AR 222 2 TY 212 1357 now i want to read this file and compare the last column entires with a user entered number. i.e user enters a no. for example 2 …

Software Development c
Member Avatar for hiphoprules
0
127
Member Avatar for MattEvans

Either I'm doing something very wrong, or the XMLDocument component is a terribly written component. I keep getting Access violation at #ADDRESS Read Of #ADDRESS errors, no explanation just a peek at the CPU showing the error occurs all of the place depending on which test I'm doing. Basically, all …

Software Development pascal xml
Member Avatar for Lord Soth
0
550
Member Avatar for INI

I have a question, does anyone know why "Div/0" error comes up in VB? My program reads/writes to several files. On my computer and one of my friends computer, it works perfectly; though there are some desktops machines that I receive that error. When I step through the program to …

Software Development visual-basic
Member Avatar for INI
0
178
Member Avatar for rdubey_jsr

Hi I need to cast string type variable to LPCTSTR type. How to achieve this. I am inserting my code for yours help.[code] [COLOR=#0000ff] ifstream file(filename); if (file) { char ch='\n' ; do { file.getline(line, SIZE); tmp =static_cast<string>(line); vector <string> array; string token; // token decleared string type istringstream iss(tmp); …

Software Development c++
Member Avatar for rdubey_jsr
0
169
Member Avatar for Visslan

Can someone tell me what that is :rolleyes:

Software Development java
Member Avatar for Visslan
0
149
Member Avatar for djkross

everything seems to go fine except when i get to the search. either the program runs with a runtime error or it'll just return "NO MATCH". by the way, when i put the if/else statement in the loop, it works but it also returns NO MATCH until it finds the …

Software Development c++
Member Avatar for djkross
0
250
Member Avatar for dilip.mathews

[CODE]void main(void) { char *p = "name"; p[0] = 's'; printf("%s", p); }[/CODE] The above piece [COLOR=black]of code is giving me eror at run time. The reason for this error might be that I am not allocating any memory for the pointer(correct me if I am wrong).[/COLOR] [COLOR=black]My doubt is, …

Software Development c
Member Avatar for dilip.mathews
0
268
Member Avatar for a1eio

hi, i'd like to create something that basically grabbes information from websites, however i havn't any experience in urllib (apart from very basic page reading) and the issue is that the page i want to grab data from checks to see if another page is connected to it or perhaps …

Software Development html-css python
Member Avatar for metabo_man
0
345
Member Avatar for j1979c

Hello all.... Just learnt VB .NET yesterday and would like to continue to the ASP .NET book using the VB .NET IDE to program. The thing is... when I start a new project in VB .NET there are no templates for ASP .NET Web Application. Do I need to download …

Software Development asp asp.net ide vb.net
Member Avatar for j1979c
0
167
Member Avatar for DarkAlex

Hello. This is a very very basic question about variables in range names. I have quite a few ranges of varying lengths in multiple Excel documents. I want all the ranges standardized and set to the same length, but I don't know what that length will be yet, and it …

Software Development visual-basic
Member Avatar for DarkAlex
0
126
Member Avatar for vicky_dev

Hi... I am trying to write a string class...this part is supposed to concatenate two strings, but I am having trouble with constructors/destructors.:rolleyes: Please explain the exact sequence of calls and the correct way to code.:?: [code] #include <iostream> #include <cstring> #include <conio.h> using namespace std; class STRING { char …

Software Development c++
Member Avatar for WolfPack
0
405
Member Avatar for Simon268

Hi all. I can't get this to compile; [code] #include <iostream> #include <string> using namespace std; int main () { int number; string response; for (number=5; response!='Y';) { cout <<number <<endl; cout <<"Had Enough (Y/N)?"; cin>>response; } cin.get (); cin.get (); return 0; } [/code] when i try to compile …

Software Development c c# c++
Member Avatar for Simon268
0
185
Member Avatar for jimmypk

[code] # I have a problem in building class Tree (Binary Search) # function DelNode(self, Key) is not exactly # I Need Help, Please building class Tree (Binary Search) # Is there any different definition of class Tree from string import split class Node: def __init__(self): self.Key = None self.pLeft …

Software Development python
Member Avatar for G-Do
0
140
Member Avatar for Simon268

Hi all Any help would be much appreciated. Im following the about.com tutorial, and one of the exercises says i should make this program; [code] #include <iostream> #include <string> using namespace std; int main () { string name; int ID; cout<<"enter your name\n"; cin>> name; cout<<"enter your id\n"; cin>> ID; …

Software Development c++
Member Avatar for Simon268
0
156
Member Avatar for maheshsayani

Hi All I Want To Create Semi Transparent Forms I Had done work on Transparent forms but i need semi transparent form which we can see background text/image through this form in vb please send me the solution for this

Software Development image visual-basic
Member Avatar for maheshsayani
0
123
Member Avatar for slacke

Hi I used an variable int i; in a faunction block as it is in a code below. [code] #includes.... int i; int function() { while(charbuff[i]!=' ') { ofstream stream("file.lng", ios::app) stream << charbuff[i]; i++; stream.close(); } return 0; } main() { ........... some code function(); /*call function */ cout …

Software Development c++ file-stream ios
Member Avatar for slacke
0
168
Member Avatar for jamshid

I start Python Programming Language in these days, when i was trying to understand them i come across to these problems so i will be so happy if you help me in : 1) [code] >>> # Integer division returns the floor: ... 7/3 2 >>> 7/-3 -3 [/code] I …

Software Development python
Member Avatar for jamshid
0
105
Member Avatar for schmidty169

This is what I have to do [COLOR=black][COLOR=black][COLOR=black]We will initialize the tree by hard coding the values illustrated below. You will need to write, test and execute a driver program that will use the complete binary tree implementation. [/COLOR][/COLOR][/COLOR] [COLOR=black][COLOR=black][COLOR=black]// this will initialize the tree node values treenodes[0]=5; treenodes[1]=10; treenodes[2]=2; …

Software Development c++
Member Avatar for schmidty169
0
553
Member Avatar for jamshid

Hi Everyone here ; I am starting C and wanna you start C lessons here , so we (we new starters) can learn good and can discuss about some important points here.. It will so Nice and i hope our friends whom they know better this language start lessons here.

Software Development c
Member Avatar for ~s.o.s~
0
254
Member Avatar for Stivi

Hi, I'm want to use a ComboBox in my application and i want it to execute some code after I'll press enter in it. It's exactly like if you'll write an address into Internet Explorer and press enter. There must be some really simple solution, but I can't find that …

Software Development
0
85
Member Avatar for schmidty169

I'm getting error C2109: subscript requires array or pointer type [code]// CPP btree.cpp : Defines the entry point for the console application. // #include "stdafx.h" class TreeNode { public: TreeNode(string str): data(str), left(NULL), right(NULL) {} // Constructor. Make a node containing str. string data; // The data in this node. …

Software Development c++
Member Avatar for schmidty169
0
173
Member Avatar for tefflox

this is all that is given: [code] char word[10]; addS("fasten", word); cout << endl << word << endl; // will output fastens [/code] for a program that must make a word plural (add an s) here is my code, which compiles but gives a peculiar "segmentation fault" that I haven't …

Software Development c
Member Avatar for Eddy Dean
0
151
Member Avatar for Iamnew2java

The program runs but it doesn't calculate the average MPG correctly. It is calculating something, instead of zeroing out like earlier, but it sure isn't MPG! :mad: Any suggestions???

Software Development java
0
85
Member Avatar for tefflox

plz look at this code and tell me where I'm going wrong. I can't use another array to reverse the string. [code] const int MAX_SIZE = 15; // Max word size of word, allow for '\0' void reverse(char word[]); // function prototype int main() { char word[MAX_SIZE]; cout << endl …

Software Development c++
Member Avatar for tefflox
0
91
Member Avatar for rdubey_jsr

Hi friends, Its my first experience to this forum. can any one help me in reading a csv file into an array and then parse each word seperated by commas. I have csv file which contains rows and columns of record. and i have to read the file into an …

Software Development c++ file-system
Member Avatar for rdubey_jsr
0
4K

The End.