199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for stefh

Hi every one! :) Based on the example of StyledTextCtrl of the wxPython demo i managed to write a small application intended to Php code writing. Does anyone know how to set styles for Php codes? I found it's necessary to use SetLexer(stc.STC_LEX_HTML) because STC_LEX_PHP is deprecated. But i have …

Member Avatar for stefh
0
440
Member Avatar for arezz09

anybody know how to upload or set piture into windows form using code..i want create a button like browse that can chnge background and every i relaunch application,bckground is still there..please anybody..

Member Avatar for codeorder
0
295
Member Avatar for manish250

Hello all I am using reading a config file in which there is a entry [CODE]code_list="515,522,560,000" [/CODE] while i am reading this string in my java application and using split on it and then assigning it to a string[].it is giving null pointer exception.needed code is as follows [CODE] static …

Member Avatar for manish250
0
2K
Member Avatar for doctorkasim

Any one would help me out to develop a code for a program to convert number from any base to any base..?

Member Avatar for doctorkasim
0
95
Member Avatar for deolalkar_pooja

Hi to all, I created following table ------------------------------------------------------------------- create table interiors(id integer, name varchar(20), type varchar(20) default 'baby cot', price integer) -------------------------------------------------------------------- but, when i doesn't inserted any value of 'type', by the definition of table, it should take default value. when i fetch all rows by 'select' query, it …

Member Avatar for BitBlt
0
107
Member Avatar for fka

My array $pids contains integers. For example: 18742 59274 94255 97124 18742 94255 94255 I wrote: [CODE]$pid = array_unique($pids); for($i=0; $i<count($pid); $i++) echo $i.' '.$pid[$i].'<br />';[/CODE] And the output is: 0 18742 1 2 3 What's wrong? Why array_unique() doesn't throw away duplicated values?

Member Avatar for smantscheff
0
101
Member Avatar for EricIskhakov

Hey. i'm uploading a file to my server via php and the file name is en email (x@x.com) and after the upload the files saves as x_x.com anyone knows why? is it something in the php.ini or maybe its a code thing? Thanks in advance.

Member Avatar for EricIskhakov
0
106
Member Avatar for ahmed_fawzy

Please Urgent help....! the difference between float and double... but a Detailed one.... because it makes me confusing and i'll be very grateful....

Member Avatar for JamesCherrill
0
151
Member Avatar for nonshatter

Howdy, I have a basic html file containing certain data I need to extract. This is the code for just one of the tables on the page: [CODE]<TABLE title="Left Magazine"class="dataTable" align="center" cellspacing="0" cellpadding="0"> <caption>Media Details</caption><THEAD><TR class="captionRow"><TH>Slot #</TH><TH>Attn</TH><TH>Status</TH><TH>In Drive</TH><TH>Label</TH><TH>Media Loads</TH><TH>Comment</TH></TR></THEAD> <TBODY> <TR class="altRowColor" > <TD>1 </TD> <TD>&nbsp;</TD><TD>Full, Gen. 3 </TD> <TD>&nbsp;</TD> …

Member Avatar for Ezzaral
0
210
Member Avatar for kidinbed

I'm trying to create a back end for a food truck whose menu constantly changes. I want to make a form that can update text on another page. I'm new to PHP. I think I need a way for the form to update html. So far I have the form …

Member Avatar for kidinbed
0
277
Member Avatar for junioryz

The source code is here: [url]http://www.policyalmanac.org/games/aStarTutorial.htm[/url] Can anybody help as to what code needs to be added to enable this pathfinding algorithm to work with a isometric 2d tile map which is based completely on this XNA tile map tutorial: [url]http://www.xnaresources.com/default.asp?page=Tutorial:TileEngineSeries:4[/url]. I just need a working pathfinding for isometric map …

Member Avatar for TheRealOrder
0
274
Member Avatar for nimchip

