Ariane Soft PPL2 Pocket Programming DataMite
  #1  
Old 03-25-2010, 02:54 PM
Nicknack's Avatar
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default list pointer again

am I using the new function laddr correctly? I assume this should flow:
PHP Code:
Add(b$, 12345);

&
l$ = LAddr(b$);
ForEach(
l$)
  
ShowMessage(l$);
end
__________________
Software bugs are impossible to detect by anybody except the end user.
A Computer program is doing what you write, not what you want.
Reply With Quote
  #2  
Old 03-30-2010, 11:07 PM
Nicknack's Avatar
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default

I don't get it, both values are equal but anyway somehow not:
PHP Code:
s$=newsprite(null);
add(l$,2,5,876);
setspritedata(s$,laddr(l$));

Showmessage("first");
r$=laddr(l$);
&
n$=r$;
foreach(
n$)
 
Showmessage(n$);
end;

Showmessage("second");
o$=spritedata(s$);
&
u$=o$;
foreach(
u$)
 
Showmessage(u$);
end;

Showmessage(o$==r$); 
I don't understand also why you need a extra variable for holding laddr().
__________________
Software bugs are impossible to detect by anybody except the end user.
A Computer program is doing what you write, not what you want.
Reply With Quote
  #3  
Old 03-31-2010, 01:05 PM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default

Please post this in http://bugs.arianesoft.ca

I know the list is growing. I will get to it sometime soon.
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd