Hello its me Green Lime again and I am trying a writing book code. Well this is my problem, I have a var msg1 in my obj/book. And I used the write code
input("Write to page [src.current_page].","[src.current_page]",src:msg[src.current _page]) as message.
Now the current_page = 1 and I have it as src:msg[src.current_page] but it brings up this.
books.dm:34:error:src/:/msg:undefined var
I was woundering why it cant identify src:msg[src.current_page] as being msg1 isnt that what it would be or does the default just unable to do so.
HELP PLEASE THANKS: )
ID:261434
Mar 23 2002, 10:56 am
|
|
In response to Green Lime
|
|
man I am soo stupid!!
Just realised all I had to do is add a usr << to the front of browse() proc. hmm Sorry for those stupid questions and posting these things on the forum. I do got a good question this time thow! Its about the usr[src.current_page]. it just outputed a msg1 like I thought it would so can any one help me on this. I tryed [msg[src.current_page] but it just said msg is not a defined var. So how would I do this? Please answer |
In response to Green Lime
|
|
What are you trying to do.
|
In response to Super16
|
|
Super16 wrote:
What are you trying to do. I am trying to make a book. Like a have vars that hold the text someone writes into as msg1 And I wanted to write text using msg[current_page]. Cause current_page will contain the page number They want to write in. This current_page is changed by higher,or lowers links when clicked they either add or subtract from the current_page. causeing the page to change and you being able to write in a new msg#. can U help? |
In response to Green Lime
|
|
Try something like this.
obj/book/var/page |
In response to Super16
|
|
Super16 wrote:
Try something like this. > obj/book/var/page I have all ready done that before I want to do it in HTML like foomers. |
In response to Green Lime
|
|
You want it to browse it?
|
In response to Super16
|
|
huh?
|
Ok I think I just fixed it by taking off the src:.
I dont know how I could have been so stupid.
I have a new problem thow.
First off its not reading the browse() proc and I dont know why.
books.dm:82::warning: statement has no effect
books.dm:58:browse :warning: unused label
Second off at the end I tryed [msg[src:current_page]] but it brung up and error so I left it like it is bellow.
msg[src:current_page]
Will that still be a var msg1 or will it just say "msg1"
browse({"
<html>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="5%" valign="top">
<tr >
<td width="90%"><h2>[src:title]</h2></td>
<td width="10%"><font size="2">signed by: [src:author]</font></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" height="25" bgcolor="#c0c0c0" valign="top">
<tr>
<td><center>
[src:lower2] | [src:lower1] |
[src:current_page] | [src:higher1] | [src:higher2]
</center>
<center>Write | Title | Sign
| Finish</center></td>
</tr>
</table>
msg[src:current_page]
</body>
</html>
"})