Recipe calculator not working, no errors

This is my coding for
my calculator to generate new quantities for a recipe. For some unknown reason, it will not display the new quantities in the second listbox. Any help would be greatly appreciated.
Public Class Form1
    Dim arrsize As Integer =
0
    Dim arrsize1 As Integer =
0
    Dim arrsize2 As Integer =
0
    Dim Ingredients1(2,
arrsize) As String
    Dim Ingredients2(2,
arrsize2) As String
    Dim inglist1 As String = "Ing,
Amount, Unit" & ControlChars.CrLf
    Dim inglist2 As String = "Ing,
Amount, Unit" & ControlChars.CrLf
    Dim calculation As Integer
    Private Sub AddIngButton_Click(sender As System.Object,
e As System.EventArgs)Handles AddIngButton.Click
            Ingredients1(0,
arrsize) = Ing.Text
            Ingredients1(1,
arrsize) = Amount.Text
            Ingredients1(2,
arrsize) = Unit.Text
            inglist1
= Ingredients1(0, arrsize) & ControlChars.Tab
& Ingredients1(1, arrsize) & ControlChars.Tab
& Ingredients1(2, arrsize)
            Ingredients1list.Items.Add(inglist1)
            ReDim Preserve Ingredients1(2,
arrsize)
            Ing.Text
= ""
            Amount.Text
= ""
            Unit.Text
= ""
    Private Sub CalcButton_Click(sender As System.Object,
e As System.EventArgs) HandlesCalcButton.Click
    do until arrsize1
= arrsize
                Ingredients2(0,
arrsize1) = Val(Ingredients1(0, arrsize1))
                calculation
= Val(Ingredients1(1, arrsize))
                calculation
= (calculation / OldNumServes.Text) * NewNumServes.Text
                Ingredients2(1,
arrsize1) = calculation
                Ingredients2(2,
arrsize1) = Val(Ingredients1(2, arrsize1))
                inglist2
= Ingredients2(0, arrsize) & ControlChars.Tab
& Ingredients2(1, arrsize) & ControlChars.Tab
& Ingredients2(2, arrsize)
                Ingredients2list.Items.Add(inglist2)
                arrsize1
= arrsize1 + 1
            Loop
    End Sub
End Class

Hi Jack,
I'm afraid that you posted your question on the wrong forum. This forum is dedicated to Project Online microsoft scheduling solution.
Please go there: http://social.technet.microsoft.com/Forums/en-us/home finding the right place for your question.
Cheers.
Guillaume Rouyre - MBA, MCP, MCTS

