Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand

From: Mike Tuxford (tuxfordNOSPAM_at_NORETURNearthlink.net)
Date: 04/27/04


Date: Tue, 27 Apr 2004 02:28:19 GMT

Mike Tuxford <tuxfordNOSPAM@noreturnearthlink.net> wrote:
:Bruce Hartweg <bruce-news@hartweg.us> wrote:
::
::
::Mike Tuxford wrote:
::
::> Darren New <dnew@san.rr.com> wrote:
::> :Kevin Kenny wrote:
::> :> The *string* command supports tests for a number of Tcl's basic types,
::> :> for example, integers, doubles, and booleans. This TIP proposes adding
::> :> wide integers.
::> :
::> :Perhaps [string is wideint] might be a better name. For example, when I
::> :first looked at the title, I thought it would be testing for wide
::> :characters, i.e., outside the ASCII 7-bit range.
::> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::> Myself, I'd like one of those. Currently I am doing like this:
::>
::> scan $char %c num
::> if {$num>31 && $num<127} {
::>
::> or am I just missing something?
::>
::maybe
::
::string is ascii
::string is print
::string is control
:
: Yeah, but doesn't fit my needs. If it fails the [if] then control
:flows to:
:
: } else {
: switch -- $num {
: 2 { # ^B routine }
: 3 { # ^C routine }
: ...
:

  Ok, not making good sense here am I? I need to do some more tests
and get a better understanding of [string is <ascii|print|control>]
because I know they weren't working out for me in the particular
proc I was writing.

  It should work to use them in a multiple [if] and then use [scan]
if needed to get the integer vakues.

-- 
  _ _    ____
 //\/\ike ||uxford
 tuxford@earthlink.net


Relevant Pages

  • Re: TIP #188: Add string is wide to the string is Subcommand
    ... Mike Tuxford wrote: ... string is ascii ... string is control ...
    (comp.lang.tcl)
  • Re: CreateEventProc error
    ... Private Sub BuildDisplayForm(strPath As String, ... Dim qdf As QueryDef, qdfControls As QueryDef ... Dim ctl As Control, ctlLabel As Control, ctlParent As Control ... Dim strFilter As String, strSuffix As String, strParentName As String, ...
    (microsoft.public.access.forms)
  • Re: unable to load WinSocket dll in Excel Visual Basic Editor
    ... in my "com controls" list but as soon as I try to add the winsock control I ... may or not need the alias portion of the library definiation. ... Public Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias ... (ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String, ...
    (microsoft.public.excel.programming)
  • Having trouble with multi-select list box in Access
    ... Const mstrcRange_Begin As String ... name of a control that represents the End part of a range ... On Error GoTo ErrHandler ...
    (microsoft.public.access.gettingstarted)
  • Re: All Menu Navigation
    ... i based the implementation on sample code from http://www.asp.net/CSSAdapters/Menu.aspx, which shows how to create decent HTML for a Menu control bound to a SiteMapDataSource. ... public void RenderBeginTag(HtmlTextWriter writer, string cssClass) ... static public void RemoveProblemTypes ...
    (microsoft.public.dotnet.framework.aspnet)