|
-
Apr 5th, 2009, 07:51 PM
#2
Re: Array Task Storing Product Codes
For entering data you can use a TextBox and a Button, then when the user clicks the button verify there is a number in the TextBox using IsNumeric(). About the Array, (assuming it's not a fixed length array) you can initialize it like ReDim ArrName(0) in Form_Load event. Then you need to verify if the number has been entered before, use a FOR / NEXT loop to to compare every item inside the array with this number. Finally, if it's not present you can add it using ReDim Preserve ArrName(UBound(ArrName) + 1) and then ArrName(UBound(ArrName)) = TheNumber. Try this and send feedback for every trouble it could arise.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|