Re: Using ADO with data from a binary file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




<sam.s.kong@xxxxxxxxx> wrote in message
news:1127865491.475215.9530@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello!
>
> I have been assigned to a small project which implements a program that
> imports data from other applications to our DB (Access).
> Some data are *.dbf so no problem.
> But some are custom binary files that I need to parse.
> Users will select rows to import.
>
> Is there are way that I can bind the data from a custom file to ADO so
> that I can show the data in a data-bound datagrid without saving the
> data into a database?
>
> Similarly, it there a way to bind an array of structures to db-control?
> (Basically this is the same question as the first one, I guess).
>
> Thanks in advance.
>
> Sam
>

We are talking about VB6 and not .net, correct?
If so the answer is Yes. depending on how much 'work' you want to do.

Taking the last question first. It is very easy to create your own
DataSource to bind to any control that takes a 'datasource'. Look up "Data
Aware Classes" in the MSN Help. Also take a look at the "MS Data Binding
Collection".

You can then modify this 'class' to do anything you want. For example it
could read in a file, prepare its own collection, or recordset - and then
make the data available as a 'datasource'.

So to answer your first question, you wouldn't 'bind' a custom layout to
ADO, you would create a "Datasource" that would provide data just like ADO.

hth
-ralph


.



Relevant Pages

  • RE: Finding a way to bind ASP.NET controls(two way) to a typed-dat
    ... custom datasource will greatly improve the reusability and flexibility. ... I think that we should let the ObjectDataSource control do less things ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: Finding a way to bind ASP.NET controls(two way) to a typed-dat
    ... datasource control, I think the best means maybe view the .net buildin ... #Simplify UI Development with Custom Designer Actions in Visual Studio ... I think that we should let the ObjectDataSource control do less ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: ok, 2 issues
    ... and my method to bind my grid takes parameters to get the data back from the ... ** If you do not use DataSource control to bind data to GridView, ... to manually bind DataSource object to GridView.DataSource property ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: move computer to ou
    ... you bind with WinNT using the NetBIOS name and bind with LDAP using the DN. ... The NameTranslate interface is used in many environments/languages, ... The LDAP provider exposes all attributes of the computer object. ... NetBIOS name) is to use ADO to search AD. ...
    (microsoft.public.windows.server.scripting)
  • Re: move computer to ou
    ... It's true that you bind with WinNT using the NetBIOS name and bind with LDAP using the DN. ... The NameTranslate interface is used in many environments/languages, so the documentation is not just for VBScript. ... The LDAP provider exposes all attributes of the computer object. ... Of course, both methods must search, but NameTranslate is optimized for the conversion, while ADO can be used to retrieve any attribute values for any object given any search criteria. ...
    (microsoft.public.windows.server.scripting)