Modifying Code To Integrate A Function Procedure
Jun 4, 2009I'm trying to modify this program so that a function procedure determines the student's grade. The problem is, I don't even know where to start. here's my current code:
[Code]...
I'm trying to modify this program so that a function procedure determines the student's grade. The problem is, I don't even know where to start. here's my current code:
[Code]...
I finished coding an application for converting Celsius to Fahrenheit, and vice versa. I used the Sub Procedure to convert them. What I need now is to modify it. I would have to use the Function Procedure instead of my Sub Procedure.
[Code]...
know in 2008 if you have procedures or functions. that there's a little "-" or "+" that lets you expand and collapse that procedure or function? I was wondering if anyone knew how to create a section so I could collapse it within the procedure? The only way I know it will do it between functions or procedures and things like that but not within the procedure.
[Code]...
Im a student doing an assignment, how do i pass the value from a sub procedure to a function procedure....i want to pass the value from decSubtotal to a function procedure named CalculateDiscount; check out my code--
[Code]...
i able to get data then i click second time i got error Procedure or function "procedure name" display has too many arguments specified" why this error. [code]
View 2 Repliesi used to make object of paintdotnet class in my project i.e in vb.net on button press event
Dim m = New MainForm()
m.Show()
the form code of paintdotnet get called successfully meanwhile paintdotnet used to search for resource call Resources class file which internally call PdnResources class file and code below shows exception
PdnResources
{"Could not find any resources appropriate for the specified culture (or the neutral culture) on disk.\r\nbaseName: PaintDotNet.Strings.3 locationInfo: <null> fileName: PaintDotNet.Strings.3.resources"}
[code]....
if i used to run paint.net standalone then it works fine without any exception/error
since upgrading from 2008 to 2010 i have seen an issue where i pause my vb.net project,modify some code, resume, but the app does not execute the new code, it continues as if nohthing was changedery strange, very frustrating
for example
msgbox("1")
if i pause my app and change this to
[code].....
I'm testing the code below from another author, which works well for reading in the data. Despite this, once the data is populated I also need the DataGrid to be able to accept and delete data too. Is it possible to modify the code for this? I tried several things (in properties too) but am not sure if it is possible in this example.
Dim statesXml As XElement = _
<states>
<state name="California">
<abbreviation>CA</abbreviation>
<year>1850</year>
[Code] .....
I have a VB windows form for users to put in their payment amount and credit card information for direct payment. I have downloaded the .NET and Java code snippet from paypal for direct payment.How do I integrate the .NET or Java code into the VB form. Finally, how do I pass the parameters from the form to the snippet code.
View 3 RepliesFrom my initial readings on unit testing it is wise to put all of your setups and tests in a separate project from the code being tested.I've recently begun reading The Art of Unit Testing, trying to discover how to break dependencies on things such as database calls.The methods offered involve changing areas of the test code, such as adding specific interfaces and "stub" methods to the production code.This seems to defeat some of the good things about keeping tests and production code separate.Is there any recommended dependency-breaking technique that doesn't involve changing production code?
View 3 RepliesFor Example: I need to develop a Small Inventory program for nearby Super Market and the need is a QR Code should be Generated for the Model Number of a Product Eg: A for Iphone and then we scan the QR Code image by Scanner connected to the PC it should automatically fill the letter " A " in the input box so that i can use that for searching the product " Iphone "
View 2 RepliesLocality Not repeating code..Modifying program means modifying one aspects.
View 11 RepliesI modified some code to suit one of my other programs, but have come across a difficulty: For some reason, the output file is not outputting. I can tell all the calculations are being made (my computer is loud), but it's just not outputting.What should I look out for when modifying stanav's code that would cause the output file not to be outputted ?
View 6 RepliesI've seen this great example of serial communication in VB.NET
[URL]
I try to use it in a project I am working on but somethings are not clear to me.
1: Now the send and received data is shown in one RichTextBox but I would like to split this into two RichTextBoxes (RtbSend and RtbReceived).It is unclear to me how and were data is assigned to the RichTextBox?
2. the received data is shown in the Richtextbox as one long line, I would like to get a new line for every send message.So for example: I I send "test" four times, I would like to see:
Test
Test
Test
Test
now I see: Test Test Test Test I've tried ctrlf but this does not work.The example describes that "comPort_DataReceived" is executed when data is waiting in the buffer. Where can I see the eventhandler responsible for this? How does it know data is waiting?The problem is this kind of coding is a bit to difficult for me. I want to understand the code before I implement it into my project.
I'm trying to update some data fields in an existing data table, and want to access the data directly. I know it's possible, and I used to do it years ago in VBA, where you could do things like
[Code]...
I have to get a value in $.I have 2 radio buttons:
-Residential Customers
-Business Customers
I have 2 List boxes:
-Premium Channels
-Connections
I also have a total Text Box and a calculate button..My goal is to get a cost given the information from the user. the list boxes will have preassigned numbers in them..The residential Customers have to pay a $4.50 Processing fee, a Basic service fee of $30 and 5$ for ever Premium Chanel they buy. The Business Customers have to pay a processing fee of $16.50, a basic service fee of $80 for the first 10 connections (4$ for any connection after that) and 50$ per Premium Chanel (no limit)
how to make the function procedure..e <input id="gwProxy" type="hidden"><!-- Session data--></input> <input id="jsProxy" onclick="jsCall();" type="hidden" />
View 3 RepliesI am trying to get the value of the CategoryID so that I can insert that value into the database when an admin wants to update product features. The stored procedure that was written is for a ListView, so I was hoping I could put something hidden in there to get the ID. When I put the Hidden Field on the page and tried to get the ID, I got the error I mentioned in the title.
<ul id="categories">
<asp:ListView ID="lvAncestorCategories" runat="server" DataSourceID="dsCategoryAncestors">
<ItemTemplate>
[code]....
I am recieving this error and i cant think why. I have checked the number of parameters being passed as well as the number of required paramaters from the sp ,regenerating the data set has given me no look.
Public Sub GetRows(ByVal [Option] As String, ByVal searchString As String)
Me.DataSet11.Clear()
SqlSelectCommand1.CommandType = CommandType.StoredProcedure
[code]....
I've attempted to use a function in my code to calculate shipping and handling. When I enter my test data quantity 2, weight 3 and price 19.95. The result displayed is that my shipping and handling is 0 but should be 1.75. This is what my shipping and handling function looks like. The name of the function is shipping_handling it accepts a parameter by value and it stores the parameter in a variable called OrdersWeight_Decimal.
[Code]...
Are the terms 'Function' and 'Procedure' synonomous?
View 2 RepliesI have to turn the GetFwt function on the code into a sub procedure. Below is the original
' Project name: Harvey Industries Project
' Project purpose: The project calculates an employee's weekly net pay.
' Created/revised: <your name> on <current date>
[Code]....
I am trying to call a stored procedure and get the idn_num as output on entering an input of a name. I get a "Procedure or function 'aaa' has to many arguements specified" error when I try to run my VB.net code
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:ParameterProject esttable.mdb;Persist Security Info=False" & ";Jet OLEDB:Database Password = "
conn.ConnectionString = "Data Source=localhostsqlexpress;Initial Catalog=PPRT;Integrated Security=True;Pooling=False"
[Code] .....
I just recently had to rebuild my development environment from scratch. I've noticed that when I'm in debugging mode and I have a breakpoint set on a Procedure or Function, instead of stepping into that P or F, it just executes it without actually stepping thru the code. What do I need to change in my "Tools" and "Options" area?
View 6 RepliesI know the major difference is that Sub Cannot return a Value while a Function Can.
View 3 Repliesim getting this error when i run my app, i have looked at my stored procedure and VB code and cannot see anything wrong with been stuck on this for the last couple of days
View 5 RepliesThis code updates the fiscal year automatically.[code]...
View 1 Repliesthis code, it gives always error on execution of command is comes.
Try
DBconnect()
cmd.CommandText = "Designation_INSERT"
[code]......
I'm trying to create a VB .NET Sub (or function) to access to FTP server (FTPS, login, password). The purpose is to delete a specified file on this server. I have create a function which work with FTP (see below) but I need the same with FTPS. [Code]
View 3 Replieson a Windows Form, an object myObject is bound to myObjectDataBindingSource like this:myObjectDataBindingSource .DatSource = myObject on the form, i have a check box bound to the property: chkProp1 for example of the object: myObjectDataBindingSource In the code when the checkbox is clicked, I need to go in code and change another text property of the object txtProper2 for example like this:
Private Sub chkProp1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkProp1.CheckedChanged
[code].....