[afnog] HELP : Compile Error: Can't Assign To Read-Only property

Simbo N Ntiro simbo.ntiro at ethinktanktz.org
Wed Jan 10 12:29:07 UTC 2007

Dear Vitalis,


I am forwarding your request for help to another forum that might be able to


Dear AfNog Members,


If you are able to assist Vitalis re: his email below, please contact him
directly as he is not a list member.






From: vitalis Agati [mailto:vndume at yahoo.com] 
Sent: Wednesday, January 10, 2007 1:15 PM
To: Sharing With Other People Network
Subject: [swopnet] HELP : Compile Error: Can't Assign To Read-Only property


 Hi  all

 Iam  programing with  VB where i pull the data   from  access Database  and
fill them to the  form( listbox)  Once  I Select  the list from the listbox
I get this error



Compile Error: Can't Assign To Read-Only Property.


  here is my code to select from the list


Dim itemNo As Integer
       For itemNo = 0 To lstAfisa.ListCount - 1
        If lstAfisa.Selected(itemNo) = True Then
        lstAfisa.Index = itemNo
        afisaNo = lstAfisa.Text
        End If
    Next itemNo


Have tries to google  the error  I dont get the right  choice for me.


Any Help please.


= Vitalis Agati Ndume =
= Dar Es Salaam Institute of Technology =
= Ass.Lecture-Computer Engineering =
= Box 2274 Dar Es Salaam =
= Phone:0784-506347. =
= Office Phone:2151709 =
= Fax :255-22-2152504 =



Cheap Talk? Check
=39663/*http:/voice.yahoo.com>  out Yahoo! Messenger's low PC-to-Phone call
rates. Dgroups is a joint initiative of Bellanet, DFID, Hivos, ICA, ICCO,
IICD, OneWorld, UNAIDS and World Bank --- You are currently subscribed to
swopnet as: sntiro at costech.or.tz To unsubscribe send a blank email to
leave-swopnet-1035298T at dgroups.org
This message has been scanned for viruses and 
dangerous content by  <http://www.mailscanner.info/> MailScanner, and is 
believed to be clean. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://afnog.org/mailman/private/afnog/attachments/20070110/dfb81702/attachment-0005.html 

More information about the afnog mailing list