5 Replies - 286 Views - Last Post: 08 December 2011 - 05:05 PM Rate Topic: -----

#1 sportygrl34  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 07-December 11

question on string techniques

Posted 08 December 2011 - 01:17 PM

I'm doing this project in visual basic 2010 and I am trying to write short little codes with buttons, labels and text boxes. However I am having an extremely hard time trying to figure this. I need help with the TrimStart Method, Trim End Method, Remove Method, PadLeft method, PadRight Method, Insert Method, StartsWith method, Endswith Method, Contains method, IndexOf Method, StringCompare Method, Like Operator and ==,<>,<,<=,>,>= . Ones not listed I did on my own Im just having trouble with these... This is what it should basically look like...



Private Sub btnLengthProperty_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLengthProperty.Click
lblLengthPropertyOutput.Text = CStr(txtLengthProperty.Text.Length)
End Sub



Anything is helpful to me! Please help! New to this! :) Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: question on string techniques

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8376
  • View blog
  • Posts: 31,134
  • Joined: 12-June 08

Re: question on string techniques

Posted 08 December 2011 - 02:06 PM

... so exactly what do you need help with? I don't quite get your question.
Was This Post Helpful? 0
  • +
  • -

#3 DimitriV  Icon User is online

  • >not activating your almonds
  • member icon

Reputation: 561
  • View blog
  • Posts: 2,676
  • Joined: 24-July 11

Re: question on string techniques

Posted 08 December 2011 - 03:57 PM

View Postsportygrl34, on 09 December 2011 - 06:17 AM, said:

I'm doing this project in visual basic 2010 and I am trying to write short little codes with buttons, labels and text boxes. However I am having an extremely hard time trying to figure this. I need help with the TrimStart Method, Trim End Method, Remove Method, PadLeft method, PadRight Method, Insert Method, StartsWith method, Endswith Method, Contains method, IndexOf Method, StringCompare Method, Like Operator and ==,<>,<,<=,>,>= . Ones not listed I did on my own Im just having trouble with these... This is what it should basically look like...



Private Sub btnLengthProperty_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLengthProperty.Click
lblLengthPropertyOutput.Text = CStr(txtLengthProperty.Text.Length)
End Sub



Anything is helpful to me! Please help! New to this! :) Thanks

The code you provided can be simplified:
lblLengthPropertyOutput.Text = txtLengthProperty.Text.Length.ToString()

This basically returns a String representation of the length Integer.
Was This Post Helpful? 2
  • +
  • -

#4 sportygrl34  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 07-December 11

Re: question on string techniques

Posted 08 December 2011 - 04:18 PM

thanks! now the only ones im stuck on how to do is TrimStart Method and TrimEnd Method.. im trying to use textboxes and message boxes or labels anything to have a user input data and then have the computer output it!
Was This Post Helpful? 0
  • +
  • -

#5 DimitriV  Icon User is online

  • >not activating your almonds
  • member icon

Reputation: 561
  • View blog
  • Posts: 2,676
  • Joined: 24-July 11

Re: question on string techniques

Posted 08 December 2011 - 04:40 PM

View Postsportygrl34, on 09 December 2011 - 09:18 AM, said:

thanks! now the only ones im stuck on how to do is TrimStart Method and TrimEnd Method.. im trying to use textboxes and message boxes or labels anything to have a user input data and then have the computer output it!

TrimStart method:
http://www.google.co...cEKJF8rhu5LQ71g
TrimEnd:
http://www.google.co...GSGL2QcziN2ZsWw
And I noticed you said you had trouble with the Contains method, are you still?
Was This Post Helpful? 0
  • +
  • -

#6 sportygrl34  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 07-December 11

Re: question on string techniques

Posted 08 December 2011 - 05:05 PM

i got it all figured out! Thanks :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1