Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cubicle4

  1. cubicle4

    How to convert characters to numerical character reference?

    Sorry for the bother found in another post, should have read other posts first. Thx
  2. cubicle4

    How to convert characters to numerical character reference?

    I am trying to convert characters like: ª Â Ã ñ to their numerical character reference: #170; #194; #195, #241 Note: all of the num. char. ref are preceeded with an ampersand but could not enter that as it would convert these reference to there actual values. TIA, Harold
  3. cubicle4

    regsub and spanish tilde

    Hi, I have a question regarding spanish content and the use of regsub. We are submitting content to an Oracle db set up to handle UTF-8. The columns store the data properly. The question arises when we submit content from a text area or text field of an html form that contain characters like...
  4. cubicle4

    how to read a file and set this information to a variable

    Actually, just found out, that yes indeed it does work. Just so happens that the file I was trying to read had no data in it. Pretty funny, yet pretty stoopid. Should have confirmed the data first. Thanks - Harold
  5. cubicle4

    how to read a file and set this information to a variable

    I need to be able to retrieve the contents of a file and set them to a variable. Anyhow, this is what I have so far. I am able to return the channel fine but can't retrieve what is in the file. Here is the code snippet that I am using. Keep in mind that I have left out the fully qualified...
  6. cubicle4

    replacing strings with & (ampersand) in them using regsub

    Oh yeah, and one more thing. Like Bong said, "you're the man".
  7. cubicle4

    replacing strings with & (ampersand) in them using regsub

    Ken, Usually, I am enlightened by your responses. However, this time I was aware of the regsub behavior with regards to ampersands and likewise I agree with you. Also, and I should have included this relevant information in the initial post, the string(file path) that I am wanting to regsub...
  8. cubicle4

    replacing strings with & (ampersand) in them using regsub

    Hi all, BTW, in my examples below where you see &quot;<&quot; and &quot;>&quot; replace them with the HTML entity when running the scripts, the browser has converted them to the actual character. Seems like all my issues revovle around mappings and string replacement. aarrghh! Anyhow, I have...
  9. cubicle4

    Mapping strings, changing case of first letter of string

    Great, that worked. Unfortunately the book I have did not have the string totitle command. Thanks for the help everyone.
  10. cubicle4

    Mapping strings, changing case of first letter of string

    Actually that was a typo. I do return the $newString. When I test this in tclpro this is the error that i get. char map list unbalanced
  11. cubicle4

    Mapping strings, changing case of first letter of string

    I have a string that I would like to change the case of only the first letter to upper case. This string can be any word. Anyhow, I am trying to apply string mapping to it to accomplish this. Yeah, sure I could map each character of the alphabet to its corresponding uppercase value but that...
  12. cubicle4

    performance, comparing three commands

    Ken, That is very interesting, and also very thorough. I appreciate the effort put forth. I agree, these numbers are very small and pretty much insignificant. Although, this was a good lesson. Thanks, Harold
  13. cubicle4

    performance, comparing three commands

    Hi, Below I have four comparison tests. I am curious as to which would provide the least overhead and/or fastest results. set var 1 if {$var ==1} { ..do something } if {[string equal $var 1] == 1} { ..do something } if {[string match 1 $var] == 1} { ..do something } if {[string...
  14. cubicle4

    Forms and objects and accessing those objects

    Hi, I have discontinued my efforts and went with a solution that already works, however would still like to resolve this as it adds greater functionality. The popup window code that I have include is the original. If you need more info then I would be glad to send you the templates that I was...
  15. cubicle4

    Forms and objects and accessing those objects

    Hi all, I have a window which contains a form and in the form contains an object I have created known as &quot;MyContent1&quot;. From this object I can open a popup window. This popup contains a search form. At this time I am still able to call methods from the object on the parent window...

Part and Inventory Search

Back
Top