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,743 of 2,978   
   Dr J R Stockton to All   
   Re: Call custom function in pascal   
   23 Feb 09 20:27:15   
   
   eda7d1b5   
   From: jrs@merlyn.demon.co.uk   
      
   In comp.lang.pascal.borland message , Mon, 23 Feb 2009 07:47:13, Jim Leonard   
    posted:   
   >On Feb 21, 1:19 pm, Eureka  wrote:   
      
   >> I have a problem. I want call my functions in pascal by their names   
   >> stored in an array for example.. (array[1..n] of string).. i want the   
   >> same of PHP call_user_func function.. or something near that.. Is   
   >> there any way to do this?   
   >   
   >As already mentioned, not easily.  Is there a reason that a case   
   >statement (or object-oriented programming) won't serve your needs?   
      
   The OP needs to state which version - maker and number - he used - it   
   might be Delphi!   
      
   I think that if the program is written, for example, in BP7 and compiled   
   in debug mode then it should be able to read the debug part of its own   
   EXE, which should list identifiers and their locations.  With ASM, one   
   can easily CALL a location; IIRC, it can also be done in pure Borland   
   Pascal using pointer-to-function.   
      
   --   
    (c) John Stockton, nr London UK.  ?@merlyn.demon.co.uk  Turnpike v6.05  MIME.   
      TP/BP/Delphi/&c., FAQqy topics & links;   
        RAH Prins : c.l.p.b mFAQ;   
      Timo Salmi's Turbo Pascal FAQ.   
      
   --- 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