Avatar of Nikhil Dhuri
Nikhil Dhuri
 asked on

Powerbuillder runtime error r0021 while referencing a global external variable

I have declare a global exernal variable as
 Function long SMSTEST (string numbers,string Messages) library "ClassLibrary1.dll" ALIAS FOR "SMSTEST"

and i have called the function on a button's clicked event as below
string ls_number,ls_message
long ll_result

ls_number="9969163151"
ls_message="Hello World"

ll_result=SMSTEST(ls_number, ls_message)

messagebox("info","Done")


I am getting the following error runtime
 
Error calling external function SMSTEST
.NET Programming

Avatar of undefined
Last Comment
Joe Howard

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Deepak Vasudevan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Joe Howard

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Deepak Vasudevan (https:#a42816917)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

MacroShadow
Experts-Exchange Cleanup Volunteer
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck