Jump to content
Fórum Script Brasil
  • 0

Arquivo (.dat) no DBGrid


moisesf

Question

Criei o arquivo pass.dat via delphi com os campos abaixo:

Name : string[50];

Pass: string[50];

eMail : string[30];

Description : LongInt;

Como coloco os dados no DBGRID1, Cliquei 2x no dbgrid e adicionei os campos, mas não sei com colocar os registros nele.

E estou chamando o arquivo desta forma:

var

Member: Tregistro ;

F : file of Tregistro;

begin

AssignFile(F,'pass.dat') ;

Reset(F) ;

try

while not Eof(F) do begin

Read (F, Member) ;

Como coloco os dados ono DBGRID1?

end;

finally

CloseFile(F) ;

end;

end;

Desde já Muito obrigado pela ajuda.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...