PDA

View Full Version : VDF12 - Correct Case in Tag Files



Garret Mott
1-Dec-2006, 02:06 PM
Hi All -

In the PH NG, there has been discussion about field names now "respecting
case". However (as Bob Worsely has pointed out), this means that old all
uppercase field names will now appear as all lower case.

Dennis suggested a utility. So - here's one. It uppercases the first
letter & any letters following an underscore.

Please Note:

Included in the zip are vWin32fh.pkg & vWin32fh.h from VDF-Guidance, as you
just can't do file manipulation with out 'em (thanks guys!). Also included
is ProcessMessages.pkg (I can't remember the author, but thanks to you as
well - what a great tool!) so the progressbar displays correctly.

Also - this is for US alphabet. Folks using non-US characters will need to
add appropriate code in the Button's OnClick.

To run it - drop it in your AppSrc folder & add it to a Test Project

Please toss out improvements & suggestions - as it ain't the highest tech
utility going...

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

Garret Mott
1-Dec-2006, 02:55 PM
Correction: John van Houten suggested the utility, not Dennis. I'm sure
Dennis would have... <g>

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

Bob Worsley
2-Dec-2006, 08:25 AM
Works great Garret, you must have had some spare time on your hands? Thanks
a bunch, but why didn't you code for things like EmailAddress? <vbg>

I don't know if it will matter, but you are appending a blank line to the
bottom of all tag files.

Bob


"Garret Mott" <Garret_at_AutoMateSoftware_dot_com> wrote in message
news:8alnHvXFHHA.3272@dacmail.dataaccess.com...
> Hi All -
>
> In the PH NG, there has been discussion about field names now "respecting
> case". However (as Bob Worsely has pointed out), this means that old all
> uppercase field names will now appear as all lower case.
>
> Dennis suggested a utility. So - here's one. It uppercases the first
> letter & any letters following an underscore.
>
> Please Note:
>
> Included in the zip are vWin32fh.pkg & vWin32fh.h from VDF-Guidance, as
you
> just can't do file manipulation with out 'em (thanks guys!). Also
included
> is ProcessMessages.pkg (I can't remember the author, but thanks to you as
> well - what a great tool!) so the progressbar displays correctly.
>
> Also - this is for US alphabet. Folks using non-US characters will need
to
> add appropriate code in the Button's OnClick.
>
> To run it - drop it in your AppSrc folder & add it to a Test Project
>
> Please toss out improvements & suggestions - as it ain't the highest tech
> utility going...
>
> Garret Mott
>
> Auto-Mate Software www.automatesoftware.com
> Northeast DataFlex Consortium www.nedataflex.com
>
>
>

Garret Mott
2-Dec-2006, 09:16 AM
Spare time? Not really, but I wanted to get them squared away for my own
edification - so I figured I might as well share...

Attached is a version that won't append a blank line. Thanks for catching
that!

You may have seen a recent post of mine saying that I wish computers would
do what I want, not what I tell 'em. "EmailAddress" is a perfect example of
that!

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

Bob Worsley
2-Dec-2006, 10:21 AM
EmailAddress - yeah, but wasn't that John's requirement? You didn't follow
the spec!

Sorry, couldn't resist. I kinda thought that was a bit of a cop out. But
of course the utility accomplishes it anyway.
Bob

"Garret Mott" <Garret_at_AutoMateSoftware_dot_com> wrote in message
news:Qi0OLyhFHHA.3896@dacmail.dataaccess.com...
> Spare time? Not really, but I wanted to get them squared away for my own
> edification - so I figured I might as well share...
>
> Attached is a version that won't append a blank line. Thanks for catching
> that!
>
> You may have seen a recent post of mine saying that I wish computers would
> do what I want, not what I tell 'em. "EmailAddress" is a perfect example
of
> that!
>
> Garret Mott
>
> Auto-Mate Software www.automatesoftware.com
> Northeast DataFlex Consortium www.nedataflex.com
>
>
>

Garret Mott
2-Dec-2006, 10:47 AM
Didn't follow the spec? Hey - specs are just there to make the client
happy - not for us to really pay attention to, right? Oh, right - we base
our bill on 'em...

Add this line to the end of the loop, before the trim:

Move (Replace("Emailaddress",sNewTag,"eMAILaDDRESS")) to sNewTag

<g>

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

"Bob Worsley" <bworsley@comcast.net> wrote in message
news:xAo3TWiFHHA.3896@dacmail.dataaccess.com...
> EmailAddress - yeah, but wasn't that John's requirement? You didn't
> follow
> the spec!
>
> Sorry, couldn't resist. I kinda thought that was a bit of a cop out. But
> of course the utility accomplishes it anyway.
> Bob
>
> "Garret Mott" <Garret_at_AutoMateSoftware_dot_com> wrote in message
> news:Qi0OLyhFHHA.3896@dacmail.dataaccess.com...
>> Spare time? Not really, but I wanted to get them squared away for my own
>> edification - so I figured I might as well share...
>>
>> Attached is a version that won't append a blank line. Thanks for
>> catching
>> that!
>>
>> You may have seen a recent post of mine saying that I wish computers
>> would
>> do what I want, not what I tell 'em. "EmailAddress" is a perfect example
> of
>> that!
>>
>> Garret Mott
>>
>> Auto-Mate Software www.automatesoftware.com
>> Northeast DataFlex Consortium www.nedataflex.com
>>
>>
>>
>
>
>