VS 2008 Input A Value To Output Another?

Oct 19, 2010

In my programming class, we have been set a task in which a user inputs 8 numbers, and those 8 numbers will be split into groups of 4 (therefore having 4 lots of two digit numbers). These 2 digit numbers will then translate to a specific time, day, place and city.

For example, this table below is what we have been given for city. (there are separate tables for time, day, place with different 2 digit numbers)

(Excuse the formatting)
City Code
London 11
Paris 37

[Code]...

For example, if a use inputs 11995467 I would want that to output London (being the number 11), [a PLACE = 99], [a DAY = 54], [a TIME= 67]

Bearing in mind I am a newbie, and my knowledge of VB is minimal. How would I go about doing this. It's suggested we use MOD and integer division, but I don't see how it can work.

View 5 Replies


ADVERTISEMENT

VS 2008 Redirect Input And Output Of Command Prompt

Nov 27, 2009

Every time I try and redirect input and output of command prompt I have a problem. The debugger itself crashes! Something must really be wrong. What is a good way to launch CMD and send commands to it, receive output.

View 1 Replies

VS 2008 - Use Regex Or An Array To Display Some Output From An Arithmetic Input?

Sep 19, 2009

I've to make a program that reads an arithmetical sentence from a textbox, e.g 12.3*34+4*5-3 and then on another textbox identify and display what is the content of the first textbox, for example taking the last ex:

If I have this input:

12.3*34+4*5-3

The output should look like this:

<number>12.3
<operator> *
<number> 34
<operator> +

[code].....

This program should only read this operators like (+,-,*,/).I'm have in mind 2 ways of doing it, one with regex and the other taking the first sentence, put it on an array, then trim it, and somehow get the values of the array and identify if it is a number or a decimal number and if it's an operator and then display it.

The difficult part or the part that i can't conceptualize is how to implement it with regex (it should be easier with a regex format than storing it on a array).I write a bit of code, I used an array to store and then to print the numbers and I used the split function to separate the math operator, but I dunno how to print the operators and the tags.

vb
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Sentencia As String = TextBox1.Text Dim i As Integer Dim arryTextBox() As String TextBox2.Clear() arryTextBox = Sentencia.Split("+", "-", "*", "/") For i = 0 To UBound(arryTextBox) Dim Array As String = arryTextBox(i)

[code].....

Btw, I also have the code to validate the input on the textbox ::wink::

View 2 Replies

Clearing Output When Input Changes?

Jun 2, 2009

I created a simple calculator. I just graduated with my Bachelors in Software engineerin in March of 2009. I am tryig to get a better understanding of VB.Net. I created a simple practice calculator and would like to know what code needs to be added in the code to clear the output when the user changes the input without adding a clear button as I know how to clear the input and output using a clear button, y working code is pasted below.

[code]
Public Class Calculator 'Form click event handler
Private Sub Add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

Download file asynchronous using sockets

View 2 Replies

Do A Calculation Where-in Output Is Different Depending On What Input Is

Jul 28, 2009

I'm trying to do a calculation where-in the output is different depending on what the input is. [code] I have these repeated using >=50 >=60 etc. but when I go to run the program I get this: [code] basically I need to know how to create a cut off point for the grading system. <= doesnt seem to work.

View 4 Replies

Input Output Error Stream?

Oct 30, 2011

Applications in the .NET Framework can use the System.Console class to read characters from
and write characters to the console. Data from the console is read from the standard input stream,data to the console is written to the standard output stream, and error data to the console iswritten to the standard error output stream. These streams are automatically associated withthe console when the application starts and are presented as the In, Out, and Error properties, respectively.I am working with redirects and I am solving small problems one at a time. So far so good, but I lost track of the big picture here. Can someone please clarify something for me.

View 1 Replies

Passing Two Input And One Output Parameters

Oct 7, 2010

I have a stored procedure with two input and one output parameters. I need to execute the stored procedure from VB 2008 code passing it two parameters and returning the output parameter. How might I go about doing this? I don't have how to do this. Newbie here.

View 1 Replies

Open A File For Output Or Input Or Even Append ?

Jul 6, 2011

find a way to check if a file exist before opening it or creating it.I know how to open a file for output or input or even append which is what is going to do assuming it exist already.

'all this is inside a button which will open the file upon pressed
'to populate a
'combo box drop down list[code]....

View 3 Replies

Collection Input/output Text File?

Nov 30, 2011

Normal
0
false

[Code]....

This question has been most likely been asked a number of times, but really hitting a brick wall regarding this.

The issue is that at the moment, I have to create a database using text files on VB.

So far I have managed to get the code working to add new customer and browse added records, but stuck on how to output/input back and fore to a text file, to store information, and after this input/output the text file to a DB ( Not worried about this at the moment)

