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 1,709 of 2,978   
   Jud McCranie to sm7040@hotmail.com   
   Re: Procedure string parameter max size   
   02 Jun 05 15:58:05   
   
   From: youknowwhat.mccranie@adelphia.net   
      
   On 2 Jun 2005 12:18:29 -0700, "Sm704"  wrote:   
      
   >Is it possible to specify a procedure or function's parameter of type   
   >string with a maximum size?   
   >   
   >For example, something like this:   
   >   
   >procedure foobar(s : string[5]);   
   >begin   
   >end;   
   >   
   >Turbo Pascal 7.0 gives me an error saying ">" expected...   
      
   You can do it like this (make it a declared type):   
      
   type string5 = string[ 5];   
      
   procedure foobar(s : string5);   
      
   ---   
   Replace you know what by j to email   
      
   --- 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