50 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jeffersonalomia

Does php copy() function can convert a certain file format, let say for example file.pptx convert to file.odp, is it possible?

Member Avatar for cereal
0
705
Member Avatar for hwoarang69

User will enter a date, for example "7/1/2015". Than I will check in database and return some result if match. Note in database there is data/Time but user will enter only date. Below I have a following database set up Table = "workStartTable" |----|------------------------| | ID | StartBy | |----|------------------------| …

Member Avatar for Hardz
0
213
Member Avatar for Mike Askew

So I have recently come across `string.Format("{0, x}", "Word")` for aligning strings, with demonstration code that works fine in the CMD. Does this also function correctly when pumping text to a label? I am finding that it does not behave as expected and instead misaligns the text. Using an example …

Member Avatar for Mike Askew
0
253
Member Avatar for westsiderailway

Hello Everyone, it seems that I cannot see the wood for the trees.... :-) I am having problems with this line of code... StateSQL = "select * from petrol_table where fueldate >= " & "'" & M12S & "'" & " and fueldate < " & "'" & M12F & …

Member Avatar for westsiderailway
0
313
Member Avatar for Doogledude123

So, I've written a Custom Binary Format outline but I'm not sure how to translate it to code. I was looking for a few tips on where to get started? Here's my outline. MAPDATA { signature // U24 0x4D, 0x41, 0x50 (MAP) version // U8 0x01 width // U16 (MAX …

Member Avatar for JamesCherrill
0
828
Member Avatar for ddanbe

