Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in accessing combo box elements

Status
Not open for further replies.

ssv123

Programmer
Oct 7, 2003
6
US
Hi,
I am having a Combobox in which i have added few strings.

[pre]
do i = 1, 10
ret = DlgGet(dlg,IDC_COMBO,str)

if(str=='A') then
functionA(i).alphabet= str
elseif(str=='B') then
fuctionA(i).alphabet= str
endif
enddo
[/pre]
Asume there are only 2 strings added A and B, then Now my
problem is all the time functionA(i) is having the same value though i am changing the str.
I wanted the output like this
fuctionA(1) = A
fuctionA(2) = B
fuctionA(3) = A
fuctionA(4) = A
.
.
All these values are depenedent on the selection in the combo box. what ever I chose in the combo that str should update the array fuctionA(i).
Which i am facing problem.. Could anyone help with the correct code...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top