Share via


What's that funny character?

Run this code:

CREATE CURSOR foo (line c(100))

LIST STRUCTURE TO t.txt

APPEND FROM t.txt sdf

GO RECNO()-1

FOR i = 1 TO LEN(TRIM(line))

      ?i,SUBSTR(line,i,1),ASC(SUBSTR(line,i,1))

ENDFOR

It produces t.txt which looks like this:

Structure for table: E:\FOXTEMP\00003HU100WC.TMP

Number of data records: 0

Date of last update: / /

Code Page: 1252

Field Field Name Type Width Dec Index Collate Nulls Next Step

    1 LINE Character 100 No

** Total ** 101

What is the character at position 6 of the field line?

Comments

  • Anonymous
    July 26, 2006
    Duh.  I just have a blank in the 6th position.  I must be doing something wrong.
    --- Tom

  • Anonymous
    July 26, 2006
    The comment has been removed

  • Anonymous
    July 26, 2006
    Hi,
    Before the SET CARRY ON, I only saw spaces too. Afterwards, I got a CHR(25) at position 10.

    Location of that wierd character is depending on _screen.FontName and .FontSize too. Nice issue :)

  • Anonymous
    July 27, 2006
    Thanks Timo!

    So the question now is, what is a CHR(26) and why is it there? What does it have to do with SET CARRY ?

  • Anonymous
    July 27, 2006
    In my last post, What's that funny character?, I asked about a particular character. In fact, another...

  • Anonymous
    July 27, 2006
    CHAR(25), which is Ctrl-y.
    Ctrl-y is how you APPEND a new record.
    SET CARRY ON | OFF
    Brings data from all fields in all work areas forward from the current record to a new record.

    Why is it there?

  • Anonymous
    July 27, 2006
    The comment has been removed

  • Anonymous
    August 24, 2006
    The comment has been removed

  • Anonymous
    May 31, 2009
    PingBack from http://outdoorceilingfansite.info/story.php?id=23234

  • Anonymous
    May 31, 2009
    PingBack from http://outdoorceilingfansite.info/story.php?id=5598