Consulting

Results 1 to 5 of 5

Thread: How to insert a black squar/circle in a string ???

  1. #1
    VBAX Regular
    Joined
    Jan 2018
    Posts
    52
    Location

    How to insert a black squar/circle in a string ???

    I want to give an explanation to the symbols "Black squar" and Black Circle" and therefore have to insert these symbols in a string.

    I can see in WORD that the Unicodes are 25A0 for the black squar and 25CF for the black circle, but

    How do I insert them into a string like this:

    BS = Owner of, BC = Participant in the event !

    Where "BS" is the "Black Squar" anf "BC" is the "Black Circle"

    HOW ?

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Dim BS As String: BS = ChrW(9632)
    Dim BC as String: BC = ChrW(9679)
    
    OutputString = BC & "= Owner of, " & BC & " = Participant in the event"
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    VBAX Regular
    Joined
    Jan 2018
    Posts
    52
    Location
    Thx - but how did you find it ?

    My little sub shows different char

    Public Sub findChar()
        Dim i As Integer
        For i = 9600 To 9700
            Debug.Print i, ChrW(i)
        Next i
    End Sub

  4. #4
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    I used Calculator to convert the Hex values you gave to decimal values.

    The character printed may depend on your language settings. :
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  5. #5
    VBAX Regular
    Joined
    Jan 2018
    Posts
    52
    Location
    Ok - thx for info !

Posting Permissions

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