Click here to Skip to main content
15,899,126 members
Home / Discussions / C#
   

C#

 
GeneralRe: Event on receiving data? Pin
Sebastian Schneider8-Apr-05 0:59
Sebastian Schneider8-Apr-05 0:59 
GeneralRe: Event on receiving data? Pin
Snowjim14-Apr-05 8:23
Snowjim14-Apr-05 8:23 
QuestionAutofilter in a Dropdown box? Pin
DEWright_CA7-Apr-05 12:16
DEWright_CA7-Apr-05 12:16 
GeneralInstantiation using Reflection Pin
Alexandre Brisebois7-Apr-05 9:54
Alexandre Brisebois7-Apr-05 9:54 
GeneralFunction Help! Pin
DEWright_CA7-Apr-05 9:50
DEWright_CA7-Apr-05 9:50 
GeneralRe: Function Help! Pin
DavidNohejl7-Apr-05 10:56
DavidNohejl7-Apr-05 10:56 
GeneralRe: Function Help! Pin
DEWright_CA7-Apr-05 11:03
DEWright_CA7-Apr-05 11:03 
GeneralRe: Function Help! Pin
DavidNohejl7-Apr-05 11:22
DavidNohejl7-Apr-05 11:22 
I see. If you really want both parts of a input as strings, String.Split returns array of strings (delimitered by chars in argument you passed to this method). So
public static void tiers()
{
string tier_temp = "124.5"; //Session Var passed from queryform
if(tier_temp.indexOf('.')>=0)// has "."
{
string [] parts = tier_temp.Split(new char[]{'.'});
string tier_fr = parts[0];//extract number to left of ".";
string tier = parts[1];//extract numbers to right of ".";
}
else
{
string tier_fr = "0";
string tier = tier_temp;
}
}


is almost direct translation of your example. I don't say this code is optimal or secure! Just an example...

DEWright_CA wrote:
I am very new to C# and trying to learn durring project development so please be patient with me!

That's ok.

David

Never forget: "Stay kul and happy" (I.A.)

David's thoughts / dnhsoftware.org / MyHTMLTidy
GeneralRe: Function Help! Pin
DEWright_CA7-Apr-05 11:48
DEWright_CA7-Apr-05 11:48 
GeneralEvents from GUI Pin
Member 15698107-Apr-05 9:35
Member 15698107-Apr-05 9:35 
GeneralRe: Events from GUI Pin
DavidNohejl7-Apr-05 11:23
DavidNohejl7-Apr-05 11:23 
GeneralRe: Events from GUI Pin
C_Simpkins7-Apr-05 13:55
C_Simpkins7-Apr-05 13:55 
GeneralRe: Events from GUI Pin
Member 15698108-Apr-05 5:42
Member 15698108-Apr-05 5:42 
GeneralRe: Events from GUI Pin
C_Simpkins8-Apr-05 7:31
C_Simpkins8-Apr-05 7:31 
GeneralGet Programs from systray Pin
Dispulse7-Apr-05 9:17
Dispulse7-Apr-05 9:17 
GeneralRe: Get Programs from systray Pin
Sebastian Schneider7-Apr-05 20:02
Sebastian Schneider7-Apr-05 20:02 
GeneralRe: Get Programs from systray Pin
Dispulse7-Apr-05 21:53
Dispulse7-Apr-05 21:53 
GeneralC# storing MS word into ms Access as doc. Pin
remenard7-Apr-05 9:15
remenard7-Apr-05 9:15 
QuestionCand find DataReceived on SerialPort class? Pin
Snowjim7-Apr-05 8:28
Snowjim7-Apr-05 8:28 
GeneralEditing/Creating Group Policies in XP through C# Pin
Schleichermann7-Apr-05 7:15
Schleichermann7-Apr-05 7:15 
GeneralRe: Editing/Creating Group Policies in XP through C# Pin
Dave Kreskowiak7-Apr-05 9:31
mveDave Kreskowiak7-Apr-05 9:31 
GeneralRe: Editing/Creating Group Policies in XP through C# Pin
Schleichermann7-Apr-05 9:53
Schleichermann7-Apr-05 9:53 
GeneralRe: Editing/Creating Group Policies in XP through C# Pin
Dave Kreskowiak7-Apr-05 12:17
mveDave Kreskowiak7-Apr-05 12:17 
GeneralGeneral question about file updating Pin
Member 18639967-Apr-05 7:00
Member 18639967-Apr-05 7:00 
GeneralRe: General question about file updating Pin
Colin Angus Mackay7-Apr-05 12:45
Colin Angus Mackay7-Apr-05 12:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.