Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to get the length of a list?
How to get the length of a list? [message #1784443] Wed, 28 March 2018 05:58
Stephan Stahlmann is currently offline Stephan StahlmannFriend
Messages: 1
Registered: March 2018
Junior Member
I have a small problem regarding getting the length of a list in RCPTT.

I have written a function which gets a list as a parameter. If I want to get th length of the list it returns 1, no matter how long the list actually is.

Example:
proc "my-func" [val list] {
show-alert [$list | length]
}
my-func [list "0" "1" "2" "3" "4" "5"] // returns 1
my-func [list "0" "1" "2" "3" "4"] // returns 1
my-func [list "0" "1" "2"] // returns 1

When i debugged, I found that $list is an EclList, which wraps java.util.List. so I thought I could get it via:

$list | get-object | invoke elements | invoke size

But it fails at "| get-object". So the question is, is there any way to get the length of list?
Previous Topic:Where can I download 2.0.0 .zip file for standalone RCPTT
Next Topic:An error while downloading platform:/plugin/org.eclipse.rcptt.updates.runtime.e4x/q7/content.jar
Goto Forum:
  


Current Time: Thu Jun 21 20:34:07 GMT 2018

Powered by FUDForum. Page generated in 0.01563 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top