Public Class Customer
Dim CmrColl As New Collection 'Create the new collection. Think of this as an array of objects.
Dim itemCount As Integer = 0 'A variable to help us scroll through the objects later.

[Code].....

View 3 Replies

Communications :: Input / Output Control Board?

May 30, 2010

We learned How to assemble an input/output control board that would connect to your serial port. We were able to use out statements (back in the old gwbasic) to send output signals to the parallel port to turn on/off different outputs. The board had connections where you could connect lights, relays, etc, and had connections where you could attach switches and sensors.

I have been looking for something simple that I can manipulate in my programs. I already have an ActiveHome X10 interface which includes an activex for receiving and sending x10 signals (home automation, turning lights on/off, etc.). I want something that I can straight out connect relays to, and sensors as well. I don't want something that connects to the serial port since that is already being used up, the parallel port would work fine, or even better usb.

View 6 Replies

Finding String Encryption With Given Input And Output?

Jan 17, 2010

I have an input and an output, but i would like to know what how to calculate/find the string encryption in between.

Input: 22ac24c481690dd5d90973c6697624ec
String: ??? Unknown
Output: cc28641637656a42e092b61d3e67af0d

[URL]

View 6 Replies

Input And Output Command Line Arguements?

Sep 11, 2009

I have 2 VB programs that I would like to communicate with each other, but I want them to be separate EXEs. Anyway, the easiest way I figured would be for me to call the one program from the other and then return a result. How do I get this result into another program?

Here is how I want it to work:

1. Start System Information Program (easy)

2. Call a video test program, and send a couple arguments (see below)

3. Receive arguments from the video test (I do not know how to do this, I do not know how to send from the video test or receive from the system information)

View 5 Replies

Input And Output To A Text File Using Console Application

Dec 30, 2011

need an example of a console application that would allow you to input data to and retrieve data from a text file on disk.

View 2 Replies

Catch The Input And Output Variable To A Textbox1 For Sending And A Textbox2?

Feb 1, 2010

I am using vb2008.net express, I test vs2005term it work, can any tell me what is the input variable and output variable of this terminal? how to catch the input and output variable to a textbox1 for sending and a textbox2 for receiving when I press send button? is that possible? I attach the example of my question this is a a good source, but it is not relate to my problem: [url]...

View 1 Replies

Compare Two Input Files And Extract The Duplicates To One Output File

Dec 31, 2009

so here is my scenario. I have two input files... both are plain text files. File1 has customer name, customer address and invoice number. File2 has customer name, customer address, invoice number AND a keyline. File1 will only contain some of the records in File2, and it will change daily. I need to be able to compare File1 against File2 and output one file (preferably an Excel spreadsheet) with the info from File1 and the keyline from File2, that matches the duplicated info. I know the basics to get it to work, but I'm not sure what would be the easiest way of doing this... File2 can have up to 100,000 records per day. I'd only need to run it once a day though.

View 6 Replies

Write A Code That Will Let Me Input 2 Alphabets And They Will Output In Alphabetical Order?

Sep 4, 2009

I am writing a program which was pretty easier until I got to a certain part. I need to write a code that will let me input 2 alphabets and they will output in alphabetical order

Ex:
Please Enter alphabet 1: b
Please Enter alphabet 2: a

[code]....

View 3 Replies

Save Application Data (input+output) In A New File Format In Program?

May 16, 2011

I work in an engineering design house and programming is not my actual profession. And I am relatively new to VB .net (previous i had worked in vb 6)

I am working on an in house application. I am coding a simple application in vb .net. This applications takes a few inputs from user and calculates a result. Now I want to implement a simple functionality that user should be able to save the input and results just like most of the windows programs can in a new file format. And user should be able to open the save file when desired.

View 10 Replies

Input / Output Methods And Validation (for Secure Coding) - Read/Write DB Encryption ?

May 16, 2011

I've been trolling for a long time now and have decided to register as I finally have some time to start jumping into VB. The last time I coded VB, the current version was VB 4. I've been out of programming for a good while now and considered myself a beginner (tutorial example coder haha).

My question is: Where is a good place to start learning VB.NET?

I know it's an often asked and answered question - but let me give you a bit more information so more specialized replies might be given.

I'm in INFOSEC/COMSEC and would like to (eventually) develop a program that contains a DB of information that is read by the application and saves input information into a DB (encrypted) as well. The program will be a 800-53 C&A control assessment program; used for tracking system compliance for federal information systems. I would like to be able to develop such a tool to make my life easier at work instead of using Excel spreadsheets to track everything.

I would like to learn:
- Input / Output methods and validation (for secure coding)
- Read/Write DB Encryption (RSA or other 128-bit) for user input information
- Ability to generate PDF reports from the primary keys and data sets from the above DB

My goal is to create a program that allows a user to install the program, setup a 'master' account that a serial/key has been generated for - that master account is then allowed to create new projects (progress saved in DB). A project asks the user certain questions pertaining to information systems and takes the input and saves it into the DB (encrypted). When the assessment is completed, I would like the program to be able to generate a PDF report from the DB (from a layout template I created).

