Results 1 to 11 of 11
  1.    #1  
    Hello guys,

    I have a string with 100 elements and I need to assign them to an array

    split (longstring, ",", TRUE, longstring_array)

    The error windows always popup to tell me "invalid parament count for set".

    I tried several ways to set the long string to array and none of them works.

    Also I tried to assign something to an array like below, and it seems it doesn't work either.

    i=1
    while (i<101)
    list[i]=i
    i=i+1
    endwhile

    Any help is appreciated.
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  2.    #2  
    Never mind, I guess I will read from string directly.
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  3.    #3  
    Sorry, still looking for the answer since string can't do all tricks for me.
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  4. #4  
    Try:

    longstriingarray = split (longstring, ",", TRUE)
    Palm III > HS Visor > Treo 600 > Treo 650 > Treo 750 > Treo Pro > PrePlus GSM

    "95% of all software issues are due to USER ERROR."
  5.    #5  
    Quote Originally Posted by scottymomo View Post
    Try:

    longstriingarray = split (longstring, ",", TRUE)
    Thanks scotty. I tried, and it gave me exactly same error. I even tried readfile(contents, ",", TRUE) and it also has the same error.

    I guess all those methods are implemented using same method: array. But the array has a size limit.
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  6. #6  
    What version of mortscript are you using? The following example worked fine for me on b20 (or b21, can't remember)

    Code:
    longstring = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"
    
    
    longstringarray = split (longstring, ",", TRUE)
    
    message(longstringarray[104])
    Palm III > HS Visor > Treo 600 > Treo 650 > Treo 750 > Treo Pro > PrePlus GSM

    "95% of all software issues are due to USER ERROR."
  7.    #7  
    Quote Originally Posted by scottymomo View Post
    What version of mortscript are you using? The following example worked fine for me on b20 (or b21, can't remember)

    Code:
    longstring = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"
    
    
    longstringarray = split (longstring, ",", TRUE)
    
    message(longstringarray[104])

    Hi Scotty,

    Can you try this string on your machine? Thanks

    04AE53,0A5748,5526BD,0D2650,0D9544,46AAB9,056A4D,09AD42,24AEB6,04AE4A,6A4DBE,0A4D52,0D2546,5D52BA,0B 544E,0D6A43,296D37,095B4B,749BC1,049754,0A4B48,5B25BC,06A550,06D445,4ADAB8,02B64D,095742,2497B7,0497 4A,664B3E,0D4A51,0EA546,56D4BA,05AD4E,02B644,393738,092E4B,7C96BF,0C9553,0D4A486DA53B,0B554F,056A45, 4AADB9,025D4D,092D42,2C95B6,0A954A,7B4ABD,06CA51,0B5546,555ABB,04DA4E,0A5B43,352BB8,052B4C,8A953F,0E 9552,06AA48,7AD53C,0AB54F,04B645,4A5739,0A574D,052642,3E9335,0D9549,75AABE,056A51,096D46,54AEBB,04AD 4F,0A4D43,4D26B7,0D254B,8D52BF,0B5452,0B6A47,696D3C,095B50,049B45,4A4BB9,0A4B4D,AB25C2,06A554,06D449 ,6ADA3D,0AB651,093746,5497BB,04974F,064B44,36A537,0EA54A,86B2BF,05AC53,0AB647,5936BC,092E50,0C9645,4 D4AB8,0D4A4C,0DA541,25AAB6,056A49,7AADBD,025D52,092D47,5C95BA,0A954E,0B4A43,4B5537,0AD54A,955ABF,04B A53,0A5B48,652BBC,052B50,0A9345,474AB9,06AA4C,0AD541,24DAB6,04B64A,69573D,0A4E51,0D2646,5E933A,0D534 D,05AA43,36B537,096D4B,B4AEBF,04AD53,0A4D48,6D25BC,0D254F,0D5244,5DAA38,0B5A4C,056D41,24ADB6,049B4A, 7A4BBE,0A4B51,0AA546,5B52BA,06D24E,0ADA42,355B37,09374B,8497C1,049753,064B48,66A53C,0EA54F,06B244,4A B638,0AAE4C,092E42,3C9735,0C9649,7D4ABD,0D4A51,0DA545,55AABA,056A4E,0A6D43,452EB7,052D4B,8A95BF,0A95 53,0B4A47,6B553B,0AD54F,055A45,4A5D38,0A5B4C,052B42,3A93B6,069349,7729BD,06AA51,0AD546,54DABA,04B64E ,0A5743,452738,0D264A,8E933E,0D5252,0DAA47,66B53B,056D4F,04AE45,4A4EB9,0A4D4C,0D1541,2D92B5
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  8. #8  
    169 looks like the limit

    EDIT -- that doesn't look to be the case, but the number of characters in a string looks to have a limit...of 1019
    Palm III > HS Visor > Treo 600 > Treo 650 > Treo 750 > Treo Pro > PrePlus GSM

    "95% of all software issues are due to USER ERROR."
  9.    #9  
    Quote Originally Posted by scottymomo View Post
    169 looks like the limit

    EDIT -- that doesn't look to be the case, but the number of characters in a string looks to have a limit...of 1019
    Got you. I can read them now from file.

    Thanks for the help.
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  10. #10  
    np
    Palm III > HS Visor > Treo 600 > Treo 650 > Treo 750 > Treo Pro > PrePlus GSM

    "95% of all software issues are due to USER ERROR."
  11. #11  
    MortScript itself doesn't have any limitations (except for a 256 character limit for file names - like Windows itself), but sooner or later the memory is used up.
    I wonder where that 1019 characters limit comes from, my string class doesn't have any limitation, and allocating a bigger memory block shouldn't be a problem.

Posting Permissions