Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have an structere variable<br />
<br />
Structure Settings<br />
        Dim SqlIp As String<br />
        Dim SqlName As String<br />
        Dim SqlDataBase As String<br />
        Dim SqlUser As String<br />
        Dim SqlPass As String<br />
End Structure<br />
<br />
and i have a table on SqlCe, <br />
<br />
Table Name= SETTINGS<br />
ID       SettingsName           Value<br />
1        SqlIp                  127.0.0.1<br />
2        SqlName                local<br />
3        SqldataBase            NortWind<br />
4        SqlUser                sa<br />
5        SqlPass                1234<br />
   <br />
how may i set this structered variables with the data on table at win.ce mobile device with vb.net
Posted

You load the data from your database, then you read each row, and write code to load that data into instances of your structure. If you have some sort of ORM you can create a mapping, but VB itself doesn't give you any sort of automagic way to map a struct to a table.
 
Share this answer
 
is it possible to use a loop like "for each ....." for the setting structered variable
or is there a way like my.settings and propertygrid for saving the user settings at mobile device developing.
i made it with a setup.ini file before that but it was so painful
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900