Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

Return an empty array from scripting method

$
0
0

I have a script method that return a StringTypeArray of variable length. I want to return an empty array. On returning no data I get an assertion

Expected: Array of Strings or Array of Objects

    Returned: Array (nothing)

 

I know it is possible to return an empty string array because $.writeln(app.redoHistory.length); returns so on no redo history.

 

How can I return an empty array?


Viewing all articles
Browse latest Browse all 78596


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>