Thanks again Plater, you've been a great help.
Wbosw
User Profile
Collapse
-
My situation is like #1:
So I want to turn ( tReEGHp) into ( pHgEERt ) that would be positions 1,3,4,5.
would ReverseLowerCas e[i]= ReverseUpperCas e[i]; work in this situation, because it's on odd number of positions. if so, thanks in advance
WboswLeave a comment:
-
VB.Net Looping Issues
I'm trying to take a word (stEAdy) and find the index positions of the uppercase characters(2,3) in the word. I have them stored in an array (positionarray) . Then I reverse the word and set all characters to lowercase. I've done that. Now, I want to take the reversed word (ydaets) and make the index positions from the array(2,3) uppercase for the reversed word, so that it will read (ydAEts). Below I'm looping thur the array incorrectly. I'm... -
Thanks Plater, I looked a little closer myself and found why it was receiving the Null reference.
Thanks again,
WboswLeave a comment:
-
ReverseText is scoped at the class level. The integer variable RevLen is holding ReverseText.Len gth.
Where do you specify what ReverseText is?
Code: ( vbnet )
For Each item As Integer In PositionArray
Dim RevLen As Integer
RevLen = ReverseText.Len gth
Dim j As Integer
Dim char2 As Char
For j = 0 To RevLen - 1
char2 = ReverseText.Cha rs(j)...Leave a comment:
-
VB.NET: Object reference not set to an instance of an object
I'm receiving an object reference not set to an instance of an object on the
( RevLen = ReverseText.Len gth) line of code. Can anyone help with this problem?
Thanks,
William Boswell
For Each item As Integer In PositionArray
Dim RevLen As Integer
RevLen = ReverseText.Len gth
Dim j As Integer
... -
VB.Net Regex finding multiple capital letters in a word
I'm trying to create a regex to find more than one capital letter position within a word. The below regex, finds the first capital letter in the word and returns the index for that character. I would like to find both capital letter positions in the word heLLo and return both positions. Does anyone have any suggestions.
Thanks in advance,
Wbos
Public Function FindPosition(By Val word As String)
... -
There are no spaces between the words, the string is split into an array and each word is an item within the array. I loop through the array and reverse the words.
WbosLeave a comment:
-
Capitalizing String or Char by position ( vb.net)
I have a string " Hello World ", I've reversed the string to " olleH dlroW " now I would like to change the position of the Capitalized letters to Olleh Dlrow. By the way I do not want to capitalize the first letter of every word, I want to replace the capitalization by position such as wAiter to rEtiaw. Does anyone have any suggestions?
Thanks,
Wbosw -
-
-
-
Fellows,
I was not able to get either one of the suggestions to work.
Thanks anyway
WboswLeave a comment:
-
DataTable filter expression issue
I'm trying to filter the datatable at runtime from data selected from dropdown listboxes and a texbox. I place the values into variables and use the variables in the filter expression. However, this does not work even though the variavbles contain the right values. See the following code.
Dim x As String = Me.ddlSearchSki ll1.SelectedVal ue
Dim y As String = Me.ddlSkillLeve l1.SelectedItem .Text
... -
DataTable columns "not found" when filtering datarows
I created the following Sub to fill a DataSet with the Table named Developer. It binds to the Grid with no problems.
Public Sub SearchSkills()
Dim sqlcmd3 As SqlCommand = New SqlCommand
sqlcmd3.Command Text = "SELECT DeveloperId, SkillsID, Name, SkillLevel, MonthsExperienc e, Skills FROM vDeveloperSkill s"
sqlcmd3.Connect ion = connection
... -
raiwozen
Here is the VB.Net code for comparing two arrays and removing the item from one array. I didn't have the C# code handy, but you should be able to convert this example without any trouble.
For Each item As String In arraylist 'item one
For Each item2 As String In arraylist2 'l two
Dim res As Int16 = String.Compare( item, item2) ' compare items...Leave a comment:
-
Adding Arraylist objects to listbox
I have a Arraylist (SearchSkillsAr ray) that contains objects. I want to place those objects into a listbox. Here i'm using get enumerator to loop through the arraylist and add the objects to the listbox. I'm receiving the error Conversion from type 'SkillSearch' to type 'String' is not valid. Does anyone have any suggestion to fix this error?
Thanks,
wbosw
SearchSkillsArr ay.Add(SkillSea rch)... -
-
Retrieving specific objects from an ArrayList
I have a list of objects (developers) in an arraylist. Each object has five properties. I'm using VB.Net
EX.
developer.Id
developer.Skill s
developer.Skill Id
developer.Skill Level
developer.Years Employed
I want to retrieve the developers with certain skills ( java , c++) and certain skill levels (skill levels range from 1 to 10 ). What is the best way to retrieve these objects?... -
If i'm not using Profile to store specific info on a user, but just to move data across pages. Using Profile, gives me the use of intellisense, because Profile properties are strongly typed. I appreciate all the advice and will add you to my Buddy list for future discussions.
Thanks
wbosw...Leave a comment:
No activity results to display
Show More
Leave a comment: