Create A Complicate String?
Apr 21, 2009I have four string, 1 for Continent, 2nd for Countries, 3rd for Cities & last for finalString[code]..
View 4 RepliesI have four string, 1 for Continent, 2nd for Countries, 3rd for Cities & last for finalString[code]..
View 4 RepliesProblem: Your task is to take input from the user in string and give the following options to the user in a menu.
1- Find a String
2- Create sub-string
3- Erase a portion of a sting
4- Replace a word in the string
5- Count number of words and characters in the string without spaces.
6- Capitalize first character of each new sentence and convert the rest
of the characters to lower case.
7- Sort all the words in alphabetical order. (Use Bubble sort algorithm to perform sorting).
To perform all the above mentioned tasks you can only use pointers. Create a function to perform every task.
In my VB project I need to create a unique string of alphanumeric characters 4 in length from a numeric string 8 in length.This numeric string will always be 8 in length and could range from 00000001 through to 99999999
View 12 RepliesI was trying to call a method using Reflection on a method that has a STRING parameter.However a STRING does not have a parameterless constructor.So instead of something like.>>
Option Strict On
Option Explicit On
Option Infer Off
Public Class Form1
[code].....
I have a datatable with three columns
Id name value value1
I want to create a string from this datatable so that each row in datatable will create two rows name will become one row value 1 will become another row
If name and value1 are similar then include value 1 only otherwise include both name and value1 (this is done)
If name of one row is similar to name in any other row, then add following text infront of both duplicate rows in string
Id is similar to Id
This is what I have written so far:
Public Function GetGazetteer(dataTable As DataTable) As String
Dim processedData = New List(Of String)
Dim rowData = String.Empty[code]....
I'm going to show you an example of what i mean[code]...
View 3 RepliesI'm trying to create a row of images associated with a string value. When the user MouseOver's the image, I need a label to update with the value of said string. The images are added at runtime. What control(s) would best suite this?
View 1 RepliesHow to Create a sql connection String in vb.net 2010? my DataBase Is Sql Express 2008
Name of Allah, Most Gracious, Most Merciful and He created the human
This string is automatically generated with an application I can't access or change[code]....
View 1 RepliesA friend asked me to make a character string randomizer for a game she plays. I got the code working but now she wants to have the characters seperated every third character with a dash (or a space), but I can't get it to work.
For x As Integer = 1 To 10
strb.Append(chars(Int(Rnd() * UpperBound)))
If x Mod 2 = 0 Then
[code].....
Is it possible to create a loop using a string I am writing a program and I need it to output 3 letters ahead of the letter you input for instance if you input a then it outputs d and if you input u it outputs x, and also the same with capital letters A then D U then X and so on. I have writted the program the only problem is that when I input X I want it to output A but it outputs [ instead I need to create a loop where when I input X it starts the alphabet over again, and I need to know if it possible and if so how will I go about doing so.
View 5 RepliesI try to describe my problem step by step because I do not know how to say it in correct programming terms.
When I use a System.String type, I do the following:
Declare the type: Dim Str1 as String
Assign its value: Str1 = "This is a string"
I want to create a new type that just like the System.String type but in different name. For example, I want to create a UrlString type for string like this:
Declare the type: Dim Str2 as UrlString
Assign its value: Str2 = "http://www.example.com"
My question is: How do I create the UrlString type?
The reason: I want to create the UrlString type to help me to identify the value of the content. For example, UrlString type means the string is in url format, PhoneString means the string is in phone format, CreditCardString type means the string is in credit card format and so on.
Class UrlString
Private ReadOnly value As String
Public Sub New(ByVal value As String)
[Code].....
I want to loop through my datatable column called SDESCR and created a string that looks like this.
Dim labels As String() = {"North", "South", "East", "West", "Up", "Down"}
this is what i am trying and it is not working
Dim labels As String()
For Each row As DataRow In tablegraph.Rows
labels = labels " ' " + row.Item("SDESCR") + " ',"
Next row
I am trying to create a dynamic string statement[code]...
View 7 RepliesI had a textbox and I could append strings to it.But now I create a string like this:
Dim str As String = New String("")
And I want to append to it other strings. But there is no function for doing so. What am I doing wrong?
How to create a string auto Increment like this
For Example.
NTAA001
NTAA002
....
....
[code]....
A question: How can I create a string that is x characters long, but is made up of "space bar" characters?
View 6 RepliesHow can I create an empty string that is a certain length?
View 5 Replieshow to create a new event for some variables , i will explain what i mean..
View 2 RepliesI want to know the path of windows directory then create a folder within it automatically example : test1
so the vb.net application shoult detect the path to windows then create inside of windows folder a folder named test1[code]....
How i can create string list in vb.net and use it's method like sort & add
View 2 Replieswho can point me in the right direction with regards to auto generating a ruleset text string from a list of url's. I get a list of URL's in the format:
[Code]...
Is there a way to dynamically create an object using a string as the class name?I've been off VB for several years now, but to solve a problem in another language, I'm forced to develop a wrapper in this one. I have a factory method to dynamically create and return an object of a type based on input from elsewhere. The provided input is meant to be the class name from which to create an object from. Normal syntax means that the entire class has to be explicitly spelled out. To do it this way, there could literally be hundreds of if/then's or cases to handle all the available class/object choices within the referenced libs:
If c_name = "Button" then obj = new System.Windows.Forms.Button
If c_name = "Form" then obj = new System.Windows.Forms.Form
....
[code].....
VB 2010 express. I have a situation where I want to create multiple list(of string), in a sub routine during run-time, where the list is available to other subs and functions in the same module, either to populate, edit or delete. The quantity of lists, names of the lists and their capacity will not be known until run-time. What would be the method and syntax for doing this?
View 3 RepliesI have a string where I have created a template so to speak.
{
Dim myvariable as string
Richtextbox1.text = Richtextbox1.text & "The dog jumped over the" & myvariable & "to find the fox."
}
I have a list box that contains a list of options that loads into the variable example: fence, bucket, etc.
So the sentences would read like
The dog jumped over the fence to find the fox The dog jumped over the bucket to find the fox
Right now I have it coded to display into a rich text box but everything is in the same rich text box.
I'm trying to load the string into an array at the end of each loop this way I can then have each sentence separated.
Is there a way using regex or enumerable to create a string that looks like abbcccddddeeeee that continues through 26 z's ? In case that isn't clear the string has:
1 a
2 b's
3 c's
4 d's
5 e's
etc
26 z's
i'm looking for a function which can create a MD5 hash from a string. Not much luck searching the interwebs, so i thought maybe any of you guys has a solution.
View 5 RepliesI have just started to try to duplicate what I have done in Autohotkeys language.
What I need to do is point to a string variable - I will explain.
I'm reading from my own asci font files that contain big letters made up of characters, used for chat forums: EG.
[a_ch]
___oo___
__o__o__
_oooooo_
[Code]....
What I then want to say is a_ch=letter. But it is in a loop, so I can't do it directly. I want to point to lettername which contains the string of the variable name.
How can I point to the address of lettername?
In autohotkey language, it would be easy:
%lettername%:=letter
I just read little bit about macro and was trying to create the one in .net I was able to do very small operations since I dont know much about vb.net and regular expressions.I want to create a properties and variable declaration for the below code.What will be the regular expression to parse this string. So that I can get all the components to create a property from this.
,<Status, tinyint,>
I am trying to create macro that can parse above string into
private byte _Status;
prublic byte Status { get; set; }
How can I pass a paramator to another page without using Session variables or passing the Querysting in the URL?
View 1 Replies