Vassili,
If this script is served from a QuiX method using the Python's
String.template module do not forget to use double $ when accesing a
variable value. Thus your script should be something like this:
set contacts [getcontacts]
set howMany llen $$contacts
set resp []
for {set i 0} {< $$i $$howMany} {incr $$i}
{
lappend resp [rpc "" "synch" lindex[$$contacts $$i]
}
commitcontacts $$resp
On Sep 8, 2:08 pm, VLegakis <
vlega...@gmail.com> wrote:
> Hi all,
>
> I wanted to pass my handset's contacts one by one to the server
> instead of passing them all at once. So here is the hecl script I use:
>
> set contacts [getcontacts]
> set howMany llen contacts
>
> set resp []
>
> for {set i 0} {< $i howMany} {incr $i}
> {
> lappend resp [rpc "" "synch" lindex[$$contacts $$i]
>
> }
>
> commitcontacts $$resp
>
> The getcontacts and commitcontacts are commands I've implemented. The
> problem is this script is not recognisable. I'm not very good at Hecl
> so any help?