Home > Community > Automation and VBA > Aufruf einer eigenen FPScript-Funktion > Reply To: Aufruf einer eigenen FPScript-Funktion

#9190
Bernhard KantzBernhard Kantz
Participant

According to our test the Type mismatch occurs in the following line:

Debug.Print myVariant

This is because to try to print an array which usually requires a loop in VBA. Replacing the line by:

Debug.Print myVariant(0)

solved the problem.

Support
support@weisang.com