0

Why would this be a syntax error? it is asking for an = sign

cyberlinkcompute("A1","B2")


private sub cyberlinkcompute ( a as string, b as string)

end sub

isnt a sub function something that does not need an =? thanks in advance

1
  • Uae cyberlinkcompute "A1","B2"instead. Here's an interesting post. Commented Jul 11, 2013 at 12:56

2 Answers 2

2

Remove the parentheses or put the word Call in front of the procedure name

Sign up to request clarification or add additional context in comments.

Comments

1

Its the function-like parentheses it dislikes so either;

cyberlinkcompute "A1","B2"

or less advisably:

call cyberlinkcompute("A1","B2")

2 Comments

for my own interest, why is call less advisable?
I use the Call syntax when creating libraries because it is much easier to migrate the library code to VB or VB.NET. To migrate to VB, the syntax does not change. To migrate to VB, just remove the Call keyword.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.