View 10 Replies

Call The Stored Procedure Which Has One Input Parameter And One Output Parameter?

Mar 21, 2009

I'm Trying to Call the Stored Procedure which has one input Parameter and one output parameter . VB.net code is below

[Code].....

View 2 Replies

Serialport VB2008.net - Input Variable And Output Variable Of This Terminal?

May 14, 2010

I am using vb2008.net express,I test vs2005term it work, can any tell me what is the input variable and output variable of this terminal?how to catch the input and output variable to a textbox1 for sending and a textbox2 for receiving when I press send button? is that possible?

View 1 Replies

Input Values, Output Equal Spread Out Values?

Jun 16, 2010

Input a range of numbers and sort them into 6 equal amounts and then having the program tell you which amount the number was put into?

I.e

Input:

1200, 2400, 600, 600, 300, 300, 1200, 1200

Sorted into:

Group A: 2400 = 2400
Group B: 1200 + 1200 = 2400
Group C: 600 + 600 + 300 + 300 + 1200 = 2400

View 4 Replies

Input Text Display Output Text?

May 4, 2011

Basically, I want to have a text box that will display text associated with the text input.

For Example:

input : 512
output : TEXAS

or

input : 659
output : ALABAMA

I have heard that it is possible to do this, and I would like to find out a way to. Even if I need a separate text file with the arrays, I would like to get this to work.

View 10 Replies

Input Text And Output Text?

Jul 29, 2008

What's the code for input and output text?Ex.I have two textboxes. Textbox1 and Textbox2 I type in "1 2 3" in Textbox1 I press a button and it converts the numbers to it'scorresponding letter, like A B C. I need a code so that I can do that

View 1 Replies

No Output In Asynchronous Program - Retrieve Output After The Events Are Invoked?

Mar 1, 2012

What I am trying to do: There are three powershell scripts with different time delays as shown below.I am trying to run them asynchronously in .NET and I followed this article to implement Asyncrhonous programming. Where I am stuck:The I am not able to retrieve output after the events are invoked.The scripts are being called but then the program ends and it shows "Press any key to continue" in console windows.I don't what I am missing here.

Info: JobRequest is a class that I use to pass around information keep track of jobs.

Sub Main()
OurAsyncFunctionCalling("psDelayScript2.ps1", "-arg1 4 -arg2 5", 1)
OurAsyncFunctionCalling("psDelayScript1.ps1", "-arg1 2 -arg2 3", 2)[code]......

View 1 Replies

Unable To See In Output Window Number 5 As Output?

Sep 25, 2011

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Microsoft.VisualBasic.Interaction.Beep()
System.Diagnostics.Debug.WriteLine(3 + 2)
End Sub

Why I don't see in Output window number 5 as output?

View 4 Replies

VS 2008 MultiLine Output On Lable VB 2008?

Apr 10, 2010

I have an assignment to create a multiplication table. I am attempting to use the ControlChars.NewLine however I cannot seem to get it to display all of the results. Here is the code snipet and a image of what I need to end up with, My code only displays the final product string x * 9 = y. but doesnt display 1 thru 8.

View 3 Replies

VS 2008 Why Is The Output So Big

Oct 12, 2010

I'm comparing 2 files, each about 90MB. Here is my code to get the difference:

Dim bytOld() As Byte, bytNew() As Byte
Dim intHandle As Integer, i As Long
Dim u As Long
intHandle = FreeFile()

[code]....

The output (patch.dat) is over 800MB... Why is it so big? Can I make it smaller? (<10MB) How does the Patcher Here make Patch Files so small?

View 4 Replies

VS 2008 - Redirecting All Output From EXE?

Oct 30, 2011

Dim myProcess As New Process()
Try
Dim s As String
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.FileName = "flac.exe"
[Code] .....
The AppendText runs and works on an initial run of the exe, but the problem is that not all output is redirected. when using parameters I get no output from the stream, but running flac.exe at the command prompt reveals output of course. Does anyone know anything about redirects and how to make the above code redirect ALL output from the exe?

flac.exe is a lossless audio codec utility. I am making a frontend for it.

View 1 Replies

VS 2008 Combo Box Output?

May 16, 2010

don't know if anyone can help me out here. I have a combo box and basically when the user selects an option from that combo box, I would like it to produce text and an image in a group box to the right of the screen.

I have my layout set up but am unsure how to code the combo box to produce my output.

View 2 Replies

VS 2008 Private Sub Output?

Jan 6, 2011

I have a private sub that I have to call in different times with different textboxes when I click a button. So I made something like this private sub [just some things to change D link into V link not really important]:

Private Sub DtoV(ByVal input As String)
Dim vlinks As String
If input <> "" Then

[code]......

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved