VSFlex 8 ActiveX Unicode sample?

Posted by: sashaamber on 16 September 2017, 7:51 am EST

  • Posted 16 September 2017, 7:51 am EST

    Hi,







    I'm using the latest version of the VSFlex 8 ActiveX grid with VB6 and was



    curious to know if there are any samples for populating the grid with



    Unicode text?







    Thanks.











    Ken Slovak

  • Posted 16 September 2017, 7:51 am EST

    I'm using the latest version of the VSFlex 8 ActiveX grid with VB6 and was



    curious to know if there are any samples for populating the grid with



    Unicode text?







    There's no difference at all:







    fg.TextMatrix(row, col) = someUnicodeString

  • Posted 16 September 2017, 7:51 am EST

    Thanks. So that would have to be supplied as a binary array using VB 6?



    What about the right to left setting for languages such as Hebrew or



    Arabic? Is that needed too? There's no way to set a code page for the



    grid, is there?





    1. Ole strings are Unicode by default. Unfortunately, VB6 isn't very



      Unicode-aware.







      You can create Unicode strings in VB by concatenating Unicode characters



      represented by ChrW variables. For example:







      Dim ustr As String



      ustr = ChrW(&HE1) & ChrW(&HE0) & ChrW(&H1EA3) & ChrW(&HE3) &



      ChrW(&H1EA1) & ChrW(&H103) ' …







      Me.VSFlexGrid1.TextMatrix(1, 1) = ustr



      Me.VSFlexGrid1.AutoSize 1









    2. The grid has a RightToLeft property that can be used with Arabic and



      Hebrew text.





    3. No, there's no way to set the code page for the grid.
  • Posted 16 September 2017, 7:51 am EST

    Thanks.

    So that would have to be supplied as a binary array

    using VB 6?

    What about the right to left setting for languages

    such as Hebrew or Arabic? Is that needed too?

    There's no way to set a code page for the grid, is

    there?





    Ken Slovak

    wrote in message news:181785@test.componentone.com...> I'm using the latest version of the VSFlex 8 ActiveX grid with VB6 and was

    > curious to know if there are any samples for populating the grid with

    > Unicode text?



    There's no difference at all:



    fg.TextMatrix(row, col) = someUnicodeString

    http://home.componentone.com/cs/forums/181677/ShowPost.aspx#181785



  • Posted 1 February 2018, 10:12 pm EST

    hi , this is super late but i need to ask this , how to add the vsflex8U in the form control programatically ? i tried adding it using this code : ```

    Dim WithEvents dynamicVSFlexGrid As VBControlExtender

    Dim StrLicenseKey As String

    StrLicenseKey = Licenses.Add(“VSFlexGrid8.VSFlexGridADO”, “O0OOEC742”)

    Set dynamicVSFlexGrid = Form1.Controls.Add(“VSFlexGrid8.VSFlexGridADO”, “VSFlexGrid81”)

    
    yes its added to form control but its not the vsflex8U (which is the unicode ) it added just the vsflex8 (which is not unicode) thanks a lot, im using vb6 btw have a great life! :)
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels