10 Topics

Member Avatar for
Member Avatar for pipelian

My form has a TextBox with values like(e.g: P011112, C0212102) those are products lot numbers that the user enters. Then, what i want is that a DateTimePicker takes the first 4 digits as "MM-yyyy" and add 3 years to that date. Example: TextBox.text = P011112 DateTimePicker = January, 2014 Thanks …

Member Avatar for pipelian
0
317
Member Avatar for Walther1366

Hello All Here is my problem : I have 3 variables 1. month 2. year 3. day all three of those variables have numeric values for example month = 04 year = 89 day = 17 I want to display it like this : 17 Apr 1989 Here is what …

Member Avatar for Walther1366
0
174
Member Avatar for Uni

I am supposed to read a text file containing "lyrics", then format it out based on special symbols like +,-,[] and spaces. Here's the lyrics syntax: [B]Spaces are significant:[/B] A single space between two words makes the two words go in two successive beats. Each additional space causes the lyric …

Member Avatar for Uni
0
126
Member Avatar for CrazyProgrammer

Hi, could someone help me work out how to write this format expressions it goes something like [CODE] displayBox.AppendText(string.Format("{0,-20}{1,0}\n", add11, add21)); displayBox.AppendText(string.Format("{0,-20}{1,0}\n", add12, add22)); displayBox.AppendText(string.Format("{0,-20}{1,0}\n", add13, add23)); displayBox.AppendText(string.Format("{0,-20}{1,0}\n", add14, add24)); [/CODE] the problem im having is that when add14 is empty add24 doesn't align properly with add22, add21, and add23 …

Member Avatar for Momerath
0
91
Member Avatar for justinwarner

Hey, So, I have a class that has a bunch of info, the usual set/get methods. But my question is, I'm adding them all together in another method, and I don't know how you get it all in a nice table like format, with all the columns/rows being equal and …

Member Avatar for justinwarner
0
135
Member Avatar for Mouche

Hello, I'm working on a project in C to practice before I take a class this fall that requires C. I decided on making a task list. First, I'm starting with a cli interface, and then I hope to move it to GTK+ since that would look better and I …

Member Avatar for Mouche
0
604
Member Avatar for saransh60

hi i want ask how things get copied when i assign one object s1 to the another object s3(s3=s1)of the same class string in the following given example,also tell why constructor 1 needs to be initialized like str[0]='\o' ..thanks in advance [code]#include<iostream.h> #include<string.h> #include<conio.h> const int max=80; class string { …

Member Avatar for sfuo
0
112
Member Avatar for golansha

Hi, I have a string that might include a date as substring. For example the string may be "Oct 23, 2008 16:41:58 GMT Unassigned". I would like to check if a substring of the given string can be converted to a date. I tried using: [code] public static bool IsDate(String …

Member Avatar for nick.crane
0
850
Member Avatar for HoboConductor

Hello new to the forum, I've been learning and working with C++ for a few months now and I've started to learn how to use strings. What I'm trying to do is take each individual line from a text file and dissect all blocks of text separate by a space …

Member Avatar for caut_baia
0
2K
Member Avatar for =OTS=G-Man

Hello, I am having the hardest time getting my strings to format right I want it to only show the first 14 chars of the string. sounds simple, but I think ive been looking at the code to long to see where im messing up :). here's the code I …

Member Avatar for sknake
1
181

The End.