Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.pascal.borland    |    Borland Pascal was actually pretty neat    |    2,978 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,234 of 2,978    |
|    Jean-Marc DURO to All    |
|    Re: PLEASE HELP!!! Retrieving Data    |
|    03 Aug 06 21:05:37    |
   
   From: jean-marc.duro@wanadoo.fr   
      
   PcolaBob a écrit :   
   > I am trying to learn Delphi 6. I am an experienced VB programmer. I   
   > have googled and searched and tried to find help in using the BDE   
   > Components, but all the help I can find deals with complex, high-end   
   > stuff, and I just need to know how to retrieve one freakin' record. :)   
   > I have tried to use a TTable, I have tried to use TQuery. I cannot   
   > figure out, or find documentation on how to access the data that either   
   > one pulls. It seems like every single explanation throws the data in a   
   > DBGrid, which I don't need.   
   >   
   > I have a public form level variable which is populated from another   
   > Form. Then on FormCreate for this form, All I need is a simple:   
   > "Select * from tblServices WHERE ServiceID = " + ServiceID   
   >   
   > Just one record. But I cannot for the life of me figure out how to   
   > retrieve the data, I've tried:   
   > Table1.Fields("SvcName")   
   > Table1.Fields!SvcName   
   > and everything else I can find and nothing works.   
   >   
   > PLEASE HELP... QUICKLY!!!   
   >   
   > Thanks,   
   >   
   > Bob   
   >   
   Don't forget it is Pascal: no double quotes for strings. Try   
   Table1.Fields('SvcName')   
      
   Jean-Marc   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca