VS 2008 Hex To String
Jul 21, 2009
[code] I putted it in a loop but if it haves to convert 2 times the same pieces of word sometimes but it only converts the word it reads twice and leaves the rest in byte format [code] is there anyone else who can write me a better code to use or correct this one
View 3 Replies
ADVERTISEMENT
Jan 18, 2011
I'm making a card game and the first thing I'm doing for it is generating a random card. I used an array for the cards (can't think of a better way to assign a picturebox to a card picture other then a huge select case block). I'm trying to split the 2D array into two parts but it doesn't work.
My current
vb
Public Class frmMain
Private Function Flop() 'First three common cards to be displayed.
[Code].....
I looked around online and I don't think a list will work for my 2-dimensional array.
View 2 Replies
Aug 7, 2009
I'm here again asking stupid questions. I don't have really get this but i ask again but i try explain all better. Here is a website link and i want catch string from here. Look page's source code and find first what starts <td> someword </td> I use this code for catch word from page. Visual Basic Express 2008
[Code]...
View 8 Replies
Mar 2, 2009
i have a string array that i want to output to a text file. the array size is 10000. i fill the array starting from 0 with some strings. at the end, i only want to show the array from index 256 to the last array that is not empty (for eg. if the array is filled with data from 0 to 2000, i only want the text file to show the data from 256 to 2000 and ignore the remaining strings). Is there any function to do this?t i use is shown below
Dim myArray(10000) as string
Dim strArray As New System.IO.StreamWriter("c:List.txt")
strArray.WriteLine("{0,10}{1,30}", "Index", "Symbol")
[code].....
View 8 Replies
Jun 9, 2009
Im trying to work out what the best way to match 2 strings together, but with a difference.
String1 = "dog cat bird chair book table"
String2 = "the dog chassed the cat around the chair"
No I know I can break string1 up by space character and check if each word appears in string 2, I would prefer to not have to do that.If there some sought of regex that would take a group of words and retrun how many of them matched ?
View 2 Replies
Aug 3, 2011
Currently, I'm using the following code to pull info from the management class.
[code]...
I'm also pulling info from the bios, disk drives, video, etc. What I've noticed, is although it runs fine on my pc, it may error out on some pcs since it is hardware dependent.I'm having trouble implementing a check to find if it exists before I convert to a string and add it to my overall string.
View 6 Replies
May 14, 2010
I am currently using the following code to parse a webpage.
CODE:
Where it has:
CODE:
It would work, as with this:
CODE:
But i need it all in one line of code..
View 2 Replies
Aug 10, 2010
0000011 22 331. How do I remove "22"?2. How do I get "0000011" and "33"?
View 1 Replies
Jul 25, 2010
How do I turn
1
2
3
1
[code]....
into
1
2
3
?
I basically want to remove multiple strings within a string.
View 6 Replies
Oct 18, 2010
What would be the fasted method of get a string list of all values within [] in a string of text? For example: [client_name], are you are doing today? My name is [my_name]. The list of strings would be:
[Code]...
View 6 Replies
Feb 18, 2010
Im trying to put a string in front of a string and the result is a new string.EX:
String 1 = 123#@!
String 2 = HIIIIIII123
New string = 123#@!HIIIIIII123
View 4 Replies
Jan 5, 2010
I'm writing some information to an SQL database in my program and I am using parameters with the SqlCommand class, thinking that this would take care of things like this for me but unfortunately it has not.
What I am doing is this: I create an instance of a class which has several properties, one of these properties is a String and in some cases there is no value assigned to this property,I then write the value of these properties to an SQL table.
what I was expecting was that if the value of this string property had not been set and I tried to get the value of it then I would just get String.Empty but it is actually returning Nothing.then when the SqlCommand comes to try and pass this in as a parameter it throws an exception stating that an expected parameter is missing.
This is how the property is defined:[code...]
I have managed to work around this by changing it so that the backing field is set to String.Empty when the class is initialised but I've never had to do anything like this before as far as I recall, I just thought that any String that had not had a value set would be String.Empty rather than Nothing. Am I just going mad or does anyone else think this is odd?
If I do this for example, I do indeed see the messagebox alert:[code...]
Also, I dont have the same problem with properties in this class that are Integers - if they are not set then I just end up with a 0 being written to the SQL table, which is what I want the string property to do (just write an empty string to the database if the property has not been set).
I'm guessing that is because Integers and other Value types have a default value (is it ALL value types that have a default value or just some?), but I thought Strings were made to behave pretty much in the same way with String.
View 19 Replies
Jan 18, 2011
Can I do anything more or less with IDictionary? How do these two collections differ?
View 5 Replies
Mar 11, 2010
my code is :
[Code]...
The error is Value of type '1-dimensional array of string' cannot be converted to 'String'.
View 2 Replies
Jan 18, 2010
#EXTM3U
#EXTINF:216,Tose Proeski i Antonija Sola - Volim osmeh tvoj
Tose Proeski i Antonija Sola - Volim osmeh tvoj.mp3
#EXTINF:303,Too Short - The Ghetto
[code]....
How do i get only the numbers (numbers writen in red).
View 3 Replies
Apr 29, 2009
how can I cut the 1st 3 char in a string in vb 2008?
For example:
Dim i As String = "ABCDEF";
I want to only cut the 1st 3 char and the system will only display "ABC" after the 'cut' action done.
View 3 Replies
Mar 3, 2010
I had a job interview today where I was asked to build a GUI for an MS Access 2003 database using VB.Net 2008 and old ADO. I looked on [URL] to find the correct one and I wasn't sure given the diverse development environment.
View 2 Replies
Nov 7, 2009
I want to generate all possible string (a-z, A-Z, 0-9)
[code]...
View 9 Replies
May 5, 2012
i don't know if is it possible.. here is the scene
dim myString as string = "(type_of_animal)=(cat),(sex_of_animal)=(male)"
sometimes the type is dog and sex is female how can i get the result? result is cat and male is it possible to search the string (type_of_animal)= and get the second string inside the ( ) ? sometimes string is more than that like this
[Code]....
View 2 Replies
Aug 3, 2009
I need this, so let's say I have this html
</a>
</td>
<td class="alL">21,442</td>
<td class="alL">99</td>
<td class="alL">13,444,999</td>
</tr>
All those numbers always change. But they're in the same line always
Now I wanna get "99" which is at <td class="alL">99</td>
View 3 Replies
Nov 15, 2009
After countless hours of searching I have been unable to get this code to work. If anyone can provide we with an alternative. I know the easiest way is to use the Split() function but im trying to do an alternative method by identifying the spaces within the string and splitting them up.
I tried the search function, but to no avail.
Attached is the code.
CODE:
View 5 Replies
Nov 27, 2010
How come
Dim str As String = 1 & vbNewLine & 2 & vbNewLine & 3
Dim s As String() = str.Split
For d As Integer = 0 To s.Count - 1
MsgBox(s(d))
Next
Turns out to be:
1
2
3
Instead of:
1
2
3
View 5 Replies
Sep 5, 2009
My.Settings.regLibCardNo = "10-0000"
I want it to increment
CODE:
View 3 Replies
Nov 10, 2011
ListBox1.Items.Add(aString.Replace(" ", vbCrLf))
aString is like this: Tom Gary Kevin Bob Jason and so on, just all in 1 line What i want to do it add them in a listbox as a list. Also the string could be 1 name, 2 names or 200 names.I tryed replacing the " " with vbCrLf but since its a listbox all it does is remove the " "?
View 3 Replies
Nov 22, 2009
I am pulling up HTML using System.Net.WebClient, and I return it as a string.
Now I want to take that string and somehow parse it using the DOM.
Problem is I cant find a solution. So far I have tried both HtmlDocument and Xml.XmlDocument.... At this rate maybe I should of just wrote this program in Greasemonkey with AJAX
View 1 Replies
Jan 30, 2011
VS 2008 Add some characters in a string?
View 1 Replies
Aug 28, 2010
I'm calling an API that returns a string pointer but I can't find anyway to return the string it points to.
Is it possible in VB.Net, I see VB6 had a STRPTR function but I can see a .net alternative.
View 3 Replies
Dec 21, 2011
i have a textbox in a calculator and i want an if function so that it checks that there cannot be 2 .'s in it:[code]
View 2 Replies
Jun 10, 2009
I need to take a picture, test.jpg and read it in and convert it to a string.
The string is going to be sent via email attactment where i need it to work as a .jpg when i download the file attachment.
I can only build the file attachment using a String so i will need to convert the picture into a string, without losing any of the data bytes.
View 3 Replies
Jan 4, 2012
I have this string "0.9874" and I would like to use vb code to change it to "0.9.8.74" so that it looks like a proper version number.How do I do this? String.Format("{???}",MyString) or perhaps:
View 8 Replies