Welcome, Guest
Please Login or Register.    Lost Password?

Rainlendar_GetItemValue and lists
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Rainlendar_GetItemValue and lists
#24834
Rainlendar_GetItemValue and lists 1 Month, 1 Week ago  
I can't read values, I've set into a list.
Can someone tell me, what I'm doing wrong?

Code:


Rainlendar_SetItemValue(window, "myList", "list.1.type", "0")
Rainlendar_SetItemValue(window, "myList", "list.1.text", "bla")


Sets the text perfectly and its displayed as it should.
Code:


txt = Rainlendar_GetItemValue(window, "myList", "list.1.text")


Results in a Warning in the log: WARNING: Too large position in field: list.1.text

How can I read the value?
BigMike
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24835
Re:Rainlendar_GetItemValue and lists 1 Month, 1 Week ago  
I'm not sure where is wrong.

Here is my suggestion:
1)
Code:

Rainlendar_SetItemValue (window, "myList", "list.1.type", "0")

Do not use "0", try "1".

2)
I remember "list.1" seems to have some problems, so do not start with "list.1", but try to start with "list.2", that is :
Code:

Rainlendar_SetItemValue (window, "myList", "list.2.type", "1")
Rainlendar_SetItemValue (window, "myList", "list.2.text", "bla")

keepstudy
Expert Boarder
Posts: 132
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Taiwan
The administrator has disabled public write access.
Native Language: Chinese
Email: jhg5702@hotmail.com
 
#24836
Re:Rainlendar_GetItemValue and lists 1 Month, 1 Week ago  
Thank you for your suggestion, but this doesn't help
Code:


Rainlendar_SetItemValue(window, "myList", "list.2.type", "1")
Rainlendar_SetItemValue(window, "myList", "list.2.text", "bla")
Rainlendar_GetItemValue(window, "myList", "list.2.text")             
=> WARNING: Too large position in field: list.2.text

BigMike
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24837
Re:Rainlendar_GetItemValue and lists 1 Month, 1 Week ago  
I found an error about Rainlendar_GetItemValue:
It can not get the value of the last list-item.

That is, if list.3 is the last list-item, it can not capture the value of list.3.text / list.3.type

Workaround, I think, you can manually add the last list-item and ignore it from Rainlendar_GetItemValue. (Do not need to read / capture it)
keepstudy
Expert Boarder
Posts: 132
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Taiwan
The administrator has disabled public write access.
Native Language: Chinese
Email: jhg5702@hotmail.com
 
#24838
Re:Rainlendar_GetItemValue and lists 1 Month, 1 Week ago  
Thank you for your help. Now it's working fine!
BigMike
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24900
Re:Rainlendar_GetItemValue and lists 1 Month, 1 Week ago  
I found an error about Rainlendar_GetItemValue:
It can not get the value of the last list-item.

Found the bug. I'll fix it in the next build.
Rainy
Moderator
Posts: 6917
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop