Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Get Number of Calendars to show in text
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: Get Number of Calendars to show in text
#14846
Re:Get Number of Calendars to show in text 3 Years, 9 Months ago  
Add before the line with the "s": if active == value then newText = "All Calendars" end

About the size: I don't know, it could be, maybe the problem is there...
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#14847
Re:Get Number of Calendars to show in text 3 Years, 9 Months ago  
OK, I added the line above, and now when all calendars are selected/active I get the number and the s still.

SO, it says "7All Calendarss" instead of just "All Calendars"
Rodger
Junior Boarder
Posts: 33
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Manyk Photography Location: Canada Birthday: 05/07
The administrator has disabled public write access.
 
#14848
Re:Get Number of Calendars to show in text 3 Years, 9 Months ago  
This would be the new code:
Code:

newText = active .. " Calendar" 
if active ~= 1 then newText = newText .. "s" end 
if active == value then newText = "All Calendars" end
Rainlendar_SetItemValue(window, "MyWindowName.Text", "text", newText)

Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#14849
Re:Get Number of Calendars to show in text 3 Years, 9 Months ago  
ah, that's a bit different than just adding one line
Thank you so much Jorge, it's perfect now.
Rodger
Junior Boarder
Posts: 33
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Manyk Photography Location: Canada Birthday: 05/07
The administrator has disabled public write access.
 
Go to topPage: 123
get the latest posts directly to your desktop