How To Make String Evalutator
Sep 22, 2009string_evalutate("dim a as integer = 23")
should make a new variable a with 23. Or
string_evalutate("MsgBox(a.tostring)")
[code].....
string_evalutate("dim a as integer = 23")
should make a new variable a with 23. Or
string_evalutate("MsgBox(a.tostring)")
[code].....
I need to make a string for a description textbox so later it can be added into a listbox and I dont know how to do this and this is all I got, which isnt much Dim desripition As String Private Sub textbox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles textbox2.TextChanged dont know how to do the code for this End Sub its probably 1 line of code. All I need to do is the user enters some text for a description of something and it gets saved as a string,
View 3 RepliesHow am i going to make a token with this string"The quick brown fox jumps over the lazy dog" that its output would be:
the
quick
brown
fox
jumps
over
the
lazy
dog
Token:9
The token is equal to the number of words. For every word entered, to identify it as a word is a space, which means that the space serves as a counter for the token and the words entered are printed in that kind of output.
am using vb 2005 with an access database 2003 vb.net website (aspx page) i am try to put contact details in to the database with six text boves and one button (Button1) to submit the informaton in run time (aspx page) when i run the page no problems then i click submit no error but it does not send the information to the dadtbase.i put the code when i double click on the button here is my code could you plz tell what i am doin.
HTML
Imports System.Data
Partial Class accessall_NewCustomer
[code]...
I am using the following connection string to connect to a sql server on my network but having all kind of problemhere is the connection stringosqlconn.connectionstring="server=xxx.xxx.xxx.xxx,1433;" &"Database=LOS;" & "Integrated security=SSPI"I dont know if the problem is that there is no ";" at the last parameter like the others but I get the following error that shows in the file
View 24 RepliesI'm creating a Calendar. I want to put Text in the date, but the day is not always the same as the Label name. So, in this case Label27 is actually the 25th of Christmas.At first I have to decide which label. Which I can do. now I need to know how to input text into it. In essence I want to do:
Label27.text = "Christmas"
But, I don't have the Label27, I need to calculate it. Since I know Christmas is 25 and I know that the month starts on the 3 day of the week, I assign:
Att1 = 3(first day of the week of december 2009)
Dim Att3 As String
Dim Att4 As String
[code]....
I'm trying to create this JSON string but having problem creating it.I'm getting System.NullReferenceException error.Here is the json string that I would like to create{"id":["1","2","3","4"]},"sid":["s1","s2","s3","s4"]}Here is the code I have so far.
Imports System.Web.Services
Imports System.Data
Partial Class test_sidetab
[code].....
I am trying to make a five digit string, it needs to be 5 digits long basically it cant be less then 10000 and more then 99999, but when I run the code, all the label says is "this is a five digit code" from the time I start putting in numbers to even if I got a whole lot of numbers are in it, it remands the same label, what could be wrong or am I doing this wrong
Dim myDouble As String
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If myDouble >= 10000 Or myDouble <= 99999 Then
lblmessage.Text = "this is a five digit code"
Else
lblmessage.Text = "Not a 5 digit code, please renter a new one"
End If
End Sub
For the three character sting, I have
ON:Motor is online and running
OFF:Motor is online, but not running
MNT:Motor is undergoing maintenance and cleaning
NA:Motor is not available
I dont know how to start this, do I make a specific thing saying that these are the only ones you can use and if you entered something else then a text box saying incorrect or something like that?
How should i make a textbox to accept only string? And if there is error to appear the Error Provider. I have fixed it for the integer, but it doesnt work in string.
View 1 RepliesI want to have an input from the user to define the font of a rich text box... the only problem is the only way I know how is to use a string... When I use a string it give the error of:
"An unhandled exception of type 'System.InvalidCastException' occurred in PWT Notepadd.exe
Additional information: Unable to cast object of type 'System.String' to type 'System.Drawing.Font'."
I'm trying to check a string, but it turns out to be case sensitive, how do i make a string not case sensitive??
This is what I got:
str001 = My.Computer.Registry.GetValue _
("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services" & "\" & str2, "ImagePath", Nothing)
[Code]......
I Want to make a class accept string variable like this
Dim mystring as custstring
mystring = "test var"
like how we declare string classes I tried to use property as such
Public class cust
dim inputstr as string = ""
Public Property cust() As String
Get
[code]....
But it doesn't seem to work?
I was using a JSON MAKER class to make a JSON string to send off from my webservice - it was way too slow - so I thought I would do the string manipulation right in the recordset loop - how could I go wrong - it is only 1141 records![code]...
View 10 RepliesHow would I make use of a List(of String) in a structure in vb.net. for example
Structure examplestrut
Public exampleslist As List(Of String)
End Structure
How would I call exampleslist.add("example 1")?
I'm moving code from code-behind to classes and run into a problem. I have a method which makes a string (an html invoice). In the method a final amount is created. I want to make a class called Invoice which will have the method "CreateInvoice" which will return a string and I also want to set the finalCharge property of the object.[code]
View 1 RepliesI have an IEnumerable as a result of LINQ, which contains Value and Count. After I get the result, I want to do a string manipulation on the Value and make the corresponding Count to half. Is that possible with LINQ?
View 6 RepliesI have to (for class) make a program that generates a safe passwords for people to use. My teacher wants us to make the passwords vary in length, include numbers, letters and upper case letters. I've been able to write code that prints out a random string but it includes unrecognized characters for most passwords. How would I write the code to create a random string that has parameters? (in this case upper case lower case letters and numbers).
View 9 RepliesI've few Button on my form and when i press these button, Music has to play, and collect the word in label1 like what ever button i pressed those button's name has to catch on that label and make a string and there is one more button that button has to play that whole string music which one is in label1.I've done 1st part but i don't know how to make string and play it when button click.
[code...]
So I'm trying to make a combobox use a string that has other strings and has text too. [code]...
I'm trying to use numbers more than once so I want everything to be in there. I tried using:
Dim numbers As String = (one or two or three or "four" or "five")
but that didn't work either. Is there any way to make this possible
How do I make a regex that can detect a certain character string that is either all by its self in a line, or separated by white space.
If I have the line:
"ot"
Or the line
"sdf gdfg dv ewrsef fvdf ot sdfsd sdot"
I want to be able to detect the 'ot', except for the one that is 'sdot'
How to make Dynamic Connection string for VB.Net 2008 & Sql Server 2005 database
View 1 Replieshow can i make hexa decimal string from my own text? [code] then it will generate hexa string (below is only sample, not true generated) 3F2504E0-4F89-11D3-9A0C-0305E82C3301...is it some algorithm or function in VB NET to generate HEXA?
View 1 RepliesI would like to list items from a database into a list but like to make it look clean
View 4 RepliesPrivate Sub MDIForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
DateLbl.Text = System.DateTime.Now
End Sub
i used this code to show date and time in the status strip but time stands still how do i make it run ????
How can i make the double qoute(") as a string?
dim str as String = """
In visual basic , when you create a label in form view (via click and drag) is it possible to make the label have both a string and a variable included in it?
*
turns=1
label1.text = ("Turn:"(turns))
*
for example , so that label 1 will display
i have a ini file where i read my data
[Code]...
Public Property TabsCollection()() as String()()
Get
Return _tabsCollection
End Get
[code]....
but it errors saying: End of statement expected.
I am trying to make a format string to order a list in richtextbox. I already done this, however not as I like to.
So I want this symbol: <-- symbol And I only have got other symbol that I can't tell you guys which is. The code that I use is:
"{\rtf1\ansi\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\froman\fprq2 Times New Roman;}{\f3\fnil\fprq2\fcharset2 Wingdings;}}" & vbCrLf & _
[Code]....
How do I make a regular expression to find a substring within a string that looks like: |sdrt446-7fdfs23| ? The number of characters and types change. So I need whatever in within the | |.
View 3 Replies