RE: [WebDNA] Reformatting database headers
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102508
interpreted = N
texte = Hi Dan,Thanks for the input. I came up with this to rewrite a header file for thedb.[writefile test.hdr][ListFields sasjcmls_res.db][FieldName][/ListFields][/writefile]It seems to work but now I notice that I still have to cut out the originalheader file from the db. I'm guessing now that I'm using a header file withthe db I can cut out the old headers by deleting everything front start ofthe file to the first return? Also, does anyone know if there are illegalcharacters you should not have in a header name?Michael -----Original Message-----From: Dan Strong [mailto:webdna@danstrong.com] Sent: Saturday, May 02, 2009 1:10 PMTo: talk@webdna.usSubject: Re: [WebDNA] Reformatting database headersCut the header line in the .db and paste it into a yourNewHDR.hdr file,then:[writefile file=thefinalHDR.hdr][grep search= &replace=_][include yourNewHDR.hdr][/grep][/writefile]-DanOn Sat, 2 May 2009 13:02:49 -0400 "Michael A. DeLorenzo"
wrote:> I need to use a database file sent to me which has headers with spaces in> the names. Ideally I would like to rename each one with an underscore in> place of each space in the header name. Can someone put me on the right> track to do this? The database is about 7MB and has 280 fields.> > > > Michael > > > ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
Hi Dan,Thanks for the input. I came up with this to rewrite a header file for thedb.[writefile test.hdr][ListFields sasjcmls_res.db][FieldName][/ListFields][/writefile]It seems to work but now I notice that I still have to cut out the originalheader file from the db. I'm guessing now that I'm using a header file withthe db I can cut out the old headers by deleting everything front start ofthe file to the first return? Also, does anyone know if there are illegalcharacters you should not have in a header name?Michael -----Original Message-----From: Dan Strong [mailto:webdna@danstrong.com] Sent: Saturday, May 02, 2009 1:10 PMTo: talk@webdna.usSubject: Re: [WebDNA] Reformatting database headersCut the header line in the .db and paste it into a yourNewHDR.hdr file,then:[writefile file=thefinalHDR.hdr][grep search= &replace=_][include yourNewHDR.hdr][/grep][/writefile]-DanOn Sat, 2 May 2009 13:02:49 -0400 "Michael A. DeLorenzo" wrote:> I need to use a database file sent to me which has headers with spaces in> the names. Ideally I would like to rename each one with an underscore in> place of each space in the header name. Can someone put me on the right> track to do this? The database is about 7MB and has 280 fields.> > > > Michael > > > ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold archives: http://dev.webdna.us/TalkListArchive/
"Michael A. DeLorenzo"
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:
Error: Too many nested [xxx] contexts (1997)
Credit card processing - UK (1997)
Questions To Answer (1997)
WebDNA 5.0 Questions (2003)
Add a Blog to your site. (2002)
Emailer prefs in two places ... (1997)
searchable list archive (1997)
Pre-flight public flag (1997)
Duplicate Cart Numbers (1999)
WebCat2.0 [format thousands .0f] no go (1997)
Format of Required fields error message (1997)
Range in [showif] (2000)
[WebDNA] Set UID/GID/Permissions (2009)
Field name-subcategory (1997)
Bug Report, maybe (1997)
Just a thought (1998)
Ongoing group search problems ... (1997)
[WebDNA] [OT] thanks. (2009)
Including encrypted templates ... ? (2003)
Rhapsody? (1997)