Question:
my vb program isn't working properly, urgent help needed !?
2011-10-18 09:01:52 UTC
i'm doing an assessment at school and i need help on it please ( this is legal and i am allowed to do so)

i'm using an unordered list ( the arraylist function in vb) to store ingredients that a user must time in - ive added item , quantity and ingredients to the list by doing item.add and storing the user's answer

when i am writing the file to a text file and storing it in my H drive , i am only getting fragmented pieces of the values i inputted into the disk , i'm sure i've done the code properly , and have used the vb string conversion function , and used the proper case function for the text. i cant take any code out of the room so this is the best description i can give. do you have any idea what could be wrong

eg my input would be : recipe_name = curry, ingredients = 1, item = curry powder , units= kilgrams , number_of_people_it_serves = 1

when this is written, i would find in my H drive :
file name = curry , which is correct

but the text inside that file is :
C
1

this is all i'm getting, do you have a clue what the problem is ?
Three answers:
larrybud2004
2011-10-18 09:08:08 UTC
Without a code sample, it's impossible to say.
?
2011-10-18 12:10:40 UTC
When you have a problem try to isolate what and where the problem is by simplifing the code.



Place a button on the form and copy a section of the code into its event handler then run it to see if you are getting the expected results.





Placing the following code in a button click event will demonstrate if you are correctly saving your string information to the array.





Dim ul As New ArrayList



ul.Add("recipe_name = curry, ingredients = 1, item = curry powder , units= kilgrams , number_of_people_it_serves = 1")



MsgBox(ul.Item(0))
dagner
2016-12-08 19:25:53 UTC
i'm no longer as a lot of an expert as others that use this web site... yet as you've created an alias for p.call (ie Patient_name), do you should use Patient_name ASC as your ORDER through clause quite of p.call ASC? properly worth a attempt, besides...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...