Converting Letters To A Preset Value (integers)?
Nov 7, 2011
Okay, so I have to convert letters to numbers, each letter in the alphabet is assigned a value that I've assigned. But I need to run through a textbox letter by letter, and convert that letter to the numbers that I have, and append. So if I had a textbox with "JANE", it would output 942383312318265498643 assuming that the following letter values were true
A - 833123
B - 2277765
C - 33935654
[code].....
View 2 Replies
ADVERTISEMENT
Jun 4, 2009
I have log files that are filled with a lot of content. All of the lines in these files read simliar to the two examples below:
2006-06-16 06:40:25 00.11.111.222 englased 172.16.3.4 80 GET /XXX
2006-06-16 06:35:00 222.222.111.111 GBEDEYA 172.16.3.4 80 GET /XXX
2006-06-16 06:35:01 222.222.111.111 CEADETAA 172.16.3.4 80 GET /XXX
From line one i need to extract englased, from line 2 GBEDEYA and so on.
I know that all the lines have GET, and basically I only need to exact the letter from the begining until GET to get what I need.
So i would read each of these strings until GET and gets the Index. Then I would need to record all the characters that are letters from 0 until GET (ignoring all integers and special characters).
View 4 Replies
Jun 23, 2009
I'm working with byte arrays and building and disassembling Int16/UInt16 and Int32/UInt32 from them. I'd like to not worry about the Sign bit until I return the final value and just have the code return the appropriate value for the data type that was requested to be converted to/from the byte array
View 3 Replies
Mar 11, 2009
using Visual Web Dev 2008 Express and i am having an error when converting a set of integers to string. see code below. I cannot work out what it is that i am typing incorrectly. For ref, i return ten 0's as the result.
Dim numbers(9) As Integer
For i As Integer = 0 To numbers.Length - 1
numbersString &= numbers(i).ToString & " "
Next
textbox2.text = numbersString
View 7 Replies
Jun 21, 2010
I want to know on how to convert small letter to capital letters. I want to convert every letter automatically once I press the keyboard. Im going to wait for your replies.
View 7 Replies
Sep 13, 2010
I'm rather new here (actually just made this account in hopes of getting this question answered. I'm currently attempting to try and get text from a textbox to change the letters to numbers. A weak encryption if you will.Example:jack and jill ran up the hill in numbers would be say j=30 a=20 c=99 d=200 ect
View 2 Replies
Nov 19, 2011
I have encrypted a string to something like this:
1. Asak2$)kla1015QAXKFskfa332aSJ2(Ska@Skljcmcel3p.lq,aowpqaskla2@)Skx.:Pdm^),dfs;
what i want to is convert this string to something like this
2. JXK2LB AP2WXB S1P0XE ZXPA3H X1LAKW DOXPS3
both 1 & 2 the above strings are fictitious (i made them up to make my point clear)
I am trying to make a licensing system for my VB 2010 express application. (2) above will act as a serial key which can be derived from (1) which is an encrypted form of something unique of the client computer.
I will then confirm the (2) from the client.
View 9 Replies
Mar 20, 2010
I tried coding for an application that will display the positive integers, negative integers and zero entered in a inputBox. for some reason it keeps crashing down.here is my code. paging all visual basic professionals. [code]
View 6 Replies
Apr 10, 2009
I'm having a problem converting a string of letters to a string of numbers. I've tried:
Dim A As String = ""
Dim strOutput As String = ""
Dim X As Integer = 0
[Code].....
View 4 Replies
Feb 2, 2012
Basically I have and array of integers that vary in size. I need to compare each number to each other number and display which number is repeated. For example:
Dim ints() As Integer = {1,2,2,5,4,6}
The number that shows up more than once is 2.
How can I run through the array and compare each integer with the numbers in the array. I tried a for loop but it didn't return the value I was looking for.
View 3 Replies
Apr 2, 2012
I'm keeping track of some things that are numbered and others that are lettered; while NumericUpDown is perfect for selecting numbered things, I need an analogue for selecting lettered things. The obvious choice would be a listbox that just contains all the letters of the alphabet. But I need to show only the appropriate range of letters, so if I want to use a listbox, I need to write a function that populates the listbox with the first n letters of the alphabet; if n > 26, it should continue with aa, ab, and so on. How do I do this?
View 17 Replies
Sep 1, 2011
i want to make a program that will 'clean' up a computer, so far i can make it delete temp files, clear history, empty the recycle bin, even startup windows disk defrag... basic stuff like that Now i want it to go into windows registry and add some preset values, for example: HKEY_CURRENT_USER // Control Panel // Desktop // MenuShowDelay is by default 400, but i want to set it to 200 or something...i would also need the program to figure out which OS the computer is running (xp/vista/7) and only use the appropriate key and value,
View 1 Replies
Jun 21, 2010
Previously I asked about sending emails. And now, I have a related question.How to use a preset message in the email ?
Dim strMessage As String = "Hi [USERNAME]..! You have not paid your due amount of Rs. [DUEAMOUNT]. The last date for payment is [LASTDATE]. I want it to be in such a way that, when a button is clicked, all users with pending amount will be selected (from db) and the above preset message is formatted with each user's USERNAME, DUEAMOUNT & LASTDATE, and finally added it to another table in my db.
Presently my idea is to use a SELECT query for getting all the pending users and then loop through each user (record) and add the preset message to a separate table (this table contains all drafted messages which will be then sent to the recipients), by replacing the USERNAME, DUEAMOUNT & LASTDATE using the Replace function.
View 4 Replies
Nov 16, 2009
Is there a way to view preset functions like the Int() function.
View 6 Replies
Mar 25, 2010
I have a ton of MP3's that have an extremely high bitrate (like 200+) and I am trying to create a program that will
1. Read my MP3 Folder structure (DONE),
2. Create a list of MP3's that need to be rebit (DONE with UltraID3Lib), and
3. Resample the file to be a preset bitrate like 128...
I don't want to have to reinvent the wheel on this one.
View 2 Replies
Jul 2, 2009
I have a connection to an access database, I have used the data sources tool provided because in this particular instance I don't want to do much with it other than display the records (which I can do) and edit them (which I'm haveing some trouble with).I have created a system whereby the database is connected to using the preset tools available like; BindingSource, TableAdapter, BindingNavigator etc.
I also have a button for edit. This doesn't work and I was wondering if anyone could help me with this? I can't really provide any code for this, because I didn't code the connection by hand and the code I have been attempting to use for editting the records in the database doesn't even sort of work.
View 1 Replies
Aug 14, 2011
How can I crop an Image to preset dimensions and size using code.I can do this with MS Office Picture Manager, but I want my users to do this from within the app. using the preset dimentiomns and sizes.[URL]
View 1 Replies
Jul 20, 2009
I'm trying to create classes, functions, etc that present a preset list of options to users (in the same way that messagebox control will show the available button options). A simple example is readFile(ByVal strPath as string, ByVal strFileType as string) where the user will see a list of acceptable file types when they put the comma after strPath.
View 2 Replies
Sep 30, 2011
I am rather new to VB and every now and then I get an idea of a small project I would like to work on to increase my skills. What I am trying to do is:
1. Input the sound from the microphone
2. Detect what pitch the sound is
3. Compare it to the pitch displayed
For example, lets say I was to have the button "Start". When start is clicked, a pre determined (Or possibly random) note is displayed through a Label for 5 seconds (Lets use C as an example). During this time, the user can attempt to match the note C. When the user sings through the microphone VB picks it up, detects what note the user is singing at, and then scores him over the 5 seconds based on the difference between his note and C. It would also be nice if I could display the volume of the microphone, but this is not too important.
View 3 Replies
Feb 19, 2011
Is it possible to check locale format on form_load and change it to en-us via registry if any other is preset?
View 5 Replies
Apr 11, 2011
how I can make my Application to automatically create preset folders with files when installing the application? The files should be under user/documents/MyApplication/Newpresetfolder
View 5 Replies
Feb 7, 2011
I am looking for assistance writing code, (VB 05), that would cause an object, (like a circle on screen), to get larger and smaller over preset periods of time, (about ten second increments).
View 6 Replies
Oct 28, 2009
i have a program using a select case to convert letters to special charaters. My question is how can I get the code to read upper and lower case letters without having to put the upper case letters in my select case statement. Example: Part of my code is
[Code]...
View 6 Replies
Jan 9, 2012
a program and i need to have a button put a file into a folder, i know how the button works i already have it doing some other stuff. i just don't know the code to copy and past it to a folder.
View 1 Replies
Aug 22, 2011
my goal is to
1.Take an file(exe,dll,etc)
2.Convert it into hex
3.place that hex values in a stack
4.Execute the values inside the stack to its original form(i.e. take the elements out of stack and then convert it to a compile format)
Imports System.IO
Sub Main()
Dim fileName As String = "ABC.exe"
[code]....
View 1 Replies
May 18, 2009
i have seen this in many codes, just not sure where to start and how to call the command. what i'm talking about is having code as such (this is for save file dialog):
[Code]...
View 3 Replies
Jul 6, 2011
this is what i need done add up the sum of all the even integers from 2 to 50 in VB?
View 1 Replies
May 28, 2009
I'm making a program that will use .split and I only want to split every other instance. The way I want to do this is by splitting by only odd integers, how do I do this?
View 5 Replies
Feb 18, 2010
I would like to know if there is a command to make a program choose between certain integers. For example, I would like my program to make a random choice between the numbers 12, 118,224 and 300.
View 1 Replies
Apr 8, 2010
Id like to use 4 integers in a For, Next loop. The integers are 1, 3, 7, 9. Is it possible to pass just these integers to the loop without putting them in an array or something similar?
[Code]...
View 20 Replies