C# Help Blank Title 100416

That did the trick!!

Thank you!!



________________________________
From: stcsgirl <stcsgirl@...>
To: vantage@yahoogroups.com
Sent: Wed, May 11, 2011 11:16:35 AM
Subject: Re: [Vantage] C# Help

Â
Okay --- I think I'm going a bit loopy looking at this code ---

When I do that the colors don't show like I have the syntax right, but then for
the heck of it I tried to see if it complied -- and it did?? I'm going to run
some tests,...but I think I've been trusting the color-coding more than I should

have been.

Live and Learn,...Â

________________________________
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Sent: Wed, May 11, 2011 10:59:48 AM
Subject: Re: [Vantage] C# Help

Â
the syntax inside the split is single quote slash slash single quote.

*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*

On Wed, May 11, 2011 at 11:58 AM, Jose Gomez <jose@...> wrote:

> sNewPartDescription =
> (string)dsPart.Tables["Part"].Rows[0]["PartDescription"];
>
> sNewPartDescription = sNewPartDescription.Split('\\'')[1];
>
>
> That would work as long as the data you want is always after the first \
>
>
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
><http://www.josecgomez.com/feed/>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Wed, May 11, 2011 at 11:47 AM, stcsgirl <stcsgirl@...> wrote:
>
>> sNewPartDescription =
>> (string)dsPart.Tables["Part"].Rows[0]["PartDescription"];
>>
>
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]
Hi there ---
I'm looking for a little programming help,....
I've got a field I want to extract some data from based on delimiters and the
custom code was written in c#.

ex --- (33" \ this is the data I want to grab \ this is the data I don't want)

I want to grab the data in the middle of the '\' --- and sometimes the field
only has the first '\', to make things a bit more challanging.

Thanks in Advance,
Laurie

[Non-text portions of this message have been removed]
String[] data = "ex --- (33" \ this is the data I want to grab \ this is the
data I don't want)".Split('\');

data[1] <= here is your data...
*
*
If its not always on the same position let me know. Also give a better
example. Put the string in between quotes so that we can know what you need.
And if you have more than one example that would be good
*
*
*
*
*Jose C Gomez*


Software Engineer
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Wed, May 11, 2011 at 10:48 AM, stcsgirl <stcsgirl@...> wrote:

>
>
> Hi there ---
> I'm looking for a little programming help,....
> I've got a field I want to extract some data from based on delimiters and
> the
> custom code was written in c#.
>
> ex --- (33" \ this is the data I want to grab \ this is the data I don't
> want)
>
> I want to grab the data in the middle of the '\' --- and sometimes the
> field
> only has the first '\', to make things a bit more challanging.
>
> Thanks in Advance,
> Laurie
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
String.Split function will do it.
It'll cut the string into an array of strings. Just take the 2nd one.

Damn, Gomez was faster.

On Wed, May 11, 2011 at 10:48 AM, stcsgirl <stcsgirl@...> wrote:

>
>
> Hi there ---
> I'm looking for a little programming help,....
> I've got a field I want to extract some data from based on delimiters and
> the
> custom code was written in c#.
>
> ex --- (33" \ this is the data I want to grab \ this is the data I don't
> want)
>
> I want to grab the data in the middle of the '\' --- and sometimes the
> field
> only has the first '\', to make things a bit more challanging.
>
> Thanks in Advance,
> Laurie
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
Ok --- you were both really fast in answering --- thank you!

Here is the code I currently have in my program,...and it grabs the data after
the first '\', but does not take the data away after the second '\', which I do
get I don't have in there to do that, as the reason I'm in here trying to change
that.Â


   sNewPartDescription =
(string)dsPart.Tables["Part"].Rows[0]["PartDescription"];
   sNewPartDescMinusSize =
sNewPartDescription.Substring(sNewPartDescription.IndexOf("\"") + 1) ;

The String.Split sounds just what I need --- not sure how to write that up
correctly -- I'm getting errors.



________________________________
From: Waffqle <waffqle@...>
To: vantage@yahoogroups.com
Sent: Wed, May 11, 2011 9:52:39 AM
Subject: Re: [Vantage] C# Help

String.Split function will do it.
It'll cut the string into an array of strings. Just take the 2nd one.

Damn, Gomez was faster.

On Wed, May 11, 2011 at 10:48 AM, stcsgirl <stcsgirl@...> wrote:

>
>
> Hi there ---
> I'm looking for a little programming help,....
> I've got a field I want to extract some data from based on delimiters and
> the
> custom code was written in c#.
>
> ex --- (33" \ this is the data I want to grab \ this is the data I don't
> want)
>
> I want to grab the data in the middle of the '\' --- and sometimes the
> field
> only has the first '\', to make things a bit more challanging.
>
> Thanks in Advance,
> Laurie
>
> [Non-text portions of this message have been removed]
>

>


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.%c2%a0

(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
sNewPartDescription =
(string)dsPart.Tables["Part"].Rows[0]["PartDescription"];

sNewPartDescription = sNewPartDescription.Split('\\'')[1];


That would work as long as the data you want is always after the first \



*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Wed, May 11, 2011 at 11:47 AM, stcsgirl <stcsgirl@...> wrote:

> sNewPartDescription =
> (string)dsPart.Tables["Part"].Rows[0]["PartDescription"];
>


[Non-text portions of this message have been removed]
the syntax inside the split is single quote slash slash single quote.

*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Wed, May 11, 2011 at 11:58 AM, Jose Gomez <jose@...> wrote:

> sNewPartDescription =
> (string)dsPart.Tables["Part"].Rows[0]["PartDescription"];
>
> sNewPartDescription = sNewPartDescription.Split('\\'')[1];
>
>
> That would work as long as the data you want is always after the first \
>
>
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/> <http://www.josecgomez.com/feed/>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Wed, May 11, 2011 at 11:47 AM, stcsgirl <stcsgirl@...> wrote:
>
>> sNewPartDescription =
>> (string)dsPart.Tables["Part"].Rows[0]["PartDescription"];
>>
>
>


[Non-text portions of this message have been removed]
Okay --- I think I'm going a bit loopy looking at this code ---

When I do that the colors don't show like I have the syntax right, but then for
the heck of it I tried to see if it complied -- and it did?? I'm going to run
some tests,...but I think I've been trusting the color-coding more than I should
have been.

Live and Learn,...Â




________________________________
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Sent: Wed, May 11, 2011 10:59:48 AM
Subject: Re: [Vantage] C# Help

Â
the syntax inside the split is single quote slash slash single quote.

*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*

On Wed, May 11, 2011 at 11:58 AM, Jose Gomez <jose@...> wrote:

> sNewPartDescription =
> (string)dsPart.Tables["Part"].Rows[0]["PartDescription"];
>
> sNewPartDescription = sNewPartDescription.Split('\\'')[1];
>
>
> That would work as long as the data you want is always after the first \
>
>
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
><http://www.josecgomez.com/feed/>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Wed, May 11, 2011 at 11:47 AM, stcsgirl <stcsgirl@...> wrote:
>
>> sNewPartDescription =
>> (string)dsPart.Tables["Part"].Rows[0]["PartDescription"];
>>
>
>

[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]