21 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for adanaz

I am making a text adventure and would like the command line window to be a specific size when you run the .py file in the command line window. eg. 300 wide by 250 height. I found a thread on here that shows how to specify the text colour which …

Member Avatar for DubWine
0
18K
Member Avatar for Mike Askew

Howdy I have a timespan that contain in excess of 24 hours. For the example lets use a value of 1 day 6 hours and 32 minutes. I would like to get this into a string that displays "30:32". Have so far tried something along the lines of `string.Format("{0}:{1}", TimeSpan.TotalHours, …

Member Avatar for Teme64
0
2K
Member Avatar for kxjakkk

I wanted to format this string but I don't know how I can do the formatting part at all. class MyTime: def __init__(self, hrs=0, mins=0, secs=0): self.hours = hrs self.minutes = mins self.seconds = secs if self.seconds >= 60: self.minutes += self.seconds // 60 self.seconds = self.seconds % 60 if …

Member Avatar for sepp2k
0
260
Member Avatar for Pyler

Right now I'm typing in consolas, a favorite font among programmers but as soon as I submit this post, all that I've written will be in Arial. I'm sorry but, I hate Arial. I can't stand the narrow words. I almost always have to stop and examine each word individually …

Member Avatar for ddanbe
0
280
Member Avatar for ObSys

Ok so I'm writing a program that outputs text to a file. Currently, I am writing it to a .TXT file for ease and convenience. Ideally, I would like to output some of the information so that it is formatted with Italics. I'm thinking that using a RTF file would …

Member Avatar for JamesCherrill
0
276
Member Avatar for mavtcr
Member Avatar for G_Waddell
0
959
Member Avatar for diafol

Have a look at this thread... http://www.daniweb.com/web-development/databases/mysql/threads/466095/create-.mdf-file-from-mysql My machine shows seems to reformat this to plain text. So just plain page of text. Using Chrome/W7. Anybody else?

Member Avatar for diafol
0
305
Member Avatar for nikolaos

I am making a project in Number Theory and i want to display some formatting text in a textArea in my Gui. I have a method named padding which takes an integer as an argument and return a String consisitng of a number of spaces. This number is 12 - …

Member Avatar for nikolaos
0
931
Member Avatar for milkman93

Hey Guys, I'm want to output a calculation to a JLabel. Example: double num1 = 14; double num2 = 3; double ans; ans = num1/num2; JLabel jl = new JLabel(); add(jl); jl.setText("The Answer is: " + ans); Currently the answer for this will be 4.666666667. Now if this was a …

Member Avatar for milkman93
0
5K
Member Avatar for dbalas

Hi! Need help with conditional formatting of table rows... What i need to acheave is to change table row background in red if date_needed is <= than 48 hours than now(). This is what i have now `if (date('d',strtotime($data['date_needed'])) <= 2) $row["rowstyle"]='style="background:red"';` it works in a way... It changes background …

Member Avatar for dbalas
0
353
Member Avatar for VIPER5646

Hi all I'm trying to shade a cell based on a date difference between column 7 & 8. It seams to work accept column 8 seams to be the one being shaded instead of column 7. I have googled but can't find a solution to have the calculatin being made …

Member Avatar for john.knapp
0
312
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 debayanmitra

[CODE] Dim mDocDtT As Date Dim mDtPeriod as Integer = 4 mDocDtT = DateAdd(DateInterval.Month, mDtPeriod, mDocDtT) mDocDtT = Format(mDocDtT, "yyyy-MM-dd") [/CODE] But the codes are not working the date is still in #01/27/2011# format I want it in yyyy-MM-dd format Please help!!!

Member Avatar for debayanmitra
0
187
Member Avatar for Gobble45

Hello all, Ive done some googling around, and cant find anything that explains why my date isnt being formatted to what i tell it. my code: dim date_now as date date_now = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") So for example if the date/time is February 11 2015, 4:44:23pm it would be formatted as: …

Member Avatar for Gobble45
0
210
Member Avatar for Ingska

Hi! I am coding a quite simple php form where many of the input forms are going to be filled with numbers. Is there a simple way I could get the numbers separated by thousands? Like the form showing 100 000 instead of 100000? Thanks in advance!

Member Avatar for Ingska
0
276
Member Avatar for cozmo87

I'm writing an application for processing scientific data. The data is displayed in a jTable. I'm done with the data processing itself, now I want to do some conditional formatting to make interpretation easier for the end user. [LIST=1] [*]The last column of the table contains a threshold value, and …

Member Avatar for mKorbel
0
2K
Member Avatar for hailsontherocks
Member Avatar for hailsontherocks
0
122
Member Avatar for ibdatx

Hi all, I have a textblock that is bound to an xml document. This displays the innertext of an xml-node element and the width of the textblock is fixed at "auto". The issue is that of the display as the innertext may exceed the width of the textblock and therefore …

0
91
Member Avatar for Pegster9

I want to PRINT the formatting marks (space, paragraph, soft return). I can view on the marks in my document on screen, but they do not print. I have been to TOOLS, OPTIONS, and VIEW tab, selected ALL under formatting marks this enable viewing. But when I go to PRINT …

Member Avatar for Pegster9
0
227
Member Avatar for muralibobby2015

hello.. i have to do substraction of two php variables which is having datatype varchar. i am trying like this.[CODE] $a=5; $b=3; $c=$a-$b; [/CODE] but for float values [CODE] $a=3000.90; $b=2000; $c=$a-$b; [/CODE] out put is $1000.9. ok even i echo $a i am getting 3000.9 how to get two …

Member Avatar for muralibobby2015
0
85
Member Avatar for jatin24

Hi, Im trying to transfer some text from the richTextBox into an existing MS word template at a specific location. I am able to transfer text to any location i like, but i want to retain the formatting of the text from the richTextBox. Im trying to copy the text …

Member Avatar for jatin24
0
2K

The End.