ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

  • Overview
  • How to?
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
A global procedure in WLanguage can be directly called from the code of a global procedure in Objective C.
How to?
To call a WLanguage procedure directly from the code of a global procedure in Objective C:
1. Type the code of WLanguage procedure. The WLanguage procedure must comply with some rules:
  • Have an acceptable name in Objective C.
  • The type of procedure parameters and the type of return value must be supported types: boolean, integer, real, string, buffer.
  • The "ObjC" attribute must be added to the WLanguage procedure.
Example:
PROCEDURE nWL_AddOne(n is int), ObjC: int
RESULT n+1
2. Then, all you have to do is call the procedure from the Objective C code.
For example:
int nObjC_ResultInt(int i)
{
return nWL_AddOne(i);
}
Minimum version required
  • Version 19
Comments
Click [Add] to post a comment