Results 1 to 9 of 9

Thread: chr i need a comma

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    chr i need a comma

    i made a program to show all the chr code and meanings from 0 to 300. i found 2 command but none seem to work right when i save it to a text file and open in another editor.
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    you'll need to post code if you expect anyone to help you.

    chr codes don't GO to 300, only to 255

  3. #3

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    i dont know why i need to post code if all im asking for it the int to
    the (") chr like

    chr(147)

    but it dont work right. i use :
    Code:
    Private Sub Command1_Click()
    On Error Resume Next
    Dim i As Integer
        For i = 0 To 300
            Dim chrC As String
            chrC = i & " = " & Chr(i)
            List1.AddItem chrC
        Next i
    End Sub
    
    Private Sub List1_Click()
    Dim sI As Integer, sS As String
    sI = List1.ListIndex
    sS = Chr(sI)
        Text1.Text = sS
    End Sub
    to display them all. i get them all ok but i try to write acomma to a file and it dont work. i just want to know how to write a comman to a file . how can i do this?
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  4. #4

  5. #5

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    ok i guess i didnt explain well. Im writeing to a file using another vb project. I want to write a ( " ) to the file.

    like
    Code:
    Dim C As String
    C = Chr(148)
    Print #OutFile, C & " " & Text1 & " " & C & ", "

    but when i use 148 it shows a little black block when i open in a text editor.
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  6. #6

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    So can anyone tell me how to write a comma " to a text file?
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  7. #7

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    thanks anyway i found out i was on the wronge font and it is 34 on font
    MS SANS SERIF
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  8. #8
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    .... isn't a comma (,) not (")?
    "=quote
    ,=comma

    quote: chr(34)
    comma: chr(44)
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  9. #9

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    dam i feel slow lol mixed up words dam me
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width