Hi I'm trying to design something from the ground up, using several php sources as inspirations (as indicated by the TPL suffixes). I can't get it to work so please if you could indicate what I'm doing wrong here: [CODE]<?php if (!isset($_GET['page'])) { $page = "news.php"; include ($page); } else …

Member Avatar for nimchip
0
118
Member Avatar for draven07

..I am trying to create an ATM-like java applet program that will enable a user to check for their balance, make a deposit and withdraw a certain amount.. ..The program will require a swipe card number(as if it is was a real ATM) but should be already included in the …

Member Avatar for JamesCherrill
0
92
Member Avatar for andrewliu

Hello, I have these div tags, they're very similar but I just need to change the IDs. Is there anyway to condense this code? [CODE] $(document).ready(function(){ //Full Name var changeName = $('#changeName'); var cancelName = $('#cancelName'); var fullnameDisplay = $('#fullnameDisplay'); var fullnameChange = $('#fullnameChange'); var helperName = $('#helperName') changeName.click(function(){ $(this).hide(); …

Member Avatar for andrewliu
0
156
Member Avatar for Mike Askew

The program is currently trying to pull information from three different database tables and compiling the information onto one screen, to do this i am using three different connections and a function to handle the data at each stage. The issue is as my code hits PageLoadStage of "2" and …

Member Avatar for Mike Askew
0
150
Member Avatar for Aser Gado

Hello again :D Now that I have my member's profile, how can I let other members post comments/messages on his profile? Thanks,

Member Avatar for stefh
0
112
Member Avatar for iamcreasy

What is the difference between Structure and Class? Is there are any particular situations when I should use what? Once I implemented Binary search tree using structure. Now, I am trying to implement Red black tree using Class? But many discourages using class in this kind of situation, they say …

Member Avatar for Narue
0
138
Member Avatar for AngelicOne

I have two combobox, which is 'names' and 'types' and it's being populated by a dataset. It contains an additional item "-- ALL --" to indicate that all items of a particular field are being shown. I have an SQL select statement to filter the records according to the selected …

Member Avatar for Momerath
0
138
Member Avatar for Labdabeta

I have made a header file for SDL GUI applications. I was testing the SDLGame::Draw() function when I got a SigSegV fault. The fault occurs in different locations each time I run the program. Also sometimes instead of a SigSegV fault I get a SigTrap fault. Here is the code …

Member Avatar for Labdabeta
0
881
Member Avatar for AngelicOne

How to select records with today's event? I have a column that is set to smalldatetime. I need to select those that have a row of today's event.

Member Avatar for Momerath
0
247
Member Avatar for hanvyj

Hi, I'm wondering what which IDEs people use to develop C++ with. I am learning c++ from a background in Java, I am used to eclipse and recently installed Visual Studio. Now, eclipse comes with loads of auto-complete stuff. For example If i write a function and it doesn't exist …

Member Avatar for hanvyj
0
135
Member Avatar for Amillia89

