Re: Solve the Problem, get the code!

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37662
interpreted = N
texte = Jeff,I had a similar problem, here's the code I used to sort it. You can see the results at:-http://www.tohm.ie/news_and_events/events.tmpl----- Variables initially set -----[!]initialize the month offset and days variables[/!][math show=f]offset=[lookup db=../db_events/days.db&lookinfield=number&value=[math]({1/[the_month]/[the_ year]})%7[/math]&returnfield=skip][/math][math show=f]days=({1/[the_month]/[the_year]}+{0/1/0000})-{1/[the_month]/[the_year ]}[/math] ----- Code to Write out the Rows -----[loop start=1&end=[offset]] [/loop][loop start=1&end=[days]][showif [math]([index]+[offset])%7[/math]=0][/showif][text]daytot=[index][/text][/loop][math show=f]y=[daytot]+[offset][/math][showif [y]<35][math show=f]z=35-[y][/math][/showif][showif [y]>35][math show=f]z=42-[y][/math][/showif][loop start=1&end=[z]] [/loop] Regards- Tom------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Solve the Problem, get the code! (Jeff Logan 2001)
  2. Re: Solve the Problem, get the code! (Marc Kaiwi 2001)
  3. Re: Solve the Problem, get the code! (Marc Kaiwi 2001)
  4. Re: Solve the Problem, get the code! (Alex McCombie 2001)
  5. Re: Solve the Problem, get the code! (Jeff Logan 2001)
  6. Re: Solve the Problem, get the code! (Alex McCombie 2001)
  7. Re: Solve the Problem, get the code! (Stuart Tremain 2001)
  8. Re: Solve the Problem, get the code! (Jeff Logan 2001)
  9. Re: Solve the Problem, get the code! (Daniel Smith 2001)
  10. Re: Solve the Problem, get the code! (Jeff Logan 2001)
  11. Re: Solve the Problem, get the code! (Dale Therio 2001)
  12. Re: Solve the Problem, get the code! (Marc Kaiwi 2001)
  13. Re: Solve the Problem, get the code! (Jeff Logan 2001)
  14. Re: Solve the Problem, get the code! (Anne Varner 2001)
  15. Re: Solve the Problem, get the code! (Brian Fries 2001)
  16. Re: Solve the Problem, get the code! (Celeste Paul 2001)
  17. Re: Solve the Problem, get the code! (Tom Duke 2001)
  18. Re: Solve the Problem, get the code! (Jeff Logan 2001)
  19. Re: Solve the Problem, get the code! (Jeff Logan 2001)
  20. Re: Solve the Problem, get the code! (Marc Kaiwi 2001)
  21. Re: Solve the Problem, get the code! (adam@inos.com (O'Connor, Adam) 2001)
  22. Re: Solve the Problem, get the code! (adam@inos.com (O'Connor, Adam) 2001)
  23. Re: Solve the Problem, get the code! (Marc Kaiwi 2001)
  24. Solve the Problem, get the code! (Jeff Logan 2001)
Jeff,I had a similar problem, here's the code I used to sort it. You can see the results at:-http://www.tohm.ie/news_and_events/events.tmpl----- Variables initially set -----[!]initialize the month offset and days variables[/!][math show=f]offset=[lookup db=../db_events/days.db&lookinfield=number&value=[math]({1/[the_month]/[the_ year]})%7[/math]&returnfield=skip][/math][math show=f]days=({1/[the_month]/[the_year]}+{0/1/0000})-{1/[the_month]/[the_year ]}[/math] ----- Code to Write out the Rows -----[loop start=1&end=[offset]] [/loop][loop start=1&end=[days]][math][index] [/math]&the_year=[the_year]&the_dow=[lookup db=../db_events/days.db&lookinfield=number&value=[math]({[the_month]/[index] /[the_year]})%7[/math]&returnfield=number¬found=-1]&the_person=[p_id]][showif [math]([index]+[offset])%7[/math]=0][/showif][text]daytot=[index][/text][/loop][math show=f]y=[daytot]+[offset][/math][showif [y]<35][math show=f]z=35-[y][/math][/showif][showif [y]>35][math show=f]z=42-[y][/math][/showif][loop start=1&end=[z]] [/loop] Regards- Tom------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Tom Duke

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Date Calulation (1997) WebCat2 several catalogs? (1997) Error Log.db --however (1997) [encrypt] entire site? (2003) Looping control (1997) Weird problems with [SHOWIF]s (1997) WebCatalog can't find database (1997) NumFound (1999) [dos] command question (1997) Hiding HTML and breaking the page (1997) billing system (2003) More on [purchase] (1998) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Multiple Stores and WebCatalog Prefs (1997) [!] not working? (1999) WebDNA Partner edition .. (2002) Almost a there but..bye bye NetCloak (1997) Date comparison has serious bug ... (1998) RE: E-mailer error codes (1997) text size limitation (1997)