latebound expression Error 
Author Message
 latebound expression Error

I have an app that reads in the elements of an xml doc.  The elements are
DSN's.  I am trying to allow users the abilty to edit the DSN settings.  I
have created a structure for the dsns and as I read in the elements they are
assigned to their respective structure and then added to the arraylist. I
want to be able to write the changes back to the xml doc.  I can do this for
a single record but if the users wants to make multiple changes I would like
to rewrite the xml doc only once instead of for every change. I tried doing
this by changing the values in the arrray list by navigating to the proper
index but once I try to assign to the arraylist I get

An unhandled exception of type 'System.Exception' occurred in

Additional information: Latebound assignment to a field of value type
'DSNInformation' is not valid when 'DSNInformation' is the result of a
latebound expression.

Here is a snippet of the code:
sUpdateDSN.DataSourceName = ComboDSN.Text

sUpdateDSN.DatabaseName = txtDBName.Text

sUpdateDSN.Description = txtDesc.Text

sUpdateDSN.LastUser = txtUserName.Text

sUpdateDSN.Server = txtServer.Text

nDSN = ComboDSN.SelectedIndex

arrDSNS(nDSN).DataSourceName = sUpdateDSN.DataSourceName

arrDSNS(nDSN).DataBaseName = sUpdateDSN.DatabaseName

arrDSNS(nDSN).Description = sUpdateDSN.Description

arrDSNS(nDSN).LastUser = sUpdateDSN.LastUser

arrDSNS(nDSN).Server = sUpdateDSN.Server

Thanks for any help

Sat, 17 Sep 2005 09:53:08 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Error 20639: SQL Expression error - Error in creating SQL Expression COM Parser (cpeaut32)

2. Error 3075: function isn't available in expressions in query expression

3. Crystal error: error ocurred reading records: error in compiling sql expression

4. LateBound Event Handling...

5. EarlyBound vs LateBound, I can't use early Bound

6. Latebound WebBrowser Control

7. EarlyBound vs LateBound, I can't use early Bound

8. Function isn't available in expressions in query expression

9. Help: Function isn't available in expressions in query expression

10. expression error

11. DEV ASHISH - Bugs: Undefined Function in Expression (Error 3985)

12. syntax error (missing operator) in expression.


Powered by phpBB® Forum Software