Enhancement request: Compiler directive

Missing or incomplete OpenText Gupta product features? Discuss it here!
Nils Jänicke
Germany
Posts: 423
Joined: 20 Sep 2017, 11:56
Location: Villingen-Schwenningen, Germany

Enhancement request: Compiler directive

Post by Nils Jänicke » 09 Jul 2021, 08:09

Since a apl file can be used for both worlds, to code the same business logic for a traditional win32 application and also tu build a webservice for that I miss a possibility to filter in code like

Code: Select all

Local Variables:
  String: sEval
  Number: nError
  String sReturn
  Number: nReturn
  #if WIN32
    Window Handle: hWndReturn


#if WIN32
  Call SalCompileAndEvaluate(sEval, nError, ..., hWndReturn,...)
#if DOTNET
  Call SalNetCompileAndEvaluate(sEval, nError,...)
Now I can filter like
If SalIsDotNet(nTarget)

but using window handles already causes compiler errors and it is very difficult tu build high performance classes to use the same code part for all build destinations.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3384
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: Enhancement request: Compiler directive

Post by Dave Rabelink » 12 Jul 2021, 06:40

Did you create an official enhancement request for this?
If so, please report the TD case number here for future reference.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Enhancement suggestions”

Who is online

Users browsing this forum: [Ccbot] and 3 guests