Problem with decoding Array

Mark Schonewille m.schonewille at economy-x-talk.com
Tue Dec 10 11:51:28 EST 2013


Hi Rüdiger,

You need to use "for binary read".

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces. http://www.color-converter.com

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi

Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/

On 12/10/2013 17:41, Ruediger Wilhelm wrote:
> As an LC greenhorn I am asking for advice.
>
> When I push the button LC quits with the message "Runtime Error ...."
> The button script contains:
>
> global gUsersArray
> on mouseUp
>     open file $LOCALAPPDATA &"/Fit_Reit_Data/TeilnehmerDaten.txt" for read
>     read from file $LOCALAPPDATA &"/Fit_Reit_Data/TeilnehmerDaten.txt" until
> end
>     close file $LOCALAPPDATA &"/Fit_Reit_Data/TeilnehmerDaten.txt"
>     put it into tUsersEncode
>     put arrayDecode(tUsersEncode) into gUsersArray
> end mouseUp
>
> In debug mode I can see that tUsersEndcode contains the
> encoded string of the file TeinehmerDaten.txt which was
> written there from the stack script via on closeStack.
> When the button script is up to execute the line
> put arrayDecode(...)...  LC quits.
>
> I am working with LC 6.5.
> Is this a bug or am I misunderstanding something?
> Thanks for any ideas.
>
> Ruediger





More information about the Use-livecode mailing list