home bbs files messages ]

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,791 of 2,978   
   Markus Humm to All   
   Re: I need help with a program asap   
   18 Jan 10 20:55:55   
   
   656dcf5e   
   From: markus.humm@freenet.de   
      
   Hello,   
      
   you know how arrays work?   
      
   You should first define a record type like this:   
      
   TProspectiveOwner = record   
                         name:String;   
                         street:String;   
                         city:String;   
                         income:Integer; {or whatever suits you}   
                       end;   
      
   then make a array out of it:   
      
   var prospectiveowners:array[1..10] of TProspectiveOwner;   
       singleowner:TProspectiveOwner;   
      
   Now you could store the data of 10 owners in a array.   
      
   You can do this:   
      
   singleowner:=prospectiveowners[1]; {fetch the first owner}   
   singleowner.name:='John Doe';   
   singleowner.income:=30000;   
   prospectiveowners[1]:=singleowner; {store the data back}   
      
   I hope this gives you some ideas how to do this.   
      
   Greetings   
      
   Markus   
      
   --- 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