[CODE]import javax.swing.*; import java.sql.*; import java.awt.*; import java.awt.event.*; import java.lang.*; class Main extends JFrame { public Main(String st) { setLayout(null); setDefaultCloseOperation(javax.swing. WindowConstants.DISPOSE_ON_CLOSE); JLabel lab=new JLabel("Welcome "+st+"!! \n Click OK to Continue"); JButton OK = new JButton("OK"); OK.setMnemonic('k'); OK.addActionListener( new ActionListener() { JButton OK; public void actionPerformed(ActionEvent e) { [COLOR="Red"] Main();[/COLOR] …

Member Avatar for JamesCherrill
0
147
Member Avatar for AngelicOne

There's an error saying that the combobox is already b, inded to a datasource, thus cannot add new items. This is how I populate my combobox [CODE] cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "usp_distinctevent"; cmd.Connection = con; da = new SqlDataAdapter(); da.SelectCommand = cmd; ds = new …

Member Avatar for Mitja Bonca
0
360
Member Avatar for lmbdx

Hi, I actually don't really know where I should post this question so please forgive me if it's in the wrong discussion section. Basically, I'm developing a CUDA program to calculate the FFT power spectrum of a series of images which are captured continuously and want to show the power …

Member Avatar for lmbdx
0
173
Member Avatar for someone5
Member Avatar for bettybarnes

pls help me with auto generated alphanumeric pk say i want my customer id to be like these CUST00001 CUST00002 CUST00003 CUST00004 any help is a great help.! Blessings!

Member Avatar for CodeWord
0
2K
Member Avatar for Arjun_Sarankulu

I have generated a utility to take a csv file and dump the data from csv to database. The utility is working fine. Now i want to add the categatory in the combo box which will come dynamically Due to categorised value the data will go in the respective table …

Member Avatar for akshintlakalyan
0
104
Member Avatar for cableguy31

Here is what I need to do. I have a very small C program that takes user input and passes argv to a function written in GNU assembly language that will then count the number of characters in the string. The function seems to work fine when I enter a …

Member Avatar for untio
0
3K
Member Avatar for jacob21

Hello friends, I want to know how to open a pdf file in PHP when a user clicks on that pdf link. Like [B][U]Rules pdf [/U][/B]when a user click that link,in the next tab pdf file of rules will open Thanks

Member Avatar for smantscheff
0
126
Member Avatar for tendaimare

[code] Dim Conn_web As SqlConnection Conn_web = MyFormz.connec.ConnWeb2(dbName) Conn_web.Open() Dim sqlcmd_Insert As New SqlCommand(sql_Insert1 + sql_Insert2, Conn_web) Try sqlcmd_Insert.ExecuteNonQuery() MsgBox("The New Record has been saved.") Catch ex As Exception MsgBox(ex.Message) End Try [/code] [code] Sub Insert_New_Converts_Followups(ByVal strFollowup_No As String, ByVal strFollowup_Date As String, ByVal strFollowup_By As String, ByVal strFollowup_Response As …

Member Avatar for tendaimare
0
145
Member Avatar for abelingaw

What i wanted to do is to limit the number of users to be registered for my system. One for User type and one for Administrator account, and if there is already a user and admin account, adding will be disabled, else, enabled. Here's the code im using. [CODE]Private Sub …

Member Avatar for AndreRet
0
156
Member Avatar for abhi10kumar

How I can write down a code which uses two Two AJAX-es in combo-boxes? For [B]Country[/B], when user clicks Country combo-box, [B]State Combo-box[/B] will fetch with respective Country, and if when user clicks [B]State combo-box[/B], [B]cities Combo-box[/B] will fetch with respective State. All data will came from database. I successfully …

Member Avatar for happytogether
0
203
Member Avatar for Layerphp

Hi i have developed a photo gallery in php and now i want to add comment section to those photos in the gallery.Actually i have table to store the comments regarding the particular image.I'm able to retrive the recent comments for the image,but the problem here is i'm not getting …

Member Avatar for pritaeas
0
157
Member Avatar for emaduddeen

Hi Everyone, In my form there is a "Validating" event on a textbox. This form also has a "Cancel" button. Is there a way to not execute the "Validating" event when the user clicks on the "Cancel" button? Please show me code to do this. Thanks. Truly, Emad

Member Avatar for emaduddeen
0
1K
Member Avatar for kodera

I have a class file with my method to read for prime numbers in my text document, and then my main java file calls on it using the file input code. I am lost in my code, and not sure what is going wrong, because it just reads out 0 …

Member Avatar for ~s.o.s~
0
150
Member Avatar for ajinkya112

Hey guys, I am trying to write down a code for generating 'ID' automatically and then store it in table. There some errors, i couldn't rectify. This is my code : [CODE] int ctr = 1; int len; DataTable dt = new DataTable(); DataRow dr; DataSet ds = new DataSet(); …

Member Avatar for Momerath
0
136
Member Avatar for Sheena26

guys i really need your help about my project anyone can help me i will appreciate it because its due on 3/3/11. thank you and GOD bless! 1.Write a program that takes a one-line sentence as input and outputs the following response: If the sentence ends with a question mark …

Member Avatar for peter_budo
0
613
Member Avatar for narendera22

Hi My one applicaton using sqlldr utility to load data in database from flat text file. Now there are change in table name. I open this .ctl file in text pad and made changes but its not working. I am providing flat file name and other file name as a …

Member Avatar for Momerath
0
157
Member Avatar for 123mehran

Hi i want when no item selected after Submit show this message "Nothing Selected" what should i do ? Thanks [CODE]Protected Sub Btnsub_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Btnsub.Click lblresult.Text = "You Chose:<br/>" Dim Lstitems As ListItem For Each Lstitems In CheckBoxList1.Items If Lstitems.Selected Then lblresult.Text &= …

Member Avatar for MamathaS
0
158
Member Avatar for thijscream

when i try to update my table i get the following error: Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Beste witte wijnmaker van de wereld' door het toonaangevende Engelse Wine …

Member Avatar for happytogether
0
117
Member Avatar for deolalkar_pooja

Hi to all, I created the following table --------------------------------- create table publisher(name varchar(20), city varchar(20)) --------------------------------- I want to put following constraint, 'name is having unique with city taken only from 'mumbai', 'pune', 'nasik', 'panji''. I know about unique constraints with name. I searched many about constraint with city, but …

Member Avatar for smantscheff
0
98
Member Avatar for carlitosway17

Hey Guys, I am working on an assignment where we are supposed to output the date in different formats for example, month, date, year or date,month year, I have implemented a method to change for the arrangement of dates, It builds successfully but has errors when it runs plus it …

Member Avatar for mKorbel
0
191
Member Avatar for doomas10

Hello all, just a quick question! I was wondering how can you pace lines together in python. In my case i have a file like this: [CODE]<word> <word> <number>.txt <word> <word> <number>.txt <word> <word> <word> <number>.txt <word> <word><word><word> <number>.txt <word> <word> <number>.txt <word> <number>.txt <word> <word> <number>.txt [/CODE] Does anyone …

Member Avatar for doomas10
0
212
Member Avatar for sj5536

hi i have to read tif File using java file has 3 pages and take first two page of that file and create new tif file with different name can u suggest me how should i start

Member Avatar for peter_budo
0
309
Member Avatar for thijscream

i'm having 2 select boxes, if i change the first one i would like a 2nd select box to change the content, everything is comming from a database. not xml because i want everything to be stored in a database for. is this possible with an onchange command or something? …

Member Avatar for thijscream
0
116
Member Avatar for Aser Gado

Hey there, Now I have my member Logged in, now After he logs in he is taken to his profile, now I want to Show his Full name and Email... knowing that I already created a database and everything... here is the code im talking about: [CODE] $result = mysql_query("SELECT …

Member Avatar for Aser Gado
0
284
Member Avatar for paulablanca

Hello! Can someone help me? I need to get the product of the 2 columns in the same row but my problem is the values of my datagridview come from database and the number for rows is not fixed. Thank you very much and God Bless. :)

Member Avatar for paulablanca
0
78
Member Avatar for Szeth

Hello Everyone, I have a random number game program that I need to change to use a Class with a constructor. This is my first attempt at using these things, and the instructor hasn't been much help. I watched all of antiRTFM's videos up to video #37, but using constructors …

Member Avatar for ravenous
0
376
Member Avatar for anita_86

Hi!! This is some of the code I am using to add dynamic rows when user clicks the Add Row button.I want to show the calculated amount like: line_total=qty*unit_price; sub_total=total of line_total; total=sub_total+tax-advance; [CODE]<script type="text/javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; if(rowCount<3) { var row …

Member Avatar for diafol
0
114
Member Avatar for hairpull

This code randomly generates 4 lottery tickets and prints them on seperate lines. The code works, but what if I wanted this to print for 100 lottery tickets? Is there a way to write this with less lines of codes? Would using a for loop work? [CODE] import java.util.Collections; import …

Member Avatar for hairpull
0
254

The End.