Results 1 to 7 of 7

Thread: capitalizing Address

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Colombia
    Posts
    1,880

    Default capitalizing Address

    Hi all

    How to avoid capitalizing Address?

    Code:
     Struct tpayer 
       String first_name 
       String last_name  
       tMPphone phone
        { Name="address" }
      tMPadress Address
     End_Struct

    Edgar

  2. #2
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    4,186

    Default Re: capitalizing Address

    Thanks

  3. #3
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    3,578

    Default Re: capitalizing Address

    While typing, and when code-sense window appears, hit ESC and it will remain as is
    Samuel Pizarro

  4. #4
    Join Date
    Feb 2009
    Location
    Maasland, The Netherlands
    Posts
    2,454

    Default Re: capitalizing Address

    Well, I have the same issue. A JSON webservice has nice variable named "number" (lowercase). If you accidently put the cursor of the Studio editor put on that line the variable is uppercased to "Number" when you from that line. You have to use NotePad++ to modify it. Not funny.
    Best regards,

    Peter van Mil
    Appvantage b.v.

  5. #5

    Default Re: capitalizing Address

    Peter,

    You can tell the Studio to not fix up the capitalization of your code.
    In the Editor, right click anywhere, "Editor Properties", Language tab page, uncheck the "Adjust text case while typing language keywords" checkbox.

    In addition the altName feature, as is shown in the initial post -which was introduced in DataFlex 19.1- should help against that.
    Note also that when using altname, your names do not have to be the same. Like on that help page, your internal Number variable can be named differently.
    Same for Edgar's "Address".. the actual struct name can be called myAddress or whatever.

    Code:
     Struct tpayer 
       String first_name 
       String last_name  
       tMPphone phone
        { Name="address" }
       tMPadress myAddress
     End_Struct
    --
    Wil
    Last edited by wila; 15-Jun-2021 at 04:28 AM.

  6. #6
    Join Date
    Feb 2009
    Location
    Maasland, The Netherlands
    Posts
    2,454

    Default Re: capitalizing Address

    Thanks. I didn't know the altName feature, but it can be very useful. I will use it for "number" variable.
    Best regards,

    Peter van Mil
    Appvantage b.v.

  7. #7
    Join Date
    Feb 2009
    Location
    Colombia
    Posts
    1,880

    Default Re: capitalizing Address

    Thanks Samuel/Wila

Posting Permissions

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