need some help with a loop
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23075
interpreted = N
texte = Hiya folks,I've come to a programming point where I think I need a loop, but reallydon't know how to go about it. Hopefully someone else has some info.I need to return data based on a location, of which there are 8 (USA,CANADA, THE AMERICAS, EUROPE, AFRICA, EAST ASIA, WEST ASIA, OCEANIA). Theseare Summarized from a list of about 150 entries.Currently, when it searches, it finds all the locations (and runs them alltogether) and all the returned data (and runs it all together).What I'd like to do is search, find one location and it's data, loop, findthe next location and data, loop, etc, etc.To find the location, it does this---------------------------------------[searchdb=fleet.db&wsissuedatarq=[issue]&wscategorydatarq=[category]&locationsumm=T&max=1][foundItems][location] - [category][/founditems][/search]To display the data, it does this---------------------------------------[searchdb=fleet.db&wsissuedatarq=[issue]&wscategorydatarq=[category]&wslocationdata=[location]&airlinesort=1&airlinessdir=as&aircrafttypesort=2][foundItems][airline][aircrafttype][regn][MSN][notes][/founditems][/search]I'm assuming that I need to have it count the summarized locations and then[break] after I get to the end.Something like[loop start=1&end=[??????????????]&advance=1]index=[index] <----??????location search---datasearch[showif [index]=?????????][break][/showif][/loop]Any ideas?Bill--Bill Heissenbuttel (bill@pagehouse.com) - http://www.pagehouseinc.comPageHouse, Inc. - Internet Presence Provider (509) 892-1973-PGP key ID: 0xE8544665 (http://pgpkeys.mit.edu:11371)
Associated Messages, from the most recent to the oldest:
Hiya folks,I've come to a programming point where I think I need a loop, but reallydon't know how to go about it. Hopefully someone else has some info.I need to return data based on a location, of which there are 8 (USA,CANADA, THE AMERICAS, EUROPE, AFRICA, EAST ASIA, WEST ASIA, OCEANIA). Theseare Summarized from a list of about 150 entries.Currently, when it searches, it finds all the locations (and runs them alltogether) and all the returned data (and runs it all together).What I'd like to do is search, find one location and it's data, loop, findthe next location and data, loop, etc, etc.To find the location, it does this---------------------------------------[searchdb=fleet.db&wsissuedatarq=[issue]&wscategorydatarq=[category]&locationsumm=T&max=1]
[founditems][location] - [category][/founditems][/search]To display the data, it does this---------------------------------------[searchdb=fleet.db&wsissuedatarq=[issue]&wscategorydatarq=[category]&wslocationdata=[location]&airlinesort=1&airlinessdir=as&aircrafttypesort=2]
[founditems][airline][aircrafttype][regn][MSN][notes][/founditems][/search]I'm assuming that I need to have it count the summarized locations and then[break] after I get to the end.Something like[loop start=1&end=[??????????????]&advance=1]index=[index] <----??????location search---datasearch[showif [index]=?????????][break][/showif][/loop]Any ideas?Bill--Bill Heissenbuttel (bill@pagehouse.com) - http://www.pagehouseinc.comPageHouse, Inc. - Internet Presence Provider (509) 892-1973-PGP key ID: 0xE8544665 (http://pgpkeys.mit.edu:11371)
Bill Heissenbuttel
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:
Configuring E-mail (1997)
encryption in browser? (1998)
Protect (1997)
WC2.0 Memory Requirements (1997)
WebStar Secure on other machine (1997)
_ in front of field name (1998)
[WebDNA] File permissions on Windows? (2010)
Re[2]: Decrypting a user password (2000)
Cant open pages generated by Webcat (2004)
URGENT - CPU usage OSXS (2001)
Document Contains No Data! (1997)
FW: WebDNA-Talk searchable? (1997)
Sorting Numbers (1997)
Nesting format tags (1997)
Protect (1997)
RE: IIS4b2 and WebCatalog b19 (1997)
Proper file locations (1997)
[WebDNA] Date weirdness (2014)
Emailer help....! (1997)
Error Messges (1997)