Jump to content
Xtreme .Net Talk

flann

Avatar/Signature
  • Posts

    33
  • Joined

  • Last visited

flann's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Now i'm trying to put the values of the arrays into different arrays for the second call. All the arrays are getting zero'd out after the function. Dim BalanceArrayPlus() As Double = BalanceArray Dim MinMoArrayPlus() As Double = MinMoArray Dim PctArrayPlus() As Double = PctArray Dim PriorityArrayPlus() As Double = PriorityArray lblQualify.Text = CalADPSPayOffDate(CreditorNameArray, BalanceArray, MinMoArray, PctArray, PriorityArray, numRecs, accMargin, totalIncome) lblQualify.Text = Format(lblQualify.Text, "fixed") lblPlusQualify.Text = CalADPSPlusPayOffDate(CreditorNameArray, BalanceArrayPlus, MinMoArrayPlus, PctArrayPlus, PriorityArrayPlus, numRecs, curADPSPlusAccMargin, totalIncome) lblPlusQualify.Text = Format(lblPlusQualify.Text, "fixed")
  2. That's it, it changed the values. Thank you
  3. Yes the second one always returns 0, and yes I'm passing it the correct parameters. Function CalADPSPlusPayOffDate(ByVal CreditorName() As String, ByVal Balances() As Double, ByVal MinPymt() As Double, ByVal Pct() As Double, ByVal Priority() As Double, ByVal NumRecs As Integer, ByVal StartAccMargin As Double, ByVal curCombIncome As Double) As String This is the same for both of them.
  4. I added a watch to the two calls, and this is what they both say. Argument not specified for parameter 'CreditorName' of 'Public Funtion CalADPSPayOffDate...... What does this mean?
  5. When I debug I don't get any errors, and the first call has a value, the second call is 0. That is what happens no matter which one comes first, its always the first one to get the value and the second doesn't. I'm stumped :(
  6. I'm trying to use functions, I'm still pretty new to this. I have two function calls going to two different functions. No matter which one I call first, only the first one will work, not the second. I've switched them around and its always which ever one I put first that works. Any thoughts? lblQualify.Text = CalADPSPayOffDate(CreditorNameArray, BalanceArray, MinMoArray, PctArray, PriorityArray, numRecs, accMargin, totalIncome) lblQualify.Text = Format(lblQualify.Text, "fixed") lblPlusQualify.Text = CalADPSPlusPayOffDate(CreditorNameArray, BalanceArray, MinMoArray, PctArray, PriorityArray, numRecs, curADPSPlusAccMargin, totalIncome) lblPlusQualify.Text = Format(lblPlusQualify.Text, "fixed")
  7. I'm trying to create a dynamic dropdownlist, not in a datagrid, that populates the list based off of the current month, and then the previous 11 months. I've got it working to the point that it does populate the ddl, but then it is refilling it. Does anybody know of a good resource that shows how to do this?
  8. I got it, I need to get rid of the .tostring() part. Thanks anyway ;)
  9. I'm trying to use the Request.UrlReferrer.ToString() to get the referrer. It works but if you go straight to the page, meaning Request.UrlReferrer.ToString() is nothing, I get an Object instance not set to an instance of an object error. I tried.. If Not IsPostBack Then If Not Request.UrlReferrer.ToString() Is Nothing Then referrer = Request.UrlReferrer.ToString() End If End If I still got the same error. Any ideas?
  10. What do you mean? I use the same type of update statement on other forms, and they work fine.
  11. I'm trying to update a sql database field with a string value. I'm getting a wierd error saying "Invalid column name 'NO'". The field that I'm trying to update is just simply the value out of a dropdownlist, and the two values are 'yes' and 'no'. Here is my update statement. Dim sqlcommand As New SqlCommand Dim judgement As String = ddlLegal.SelectedValue sqlcommand.Connection = connPayables sqlcommand.CommandText = "UPDATE ClientInfo SET OutJudgements = " & judgement & " WHERE LeadID = " & intLeadid connPayables.Open() sqlcommand.ExecuteNonQuery() connPayables.Close() I know that the variable "judgement" is holding the correct value, what could be causeing my error?
  12. I'm trying to bind a ddl with a database field that is a Yes or No field. I can't seem to figure out how to make it work. In design view, I selected the field from the databindings, and then in code view put the normal... Me.SqlDataAdapter1.SelectCommand.Parameters("@LeadID").Value() = intLeadid Me.SqlDataAdapter1.Fill(DsLegal1.ClientInfo) Me.DataBind() My dropdownlist isn't showing me anything, shouldn't it automatically populate the dropdownlist?
  13. I have my datagrid working now, but I'm trying to add a dropdownlist with just a few items in it to my editable datagrid. I've searched online, and what I found seems very involved, is there an easy way?
×
×
  • Create New...