Alpha Video Training
Results 1 to 10 of 10

Thread: special characters

  1. #1
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,946

    Default special characters

    am working on an app where there will be a lot of characters for engineering to be placed in character fields - client is coming from Alpha DOS, and apparently Alpha DOS lets you use the alt key to input from the extended ascii character set, whreas apparently Alpha 5 does not.

    how do others deal with this kind of issue?

  2. #2
    VAR
    Real Name
    John Lemisch
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    673

    Default RE: special characters

    I use them all the time
    © = alt+0169
    • = alt+0149

  3. #3
    "Certified" Alphaholic
    Real Name
    William Hanigsberg
    Join Date
    Apr 2000
    Location
    Toronto, ON
    Posts
    4,018

    Default RE: special characters

    Martin,

    Also check out the "toolbars" application note on the Alpha Learning Center page. Ed Larrabee's doc develops a methodology for automating field insertions which you should find helpful.

    Bill

  4. #4
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,946

    Default RE: special characters

    Bill,

    using Ed's toolbar, I discovered the following:

    I can create the custom button for chr(241) [+ over -]
    and the toolbar editor recognizes 241 and puts the correct text in the toolbar

    but if I use chr(241) in the code, it displays an incorrect character. But if I use chr(177) it displays the correct character. I have no problem with using 177 instead of 241 in the toolbar script, but I fear it is an Alpha error that it is getting the wrong character for chr(241) and that if they "fix it" later then the code will fail.

    try this
    for i=1 to 257
    trace.writeln(i + " " + chr(i))
    next

    then note that the characters it is displaying/writing are not always the correct ascii characters.

    I figured out that the reason a field will not accept alt-241 in a field on my form was because I had some onkey code for "{esc}"

    I put the following code at the top of onkey and now it works
    if this.active()="location"
    end
    end if

  5. #5
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,946

    Default RE: special characters

    bump

  6. #6
    VAR csda1's Avatar
    Real Name
    Ira J Perlow
    Join Date
    Apr 2000
    Location
    Boston, Massachusetts, USA
    Posts
    3,530

    Default RE: special characters

    Martin,

    The character displayed for any particular chr() code is dependent on the font of the object. Go to Start, Programs, Accessories, System Tools, Character Map and you can then see the mappings of the various fonts. If you need to change fonts within an object, it may be necessary to use an RTF object.

    Regards,

    Ira

  7. #7
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,946

    Default RE: special characters

    Thanks ever so much Ira - I would never have even thought of that!

  8. #8
    "Certified" Alphaholic
    Real Name
    William Hanigsberg
    Join Date
    Apr 2000
    Location
    Toronto, ON
    Posts
    4,018

    Default RE: special characters

    Martin,

    Is Ed's methodology working in the context of your application. Have you adapted it in any interesting ways?

    Thanks,
    Bill

  9. #9
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,946

    Default RE: special characters

    Good question - here is what I am doing, but I haven't finished yet.

    I am going to get a complete list from the client of the "special characters" he is going to need - mostly stuff like degrees, +/-, and regular engineering/math stuff.

    The I am going to create a table containing the characters (for displaying) and the chr(values).

    Then, on all appropriate forms I'll give the user a constant F-key like F12 to pop a dialog showing the characters, letting them scroll and enter or doublelclick to select, get the chr(value) in a variable and use a variation of Ed's code to insert it.

    What I hope to do is before they depart the field object(to press F12) is get the field-object name and cursor position in variables and put the code in the onkeycode for F12.

    like they are in the field and have typed "360" - and if they press the F12 key, let them scroll to select the degree symbol, go back to the field and automatically insert it.

    If I get that to work seamlessly, I'll send you a copy, but I have been too busy to work on it so far.

    Unless I had a table for every possible chr(value) for every possible font, I'll have too be sure to ALWAYS use the same font in apprpriate fields.

    But for now I am just letting them use, e.g., alt241.


  10. #10
    "Certified" Alphaholic
    Real Name
    William Hanigsberg
    Join Date
    Apr 2000
    Location
    Toronto, ON
    Posts
    4,018

    Default RE: special characters

    Thanks for the interim report. It's an interesting problem. The minute you mentioned it I realized I would have to face it one day.

    best wishes,
    Bill

Similar Threads

  1. Run Special
    By Mortie in forum Alpha Five Version 5
    Replies: 1
    Last Post: 11-01-2004, 02:01 PM
  2. special characters ü ä ï
    By Luc Verlee in forum Alpha Five Version 5
    Replies: 0
    Last Post: 01-21-2004, 12:17 PM
  3. Special Variables
    By Steve Waterbury in forum Alpha Five Version 5
    Replies: 4
    Last Post: 09-10-2003, 04:43 AM
  4. Special COUNT
    By Serge Dugas in forum Alpha Five Version 5
    Replies: 9
    Last Post: 08-18-2003, 10:50 AM
  5. Fractions - Special characters
    By kgilroy in forum Alpha Five Version 5
    Replies: 0
    Last Post: 11-19-2002, 12:29 AM

Bookmarks

Posting Permissions

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