Harryyeh,
The short answer is, you cannot.
The longer answer involves reading the MDK users manual, particularly the section, "Things you cannot do with an MSX DLL" where it includes, "Access the standard MetaStock built-in functions".
To have the same functionality, either rebuild the function in your DLL, or "send" the function to the external function as an argument.
You can use any version of PowerBasic you like, just so long as the compiler can create the required Win32.dll
Hope this helps.
wabbit
![Big Smile [:D]](/emoticons/emotion-2.gif)
P.S. This is not a limitation of PowerBasic or any other programming language, it a limitation of the realtionship between external functions and internal functions of MetaStock.
MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC & MDK
For custom MetaStock programming : http://www.wabbit.com.au
My SkyPE status : 
My SkyPE account : wabbit.com.au