Re: [WebDNA] help with writefile
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 110038
interpreted = N
texte = Here is my reason:You may notice that my .db file has no number 15.I need this .db file to have these field numbers to be contiguous.Therefore, my next step was to add a comparison between the number =written to the file, and the current number found.If they are found to be more than one number apart, I would then execute =another step to replace the variable number.Unless you know of another way to reorder integer numbers in a .db field =to be in order, without skipping any.....Thanks,sfbOn Dec 18, 2012, at 9:59 AM, WebDNA Solutions
=wrote:> What are you actually trying to accomplish? You're=20> repetitively writing then deleting temporary.txt files. Why?>=20> Sincerely,> Kenneth Grome> WebDNA Solutions> http://www.webdnasolutions.com> WebDNA Programming and Linux Server Administration>=20>=20>=20>=20>> Hi All,>> Here is my code: (I knew that you would ask)>>=20>> >>=20>> >> >> >> >> [writefile temporary.txt]0[/writefile]>> >> [search>> db=3Dstory.db&geSTORYNUMBERdata=3D1&asNEWSLETTERsort=3D1&NEWSL>> ETTERtype=3Dnum] [founditems]>> [hideif [OFF]=3DTrue]>> >> >> [showif [NEWSLETTER]>0]>> [include temporary.txt],>> [deletefile =temporary.txt]>> [writefile =temporary.txt]> [NEWSLETTER][/writefile]>> [NEWSLETTER]>> [/showif]>> | >>
>> [/hideif]>> [/founditems]>> [/search]>>
>> >>