Re: LOOP problem

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69062
interpreted = N
texte = Just multiply with 10: [MATH show=3DT]PWR01st=3D-10.00[/MATH] [MATH show=3DT]PWR01end=3D-6.50[/MATH] [MATH show=3DT]PWR01pr=3D0.50[/MATH] [MATH show=3DT]PWR01st=3D[PWR01st] * 10[/MATH] [MATH show=3DT]PWR01end=3D[PWR01end] * 10[/MATH] [MATH show=3DT]PWR01pr=3D[PWR01pr] * 10[/MATH] [Loop start=3D[PWR01st]&end=3D[PWR01end]&advance=3D[PWR01pr]] [Format .2f][MATH show=3DT][index] / 10[/MATH][/Format]
[/Loop] Or shorter: [MATH show=3DT]PWR01st=3D-10.00 * 10[/MATH] [MATH show=3DT]PWR01end=3D-6.50 * 10[/MATH] [MATH show=3DT]PWR01pr=3D0.50 * 10[/MATH] [Loop start=3D[PWR01st]&end=3D[PWR01end]&advance=3D[PWR01pr]] [Format .2f][MATH show=3DT][index] / 10[/MATH][/Format]
[/Loop] Best, Christer ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se 12 jun 2007 kl. 09.57 skrev Stuart Tremain: > I need to do a loop that is not possible in WebDNA due to the =20 > numbers having to be whole numbers. > > Any hints on producing WebDNA for this ?? > > > [TEXT show=3DT]PWR01start=3D-10.00[/TEXT] > [TEXT show=3DT]PWR01end=3D-6.50[/TEXT] > [TEXT show=3DT]PWR01progression=3D0.50[/TEXT] > > Answer must be: > -10.00 > -9.50 > -9.00 > -8.50 > -8.00 > -7.50 > -7.00 > -6.50 > > This doesn't work :( > > [Loop start=3D[PWR01start]&end=3D[PWR01end]&advance=3D[PWR01progression]= ] > [Index]
> [/Loop] > > > > Regards > > Stuart Tremain > idfk web developments > 114a/40 yeo street neutral bay 2089 australia > > > > > > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: LOOP problem ( Christer Olsson 2007)
  2. Re: LOOP problem ( Stuart Tremain 2007)
  3. Re: LOOP problem ( Stuart Tremain 2007)
  4. Re: LOOP problem ( Christer Olsson 2007)
  5. LOOP problem ( Stuart Tremain 2007)
Just multiply with 10: [MATH show=3DT]PWR01st=3D-10.00[/MATH] [MATH show=3DT]PWR01end=3D-6.50[/MATH] [MATH show=3DT]PWR01pr=3D0.50[/MATH] [MATH show=3DT]PWR01st=3D[PWR01st] * 10[/MATH] [MATH show=3DT]PWR01end=3D[PWR01end] * 10[/MATH] [MATH show=3DT]PWR01pr=3D[PWR01pr] * 10[/MATH] [Loop start=3D[PWR01st]&end=3D[PWR01end]&advance=3D[PWR01pr]] [Format .2f][MATH show=3DT][index] / 10[/MATH][/Format]
[/Loop] Or shorter: [MATH show=3DT]PWR01st=3D-10.00 * 10[/MATH] [MATH show=3DT]PWR01end=3D-6.50 * 10[/MATH] [MATH show=3DT]PWR01pr=3D0.50 * 10[/MATH] [Loop start=3D[PWR01st]&end=3D[PWR01end]&advance=3D[PWR01pr]] [Format .2f][MATH show=3DT][index] / 10[/MATH][/Format]
[/Loop] Best, Christer ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se 12 jun 2007 kl. 09.57 skrev Stuart Tremain: > I need to do a loop that is not possible in WebDNA due to the =20 > numbers having to be whole numbers. > > Any hints on producing WebDNA for this ?? > > > [TEXT show=3DT]PWR01start=3D-10.00[/TEXT] > [TEXT show=3DT]PWR01end=3D-6.50[/TEXT] > [TEXT show=3DT]PWR01progression=3D0.50[/TEXT] > > Answer must be: > -10.00 > -9.50 > -9.00 > -8.50 > -8.00 > -7.50 > -7.00 > -6.50 > > This doesn't work :( > > [Loop start=3D[PWR01start]&end=3D[PWR01end]&advance=3D[PWR01progression]= ] > [Index]
> [/Loop] > > > > Regards > > Stuart Tremain > idfk web developments > 114a/40 yeo street neutral bay 2089 australia > > > > > > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Christer Olsson

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:

using showpage and showcart commands (1996) WebCat2 beta FTP site (1997) [WebDNA] DNA suffix (2008) creator code (1997) show all problem (1997) Re1000002: Setting up shop (1997) How much is too much? I can never remember the answer. (2002) Summing fields (1997) Trouble Searching (1999) Keyword search (2004) [SearchString] usage (1997) SET (1998) Does TCPconnect/TCPsend do multiples? (2000) OT: Unix Find Question (2004) OLD PROBLEM (1997) Protect (1997) 2.0 Info (1997) [WebDNA] WebDNA7 url plus get? (2011) Building Calendars (1997) Re:Emailer and encryption (1997)