FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error: Can only append to dynamic arrays...

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Thu Dec 07, 2006 4:47 pm    Post subject: Error: Can only append to dynamic arrays... Reply with quote

Greetings.

I have this TextBox, txtNotes. When I try to add a string to the value that it has, ie.
[code]
txtNotes.text ~= " DELETED.";
[/code]

I get,
[quote]
Error: Can only append to dynamic arrays, not void(char[] txt) ~= char[9]
[/quote]

so I have to do this,
[code]
char[] t = txtNotes.text ~ " DELETED.";
txtNotes.text = t;
[/code]

Are you planning to allow appending to TextBoxes?

thanks,

josé
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Thu Dec 07, 2006 5:06 pm    Post subject: Re: Error: Can only append to dynamic arrays... Reply with quote

This is a limitation of the D programming language's properties. However, there is
Code:
txtNotes.appendText(" DELETED.");
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group