[fpc-pascal] How to assign values to a record variable?

mili milimeter at 163.com
Thu Aug 1 04:11:05 CEST 2002


Hello, Every one 
 
  Could anybody tell me that how to assign all values to a record 
typed variable? I mean that in C I can assign a struct variable 
such as: 
  struct aaa { 
    x,y:int; 
  }; 
  struct aaa a; 
  a={1,0}; //Assign in single statement 
 
  How to implement it? The following code seems not working: 
  a:=(1,0); 
 
  Help me! 
  Thank you very much. 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20020801/f559fec7/attachment.html>


More information about the fpc-pascal mailing list