Similar Messages

  • Share  calculation  Not working in the report

    Iam surprised not to ge the simple share calculation not working at my report.
    I have a dimension and corresponding values ( measures) .I made a Total at the end of the report. and I want to calcualte share of Total to each corresponding value.
    how to do this, any thougts,...
    I have used calculated memebers for this, But I wan to make the percentage of the total ( which is calculated inside Tool itself)
    Please help....

    Prassad,
    Not totally sure what you are trying to achieve but there a couple of possible solutions:
    1) Total = total of all dimension members. Assuming you only have three dimension members then you should have a fourth member called ALL_DIMS or something similar. In the Share calculation template you need to specify the Total level as the basis for your share calc. This will generate the following result:
                             Revenue  % Share
    - All Members     600         100%
         A                  100           17%
         B                  200           33%
         C                  300           50%2) The total you are referring to is in fact a sub total and is the result of adding together only the results for A + B + C, i.e. you have hundreds of dimension members but you specifically want to see a total for just these three members. To do this create a new custom aggregate call "My Total" and add together the dimension members A + B + C - Custom Aggs are a new feature to Discoverer OLAP (Checkout Mark Rittman's excellent blog article for more information on this feature: http://www.rittmanmead.com/2006/11/13/checking-out-the-new-discoverer-101220-features/)
    Then in the Share calculation wizard set the basis for your index using the last option in the list "Specific Dimension Member" and select your new custom aggregate member.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded." How can I repair?

    Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded."
    How can I fix it?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I downloan and updated my iphone software ...i have tried to activate it back but it is not working out error message always what can i do?

    i downloan and updated my iphone software ...i have tried to activate it back but it is not working out error message always what can i do?

    this is the error message........we are sorry we can not continue with your activation please contact customer care
    another message will say actiavtion server not available;
    please what should i do?

  • Accidentally copied microsoft word icon  to desk top.   Now program will not work. Error message says cannot be opened because of problem. How do I re-install ?

    Accidentally copied microsoft word icon  to desk top.   Now program will not work. Error message says cannot be opened because of problem. How do I re-install ?

    Drag the Word icon back to where it belongs.
    Applications > Microsoft Office 2011 > Put Word there.
    I'm assuming you have Office 2011. If you have 2008 there should be a similar location to put Word.

  • Hi Ive downloaded the free trial version of Fcpro x and its not working, an error message comes up saying: You can't use this version of the application ''final cut pro trial'' with this version of OS X You have OS X 10.8.5. it requires 10.9 or later,Help

    Hi friends.
    Ive downloaded the free trial version of Final cut pro x and its not working, an error message comes up saying: You can't use this version of the application ''final cut pro trial'' with this version of OS X You have OS X 10.8.5. it requires 10.9 or later, please can anyone Help.

    Just download Mavericks (10.9) its free and installed it (Mac App Store)

  • Outlook 2003 Recipent Selection Not working on Word created emails

    I have a user who when using word as his default editor, can see previously emails contacts but cannot select them. Selecting them just causes the select box to dissapear leaving the characters in the textbox.
    He's set his default editor as outlook but the problem there is when he's typing long emails in a rich text format only the initial draft is sent rather than the entire email. I've read that changing the editor to word is a fix but with recipent selector
    not working his outlook is pretty un-usable.
    Anyone seen this before? He's running on windows 8.1 with office 2003.

    Hello,
    What's the difference between the permissions?
    Can the users receive emails from OWA?
    In addition, please make sure your Outlook 2007 has installed the latest update. And try to use
    outlook/cleanips and check if it helps. See:
    http://support.microsoft.com/kb/968773/en-us
    Best Regards,
    Steve Fan
    TechNet Community Support

  • Formula calculation not work, when one inspection characteristic was set by formula

    In the inspection plan, set 0040 charac. "calc. charac." in control indicators, and the formula is "15.86/C0020*100".
    when the inspection lot was created, the 0040 charac. could be edit, and the formula title  "formula calculation not by SAP interpreter".
    However by the same basic data in QAS system,the formula title is "formula calculation by SAP interpreter", and the charac. couldnot be edit, only be claculated by the system.
    Anybody know why this error occurred?
    this  is the question in PRD system,
    this is the right situation in QAS system

    Hi Pei,
    Please can you check the characteristic value using C00020 (C0 then 2 zeros before 20. Total 3 zeros before 20) instead of C0020 and check if this is working.
    You can take some clues form the below thread -
    http://scn.sap.com/thread/1672782
    Thanks to all previous contributors of the attached thread!!
    Thanks,
    Arijit

  • Calculations not working in Reader Enabled PDF Form

    I created a basic Excel spreadsheet and imported it into Acrobat 11 to make a fillable form. Acrobat inserted most of the fields but I had to add some to complete the form. I went into the properties of the fields and set up the calculations using the standard Acrobat calculations. I want the product of field1, field2. When I preview the form, the calculations work. I then close the form for editing and save as reader extended PDF with more tools. When I open the pdf in reader the calculations do not work. I then researched many possibilities on the forums and even called adobe twice with no resolution. I was able to import a blank excel spreadsheet, then created three new fields with calculations and they worked in reader when I saved the form as a reader extended pdf with more tools. So my question is where does my problem originate? Is the problem with the excel spreadsheet or excel formatting ( Excel 2013)? Is the problem with Acrobat 11? When I asked the support tech at Adobe he said that he hasn't heard of this problem before. I have spent hours and hours on this, I have created new forms from scratch and even on different versions of word and acrobat. I figured these calculations should work, am I wrong? ( I have also tried using every calculation option including JavaScript). Thanks in advance for any help.

    It's hard to say without seeing a sample. If you can post one somewhere, I'd be happy to test it out. If you can't post somewhere, you can email me at: acroscript at gmail dot com

  • Apple tv is not working: "an error occurred loading this content. Try again later".  Any idea?

    My apple tv is not working.  I have rented 4 movies and I cannot open any of them.  My Apple TV is located in USA.  Anywy I am traveling at the moment outside US, but cannot watch my rented movies.  I get the following error message: "an error occurred loading this content. Try again later".  Any idea?  What is the solution for this issue?

    I have 4-5 mbps for Downloads.  It works fine when opening websites and downloading large files from the Internet.  I have set-up my IP to "automatically" as you suggested, even though I believe this was the default setting.
    I changed the resolution in Settings > Itunes Store > Video Resolution from 1080p to 720p.  Then I rented again "Salmon Fishing in the Yemen", (but now using HD 720p) and I get exactly the same error. 
    Then I changed it to Standard Definition and now is working.  Basically what I have found out is that if I rent movies in HD 1080p or HD 720p it will simply not work. 
    I believe 4-5 mbps is very fast internet connection, so the errors above should not be appearing.
    Feedback for Apple TV developers is to show estimated time for full downloads when using 1080p or 720p so the user can understand what is going on. Very frustrating as I just bought the Apple TV for watching HD movies. I have a 55" HD Sony Bravia tv ready to be used... !!! 

  • Updated Acrobat and now Javascript calculations not working in new forms.

    I had created forms for my work that allowed me to calculate back dates from a given date to instruct the form users when components of a project were due. Below is the script I used- I am NOT a programmer and this was taken from another forum. It has worked successfully for 2 years in both Acrobat 9 & 10 and in various forms I have made.
    var strStart = this.getField("0VendorArtApproved-2wk").value;
    if(strStart.length)
      var dateStart = util.scand("mmm d, yyyy",strStart);
      var oneDay = 24 * 60 * 60 * 1000;
      var dueMillis = dateStart.getTime() - 21 * oneDay;
      var dueDate = new Date(dueMillis);
      event.value = util.printd("mmm d, yyyy",dueDate);
    else
      event.value = "NA";
    "0VendorArtApproved-2wk" is the field the previous date was taken from- this and the amount of days "- 21" changes from field to field. This form has 3 levels that it calulates dates from- which starts with a single initial date entered into a text box by the user. This allowed the user to see when different elements of a project were due. Sorry if this seems basic to all the Javascript masters but I am really very clueless on prgramming speak and only know what I have read from forums.
    The last version of the form that worked successfully was in Oct 13', I went to create a new form and copied these formula boxes to a new form and now half of them do no work.
    I have rechecked my formulas and formatting and cannot find and issue. They are exactly the same. One works and one does not. The only thing I can see different from the 2 forms is that I am certain there were 1 or 2 updates to the Acrobat software itself that could possibly have caused an issue.
    So I have 2 documents- 1 created in October 13' that works and one created today Jan 14' that does not work. They have the same formulas.
    Anyone aware of changes to Acrobat or errors in my formula that could have caused this? I am in version 10.1.9

    Applied this fix. There was an error in the NEW document. I redid the formulas in the NEW document and that did not work. Still had the same problem. 
    SO I went back and redid the formulas in the fields in the OLD document to the revision I needed and that worked. All I was trying to do was tweak the number of days between one element and the next in this area and there were a bunch of other revisions to the form so I figured it was easier to start fresh.  I will just make all the revisions to the OLD document- which will be a lot of work, but at least my formulas are working. Not an ideal fix but something must have been glitchy in the new document and I now have a workable form.
    I believe some kind of odd interaction happened when I copy and pasted the fields from document to another.
    Thank you so much for your help! I am days away from maternity leave so I had to get this figured out fast!

  • ICloud will not work. Error upon PC Boot Entry Point sqlite3_wall_checkpoint could not be located. How do I fix?

    iCloud will not work on my PC.  When I boot my PC I get an error saying, "The Procedure Entry Point sqlite3_wall_checkpoint in the dynamic link library SQLite3.dll".  How do I fix this?

    I'd first try uninstalling and reinstalling your MobileMe control panel, dc. Does that clear the message up?

  • Calculations not working in browser window.

    I have a .PDF form with several points of of user data input, with other fields in the form doing the math for the user. My issue is that when the user downloads the form, it usually automatically downloads in a browser window and while they can view it and tab through it, none of the calculations are performed.   The only way I can have users use it the way intended is to ask them to open it Reader...or use Acrobat.   Is there a setting or something that would help it perform correctly in the browser window?  Thanks very muchad Here's the copy http://www.villageweaver.com/warp_calc_worksheet.pdf

    It works in a browser for me. Do the users who this is not working for have Reader or Acrobat instead of Preview? If they have Reader or Acrobat do they have javascript enabled within Reader/Acrobat?

  • Oracle 9iAS R2 - reports are not working  - JSP Error

    dear All
    We are having issue in our Oracle 9i AS R2, the reports are not working, this thing happend suddenly , while runing any report the following messages are coming
    ==============
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/repdemo/examples/Tools/test.jsp
    Exception:
    org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 0 completed: No
         at com.inprise.vbroker.ProtocolEngine.PortfolioImpl.getConnector(PortfolioImpl.java:79)
         at com.inprise.vbroker.ProtocolEngine.ManagerImpl.getConnector(ManagerImpl.java:147)
         at com.inprise.vbroker.orb.DelegateImpl._bind(DelegateImpl.java:196)
         at com.inprise.vbroker.orb.DelegateImpl.verifyConnection(DelegateImpl.java:365)
         at com.inprise.vbroker.orb.DelegateImpl.is_local(DelegateImpl.java:493)
         at org.omg.CORBA.portable.ObjectImpl._is_local(ObjectImpl.java:356)
         at oracle.reports.engine._EngineReportStub.doneReport(_EngineReportStub.java:36)
         at oracle.reports.definition.RWJspProxy.doneReport(RWJspProxy.java:261)
         at oracle.reports.definition.RWReport.done(RWReport.java:1087)
         at oracle.reports.jsp.ReportTag.release(ReportTag.java:398)
         at oracle.jsp.runtime.OracleJspRuntime.releaseTagHandler0(OracleJspRuntime.java:1109)
         at oracle.jsp.runtime.OracleJspRuntime.extraHandlePCFinally(OracleJspRuntime.java:1213)
         at examples.tools._test._jspService(_test.java:292)
         [SRC:/examples/Tools/test.jsp]
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    -=================
    please help to resolve this issue.
    thanks in advance.
    regards

    Dear All
    Just to share the solution of the problem.
    We restarted the XServer which is on the other machine then Oracle 9i AS Middle Tiere and Infra. Once we restarted the XServer machine, and restarted the reports server , every thing back to normal.
    regards

  • COMPONENT MONITORING  in the RWB is not working /throwing error

    HI
    I ve recently installed a new PI 7.0 SP 18 , but my COMPONENT MONITORING  in the RWB is not working , as i click on COMPONENT MONITORING it throws an error :
    java.lang.NoClassDefFoundError: com/sap/aii/rwb/exceptions/HttpException
    , pl help
    thanks
    mojib

    Hi Mark ,
    Thanks for your timely help , it has solved my problem ,
    thanks once again
    rgds
    mojib

Maybe you are looking for

  • After down load of Mavericks my macbook pro will not boot up.

    Will not boot after many trys of on and off.

  • System wide lag

    Hello guys, new member here. I'd like you guys to help me out with something here. I have a 13 inch, mid 2013 macbook pro with a 2.9 ghz i7, 8 gb RAM and a 750 gig HDD. My problem is every now and then there is a system wide lag which freezes pretty

  • Where is the "search discussions box"?

    I would like to search the discussions base before posting a new inquiry. I remember a search box that was in the upper right of the area but I don't seem to be able to find it now? NEPA

  • Wocka 0.5 - checkinstall for Arch Linux

    Last updated: 17th-Feb-2007 With Wocka you can do: ./configure make su wocka and you'll get the application installed, and a pacman db entry too. Wocka automatically figures out the package name, version and/or subversion revision, and if it can, oth

  • JCA SOA 11g - PLSQL bounded to Name of Parameters

    Hi I am calling a PLSQL package using JCA in BPEL11g. When i create the JCA, i have to connected to the DB and selected the package. As a result i have the XSD and WSDL for the same in terms of In and Out parameters. But when i change the "name" of I