Translating Letters To Numerical Values
Nov 4, 2010
I want my code to look at a textbox to determine which letter is in it, & assign a numerical value to a second textbox, based on what letter is in the first textbox.[code]The problem is that, when I step through the code, I can see that Form20.txtGrade1.text DOES EQUAL "C", but my code skips over the part that says Form20.txtGrade1a.text = "4". Instead, if I hover over that part, I can read Form20.txtGrade1a.text = " ".When I do not step through the code, and just run it, I see the two textboxes, with the first one containing the C, and the second one is just blank.
View 4 Replies
ADVERTISEMENT
Jan 16, 2011
what I am trying to do it read a form of hex that is encoded I know the cypher what I want to do is make a program for myself that will let me compare 2 files. Both in hex decypher the hex to numerical.I call the hex backwards hex what I mean is this..in stead of "04 58 d2 d2" it is "d2 d2 58 04" I know the number it translates to is 72930002I want to show the entire list in a list box where I can choose wich I want to look at.
View 8 Replies
Jul 22, 2010
I am checking for empty string values, but how do i see for the Quantity text box if the user chose only numerical values after the empty string. For example...
[Code]...
View 2 Replies
Apr 2, 2010
I have code that gets the numerical value of letters in a txt file, it returns a 77 for an M for instance.Anyways so M(077) is the first value i get, and becuase its the first i need to have it effect the first pixel in my image (0,0) i need to take the first value of M 0, and put it in for reds ones diget, lets say 120, i need to put the second integer 7 in the greens one place 127, and i need to do the same with blue, also 127. How do i do this? Hers some of my code.
[Code]...
View 1 Replies
Sep 24, 2009
im looking for a code setup where the program can get a numerical value based on letters in a user inputted string, and output the value A=1, B=2, C=3, etc
View 19 Replies
Feb 26, 2012
I've made a temp converter and i'm looking to get some validation for it. I have looked online, but most do it in a way that i don't want.
I have 3 text box's, of which i only want numerical values and nothing else to be entered into the boxes. However, i would like the validation to run when a button is pressed (in this case, the calcualtion button). I would like a messagebox to pop up stating there is a non-numerical value entered into any of the boxes and for the calculation code to not run.
View 14 Replies
Aug 10, 2011
Problem: I wanted data input text boxes that only accept numerical values between 0 and 999. I could check for this during a later 'save' routine, but instead preferred to warn the user at the input stage; so I chose masked textboxes - setting the mask to "000". However these boxes appear and behave differently. They have a row of 3 underscores - which I don't want - and also seem more difficult to hit with the cursor. How can I get Masked TextBoxes to appear and behave exactly as normal ones?
View 7 Replies
Dec 13, 2011
I have created a program and would now like to stop users from entering incorrect values/Text inside specific textboxes. For example i would only like text to be entered when a customer name is to be inputted and if a numerical key is pressed a message box will appear saying "sorry letters only" or something in that line. Also waould like it the other way round when trying to enter text within a number only text box.[code]...
View 1 Replies
Apr 15, 2010
I'm creating a calculator in visual basic 2008, and with this calculator I want to implement a feature that can store numerical values in a variable for instance x. Similar to the feature used in most graphing calculator that have the button showing: "STO->". I was thinking on using the My.Settings. But I'm having trouble on it.
View 2 Replies
Mar 23, 2010
How do i assign the ascii values to letters??
i have to do a rot13 encryption program and have got this so far[code]...
View 1 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
Oct 15, 2010
I'm trying to write a simple/small Windows Communication Foundation service application in Visual Basic (but I am very novice in VB) and all the good examples I've found on the net are written in C#. So far I've gotten my WCF service application working but now I'm trying to add callback functionality and the program has gotten more complicated. In the C# example code I understand how everything works but I am having trouble translating into VB the portion of code that uses a delegate. Can someone please show the VB equivalent?
Here is the C# code sample I'm using for reference:
[code...]
Is that casting the callback object as type ICommunicationObject? How is that done in VB?
View 3 Replies
Feb 18, 2010
I have to admit, I can't always translate C# code to VB. Case in point:the MSDN library has the definition and example of an FTPWebRequest in C#, but not in VB. I think I can understand most of it, but can someone translate the small snippet below for me? Don't worry about the variable definitions, I've got that, but I can't tell of the subsequent methods are functions or sub routines.And what are those "get" and "set" calls?[code]......
View 6 Replies
Sep 2, 2010
Having trouble converting a bit of C# code to VB.NET.I got his code from CodeProject:
[Code]...
View 1 Replies
Dec 9, 2011
I'm trying to translate some code from VB.Net to C#, but I've run into an issue.The Vb.Net line of code I want to translate is:[code]However, this is giving me a nasty 'Object reference is not set to an instance of an object' error.
View 3 Replies
Mar 25, 2011
I am more of a PHP Coder then VB.net Programmer so I made this and converting this function.
<?php
function grabshade($r,$g,$b){
$colors = array(array(0, 0, 0), array(255, 255, 255));
$differencearray = array();
[code]....
View 3 Replies
Jul 31, 2011
I'm not the best at reading and translating C#.
public IEnumerable ActiveEntities
{
get { return GetActiveEntities(Query); }
[Code].....
View 4 Replies
Jan 25, 2011
MVC 3 is great but in some cases I am having trouble translating the Razor syntax. Anyone know of a good VB.Net Razor reference?
View 1 Replies
Aug 6, 2009
I am translating a piece of C# code into VB.NET using online convertors..[code]The VB.NET translation is not up to the mark and gives compiler errors Any VB.NET expert who can suggest what to change to make the code compile?url.
View 10 Replies
Oct 18, 2010
I recently asked a question about translating a code sample I found on on the internet from C# into VB and I was given links to websites that automate code translation [URL].. I am very new to VB and unfortunately the VB that the translators returned doesn't compile in Visual Studio 2010. I am hoping someone can help me fix the non-working portion of VB code.
Here is the C# code I am converting into VB:
[Code]...
View 2 Replies
Apr 1, 2010
In physics library written in C# I have the following code:
[Code]...
I'd like to do the same in VB. (just thandling the delegate, not the declaration) I tried this, but it doesn't work: AddHandler ContactManager.PostSolve, AddressOf PostSolve The following works, but only allows me to have one handler for the delegate: ContactManager.PostSolve = new PostSolveDelegate(AddressOf PostSolve) Is there a way for me to do the same thing in VB that was done in the first piece of code?
View 2 Replies
May 9, 2011
with translating some code from VB to C#.
Public Function ToBase36(ByVal IBase36 As Double) As String
Dim Base36() As String = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U",
[code].....
View 3 Replies
Aug 18, 2011
I am writing a program in visual studio to exchange data with a webservice. The webservice, Kareo.com, gives an example of a program but it is in C# - I am trying to replicate their program in visual basic, which is the language that I am more comfortable with. I got most of it to work but am running into problems with two lines "patientCase.Policies = new InsurancePolicyCreateReq[] { primaryPolicy, secondaryPolicy };" and "newPatient.Cases = new PatientCaseCreateReq[] { patientCase };"the C# version of the entire program is below.
[Code]...
View 2 Replies
Apr 16, 2012
Just a quick question, what will this code be in vb.net? if this is the wrong place for this request.
[Code]...
View 1 Replies
May 19, 2011
I have this piece of VBNet code that i would like to translate into javascript:
Dim phone_check_pattern = "^(+?|((+?[0-9]{1,3}))|)([ 0-9.//-]|([ 0-9.//-]+))+((x|X|((e|E)(x|X)(t|T)))([ 0-9.//-]|([ 0-9.//-]+)))?$"
System.Diagnostics.Debug.WriteLine(System.Text.RegularExpressions.Regex.IsMatch("test input", phone_check_pattern))
my translated result:
var phone_check_pattern = "^(+?|((+?[0-9]{1,3}))|)([ 0-9.//-]|([ 0-9.//-]+))+((x|X|((e|E)(x|X)(t|T)))([ 0-9.//-]|([ 0-9.//-]+)))?$";
alert(new RegExp(phone_check_pattern).test("test input"))
However when i run it it has error Uncaught SyntaxError: Invalid regular expression:: Nothing to repeat
(my VbNet code doesn't have any error though)
View 3 Replies
Jun 9, 2011
i'm starting to learn vb.net, and i trying to make some special translating program, its need to translate hebrew text into special letter sequence. the text input are: ב יית בי יי ים מתקדמים (which its means Construction of advanced buildings ) And the text output are: BPJJZ_BJPJJPJM_NZWDNJM according to the list i made (Attached picture).
[Code]...
View 17 Replies
Feb 25, 2009
In my current project, i need to build a tool to translate text from some languages to English
Ex.: Chinese To English
Is there any translation SDK available?
View 3 Replies
Feb 19, 2012
I have almost completed a translation from C# to VB.NET, however, I run into some small errors[code]...
View 1 Replies
Oct 17, 2011
translating form data (fetched from mysql) to excel doc how can i do it? i saw a couple of examples but none worked only in vb6?
View 3 Replies
May 6, 2011
I was wondering if someone could translate this code into a more understandable code. It is suppose to be a function that accepts an item name its cost and its quantity. and adds one more array element to ."items" variable and assigns the given name and cost and quantity.
Public Sub AddItem(ByVal strName As String, ByVal dblCost As Double, ByVal intQuantity As Integer)
Me.items=DirectCast(Utils.CopyArray(DirectCast(Me.items,Array),New Purchase(me.itemsCount + 1)-1){}),Purchase())
End Sub
This is the translation i made but i don't think it is correct.
Public Sub AddItem(ByVal strName As String, ByVal dblPrice As Double, ByVal intQuan As Integer)
Dim items As Purchase() = Me.items
Dim itemCount As Integer = Me.itemsCount
For itemCount = 0 To items.Length - 1
[CODE]...
View 3 Replies