Advertisement
Advertisement
| 05.09.2008 at 09:01AM PDT, ID: 23389877 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.09.2008 at 09:22AM PDT, ID: 21534372 |
| 05.09.2008 at 09:28AM PDT, ID: 21534429 |
| 05.09.2008 at 09:35AM PDT, ID: 21534494 |
| 05.09.2008 at 09:43AM PDT, ID: 21534568 |
| 05.09.2008 at 09:50AM PDT, ID: 21534627 |
| 05.09.2008 at 10:04AM PDT, ID: 21534747 |
| 05.09.2008 at 10:10AM PDT, ID: 21534797 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: |
string temp = "CX3_CLARIION_ALL_cabrel_200803.doc";
string filename = "";
string product = "";
string location = "";
string reporttype = "";
string period = "";
int i, j;
bool flag1 = false;
bool flag2 = false;
bool flag3 = false;
bool flag4 = false;
for (i = 0; i < temp.Length; i++)
{
filename[i] = temp[(temp.Length - 1) - i];
}
for (i = 0; i < filename.Length; i++)
{
if (flag1 == false)
{
if (filename[i] != '.')
{
}
else
{
flag1 = true; //found the "."
j = 0;
}
else
{
if (flag2 == false)
{
if (filename[i] != '_')
{
period[j] = filename[i];
j++;
}
else
{
flag2 = true; //found the first "_"
j = 0;
}
}
else
{
if (flag3 == false)
{
if (filename[i] != '_')
{
reporttype[j] = filename[i];
j++;
}
else
{
flag3 = true; //found the second "_"
j = 0;
}
}
else
{
if (flag4 == false)
{
if (filename[i] != '_')
{
location[j] = filename[i];
j++;
}
else
{
flag4 = true; //found the third "_"
j = 0;
}
}
else
{
product[j] = filename[i];
j++;
}
}
}
}
}
for (i = 0; i < product.Length; i++)
{
temp[i] = product[(product.Length - 1) - i];
}
product = temp;
//repeat for others
|
| 05.09.2008 at 10:12AM PDT, ID: 21534810 |
| 05.09.2008 at 10:13AM PDT, ID: 21534826 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: |
public String ReverseString(String ToReverse)
{
char[] chars = ToReverse.ToCharArray();
Array.Reverse(chars);
return new String(chars);
}
public void Split()
{
String ToParse = "CX3_CLARIION_ALL_cabrel_200803.doc";
String Doc, Period, ReportType, Location, Product;
Doc = Period = ReportType = Location = Product = String.Empty;
String CurrentString = String.Empty;
for (int i = ToParse.Length - 1; i > -1; i--)
{
Char currentChar = ToParse[i];
if (Doc == String.Empty)
{
if (currentChar == '.')
{
Doc = CurrentString;
CurrentString = String.Empty;
continue;
}
CurrentString += currentChar.ToString();
continue;
}
if (Period == String.Empty)
{
if (currentChar == '_')
{
Period = CurrentString;
CurrentString = String.Empty;
continue;
}
CurrentString += currentChar.ToString();
continue;
}
if (ReportType == String.Empty)
{
if (currentChar == '_')
{
ReportType = CurrentString;
CurrentString = String.Empty;
continue;
}
CurrentString += currentChar.ToString();
continue;
}
if (Location == String.Empty)
{
if (currentChar == '_')
{
Location = CurrentString;
CurrentString = String.Empty;
continue;
}
CurrentString += currentChar.ToString();
continue;
}
if (Product == String.Empty)
{
CurrentString += currentChar.ToString();
if (i == 0)
{
Product = CurrentString;
CurrentString = String.Empty;
}
}
}
Product = ReverseString(Product);
Location = ReverseString(Location);
ReportType = ReverseString(ReportType);
Period = ReverseString(Period);
Doc = ReverseString(Doc);
}
|
| 05.09.2008 at 11:58AM PDT, ID: 21535571 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
string tstString = "CX3_CLARIION_ALL_cabrel_200803.doc";
string product;
string location;
string reportType;
string period;
string[] strArray = tstString.Split('.');
string[] parseArray = strArray[0].Split('_');
product = parseArray[0] + "_" + parseArray[1];
location = parseArray[2];
reportType = parseArray[3];
period = parseArray[4];
|
| 05.09.2008 at 12:04PM PDT, ID: 21535614 |