jeffb.bbs@shark.cs.fau.edu (Jeffrey Boser) (04/15/91)
I have a file (structured) with up to 1000 chunks of information, each with their own name. The filled slots may not be consecutive (1,3,4,5,20...) I want to add the names to a pop-up menu, but since the slots are accessed using IDs, and not names (what if two had the same name?), I need to be able to take a menu item and store in it, invisibly, the ID of its corresponding slot. (or is there another way that comes to mind.) I thought about taking the last two bytes of its name as an int, but when the menu manager copies the name, it didnt copy anything beyond the last valid character. (Maybe it will, or I did it wrong.) anybody got any helpful insights? thanks in advance. .....jeff jeffb.bbs@shark.cs.fau.edu "You call these opinions?" "Make something an idiot can use, and only an idiot will use it" -RAH
hairston@henry.ECE.CMU.EDU (David Hairston) (04/15/91)
[jeffb.bbs@shark.cs.fau.edu (Jeffrey Boser) writes:] [] ... [] had the same name?), I need to be able to take a menu item and [] store in it, invisibly, the ID of its corresponding slot. (or is [] there another way that comes to mind.) [] ... [] anybody got any helpful insights? umm, don't overburden the menu items. use a separate structure, that you define, to handle the correspondence and etc. ...ehh? -dave- hairston@henry.ece.cmu.edu