I have strings representing an angle, of the format ddd°mm'ss''. I want to get to the three constituents: degrees, minutes and seconds. I first chopped off the seconds like this: `angleString = “ddd°mm'ss''”;` `string str = angleString.Substring(0, angleString.Length - 2);` Then I tried to do this, to get to the …

Member Avatar for JOSheaIV
0
240
Member Avatar for nadiam

Hi guys. i have an event page that displays events from database. in my database I have a column with datetime format. is there a way to only get the date or time separate from each other in a select to be displayed? php: <?php require "connection.php"; $sessid = $_SESSION['sess_user_id']; …

Member Avatar for nadiam
0
2K
Member Avatar for mavtcr

Friends please help me in FORMATTING DATE I have a Form with three text boxes 1.txtNo- Data type-Number 2.txtName-Data type-Text 3.txtDob-Data type -Date format dd/MM/yyyy two buttons one for adding and the other for viewing Using visual data manager I have created a database-Members with table-List having the following Fields …

Member Avatar for mavtcr
0
292
Member Avatar for gbhs

Hi I have a datagrid with 2 columns (Scores(Int) index 0 and Comment(varchar) index 1) Comment columnvalue depends on score columnvalue. This code works well in my cellvaluechanged event If e.ColumnIndex = 0 Then If Not IsDBNull(Me.dgvStudDisc.Rows(e.RowIndex).Cells(e.ColumnIndex).Value) Then If Me.dgvStudDisc.Rows(e.RowIndex).Cells(e.ColumnIndex).Value >= 0 And Me.dgvStudDisc.Rows(e.RowIndex).Cells(e.ColumnIndex).Value <= 5 Then Me.dgvStudDisc.Rows(e.RowIndex).Cells(1).Value = "Very …

Member Avatar for gbhs
0
2K
Member Avatar for IT_Techno

Hi iam using sql server 2008 to deal with my DB, i have a column with 'int' data type when i insert number inside that column like "0025648" it return it to me "25648" without zeros why ? and how to solve this problem ? Best Regard IT_Techno

Member Avatar for IT_Techno
0
200
Member Avatar for ImZick

Hi i'm having a trouble with this i got 3 textbox and i format it to Textbox1.Text = Format(Textbox1.Text, "Standard") Textbox2.Text = Format(Textbox2.Text, "Standard") Textbox3.Text = Format(Textbox3.Text, "Standard") which give something like this 1,230.00 2,500.00 1,245.00 and when i add it `Textbox4.text = Val(Textbox1.Text) + Val(Textbox2.Text) + Val(Textbox3.Text)` the result …

Member Avatar for ImZick
0
234
Member Avatar for A Haunted Army

hey, just looking for a bit of advice on code readability, i've figured out a new and i hope better way to handle collisions but the when reviewing the code it all just blurrs together for me so is there some format teckneuqies i can use so its easier for …

Member Avatar for A Haunted Army
3
252
Member Avatar for code739

hi, i have a table in database that contains birthday column varchar()- i choose varchar because ecoder could input birthday like 1. 1993-14-03 2. 1993-03-14 3. March 14 4. March 14,1993 5.etc.... Now my problem i want to detect what month is their birthday could some help me?

Member Avatar for code739
0
196
Member Avatar for Lethugs

Hi, I let say I use this code to retrieve date from database SELECT Table.Date FROM Table The format is 01/09/2013 (dd/mm/yyyy) How will i format this to get 09-Jan-2013 output then print this format to crystal report? I'm using dataset to connect data to crytal report I just noticed …

Member Avatar for Lethugs
0
430
Member Avatar for themaj

I am trying to insert new records into an Access DB and getting some weird stuff. I get the data from a DBF table and load that into a dataset table and DataGridView with no problems. Then I loop through the ds.table and insert it into the DB with this …

Member Avatar for Reverend Jim
0
201
Member Avatar for ar123

Hi there! I am new to daniweb.com and C++ CLI. I am trying to make a program that will tell the user the text for the ListItem number they type in. The ListItem information is stored in a text file with my custom file formatting, which is: <~ListItem 1> text.... …

Member Avatar for ar123
0
281
Member Avatar for amitash

Hi, I want to store today value in a string in VBA Word, e.g. today is Oct 04 2012, the string will be = "04102012". Any simple code can achieve that? Thanks!

Member Avatar for AndreRet
0
287
Member Avatar for Ritesh_4

Hello, am working with the date function in a php file, however the text "at" is not being rendered properly: Initial code: "Online reservation form submitted on " . date ("d/m/y \at\ H:i") . "\n\n" . Rendered value: Online reservation form submitted on 29/09/12 a30 11:52 Where instead of "at" …

Member Avatar for Ritesh_4
0
155
Member Avatar for magicmarkuk

Hi I have a script which displays a price but currently is not fixed to 2 decimal places so a price such as $2.50 shows as $2.5 which to me looks wrong. The line of code is `amount += parseFloat($(this).metadata().amount);` Looking around I see there is a function `toFixed()` but …

Member Avatar for Troy III
0
213
Member Avatar for hwoarang69

warning: int format, pointer arg (arg 2) i have no pointers this function :( main.. functions.... functions. int test(char num) { int total[SIZE]; printf("%d",total); fflush(stdout); //no pointers return 0; }

Member Avatar for deceptikon
0
231
Member Avatar for Begginnerdev

Hello my fellow daniwebbers, I have yet another question. I have a date, which is pulled from a database, that I need to convert to another form of that date. Example. Date1: 1/2/2001 Date2: 01/02/2001 What i am wanting to do is turn the current date format into two digit …

Member Avatar for Begginnerdev
0
158
Member Avatar for razamughal67

Hello to all i want to format usb drive in vb6 we use a drive box 1 command botton 2 labels 1 check box and 1 loading bar we want to do when i select a drive in drive box example: D:\ Drive the label caption show drive memory size …

Member Avatar for Jx_Man
0
457
Member Avatar for darkelflemurian

Hello everyone, i have the following problem and I come here looking for some advice. I am using c#, but i have a dll that creates the excel file in Visual Basic. i have a datagridview and the information there is exported to excel file. No problem there. the problems …

Member Avatar for darkelflemurian
0
459
Member Avatar for yongj

I'm trying to validate the correct format for a phone number in a text box: (000) 000-0000 For a test, i made it so that a messagebox shows up saying "correct" if the format is correct. This test works well WHEN the format is correct. BUT when the format IS …

Member Avatar for nitin3
0
3K
Member Avatar for jbutardo

Hi, I just want to know how can vb.net validate the format of a certain string for example, i have a string with 2011/13/02, and I want to check if it's format is in yyyy-dd-MM format,. how can this be done? Thanks

Member Avatar for Reverend Jim
0
2K
Member Avatar for softDeveloper

Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next …

Member Avatar for softDeveloper
0
194
Member Avatar for aishapot

How can I simply format the contact number in vb.net The format that I want is (123)456-78-95 Thank You.

Member Avatar for M.Waqas Aslam
0
193
Member Avatar for sibymary

hi,i want to insert date into mysql table..but the date must not be current date.for example if i am giving 12-3-2003.then ,this date should be insert into the database...... thanks advance

Member Avatar for pritaeas
0
72
Member Avatar for ebanbury

Hi Can anyone see what is wrong with this: [CODE]<?php echo date_format($row_rs_propdetails['add_date'],'Y-m-d'); ?>[/CODE] The error message I get is: Warning: date_format() expects parameter 1 to be DateTime, Any help would be much appreciated. Basically wanting to bring back the date in add_date column, but just the y-m-d with no time. …

Member Avatar for mschroeder
0
215
Member Avatar for charlybones

Greetings. Ok so my problem is that I get a "Currency" formatted value from the database and this value sometimes comes as a whole number (without decimals) and sometimes it doesn't. But, when I output the information as "string" into an XML File, I [B][I]always need to show the 2 …

Member Avatar for charlybones
0
213

The End.