Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Setting formats in xbasic.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Setting formats in xbasic.

    Can anyone help with info on how to set/change:- number, and maybe other formats in xbasic. eg symbol for interger/decimal difference, symbol thousand separator, date format, etc. ?

    Brian.

    #2
    RE: Setting formats in xbasic.

    Brian,

    Go to help, choose books, open xbasic help, hold "ctrl"+"F"

    I got a plethora of information this way.

    Dave

    Comment


      #3
      RE: Setting formats in xbasic.

      Dave,
      Thanks for the response.
      I have tried that, and also via index, etc. So far, nothing. I want to change the symbol to separate interger/decimal and thousands separator from English to Portuguese format, so things will work ok here. May also want to do same with date and other formats.
      So far havn�t found any method.
      Any help will be greatly appreciated,

      Brian.

      Comment


        #4
        RE: Setting formats in xbasic.

        Brian,

        You are basically limited to the object formats supported in the objects properties. You can change the objects display properties by going to to objects properties, clicking the Format tab and changing format style. But I suspect from your post that the style you want is not listed. The only work around I can think of is to create a calculated field for display and then using various functions, like transform, make a new field with a value in the format you want. Not a great or useful method.

        However, if the format is one already supported by Alpha in the objects format types, you can use xbasic to switch format types. This would help if different people are looking at the data and are comfortable with a specific format, like US numbers and date, European dates, etc.

        The process is fairly simple. I have attached a little app with one table and one form that has buttons to show how. The hard part is determining the formating strings for the format types. They appear the same as used in the transform function. But a good way to verify the string format, is to open a form for editing, change the format of an object to a type you need, go to the script editor, and click on the interactive tab. The formating string is found under object properties,entry,format. Enter a question mark on a line in the interactive and drag the format property to after the question and press enter. You will get something like this

        ?:Testform:Datefld.entry.format
        = "4"

        This would format the datefld object as "December 26, 2001". Repeat for each format type you need and then you can use xbasic to change the display.

        Jerry

        Comment


          #5
          RE: Setting formats in xbasic.

          Jerry,
          Thanks for the advice and help. No doubt I will be getting to the problem of dates soon. The problem I have now is displaying and printing numbers and currency amounts. In Portuguese the separation symbol for interger/decimal is "comma", and thousands separator a "stop" or can be a space (not used much); ie the reverse of English. eg English: 98,253.23 (ninety eight thousand two hundred fifty three point two three) becomes 98.253,23
          Obviously we can not send invoices with this kind of basic error. I do not understand that Alpha have not sorted this problem in order to sell to French Canada and Europe. They seemed to realise the necessity of fomat change in A4.
          Sounds like I may have to give up A5, or sort out a work-around using weird xbasic scripts.
          Any ideas from out there will be apreciated.
          Thanks for the help Jerry.

          Brian.

          Comment


            #6
            RE: Setting formats in xbasic.

            I can't help much with the number formats but here's some little-known info about the DTOC() function you may find useful. (I hope the HTML comes out OK.)

            NOTE: It works well for output info in reports and letters but you may experience some data input issues if you use this on a form. I believe the input format is NOT affected by this function so it could be confusing to the user because they will need to type new data in a different format than what is displayed. At least it should help when sending documents to customers.

            Syntax:

            Character String = DTOC( Date[, Option String] )

            Description:

            Returns a Character String in the MM/DD/YYYY format for the specified Date.
            The optional Option String determines alternate formats for the output Date string. The Option String can be a string containing any number from 1 to 12. If the option string is not included, the default is "1". Following is the resulting format for each option string when Christmas 2001 is the input date:


            Option String
            Result String


            "1"
            "12/25/2001"


            "2"
            "25/12/2001"


            "3"
            "25 December 2001"


            "4"
            "December 25, 2001"


            "5"
            "12/01"


            "6"
            "12/25/01"


            "7"
            "25/12/01"


            "8"
            "December 25th, 2001"


            "9"
            "25/Dec/01"


            "10"
            "25 Dec 2001"


            "11"
            "01/12/25"


            "12"
            "2001/12/25"



            Options "9" and "10" are ideal for people with international programming requirements. Also, note that the option is a string not a number.

            Comment


              #7
              RE: Setting formats in xbasic.

              Cal,
              I think you have answered my question. It seems, from your helpful response, that the answer is there using xbasic in various ways, you have suggested an answer for the date format, which was going to be my next problem.
              The date options of your message are very similar to that of an expanded A4 layout format option. Maybe(I hope) A5 has the options A4 has, but I need to get familiar with xbasic to appreciate them.
              I expect/hope/pray that the similar answers will be there for number and other formats as we need them. It seems I have a lot of work to do learning xbasic. And yes, I�m ordering the book(s) from Alpha.
              I don�t mind doing the work, just so long as I know it is somehow possible.
              Data input is not a big problem, as I should be able to use masks, etc to ensure our staff put in the data in the correct way; and basically I want to make it as simple and foolproof as possible. The problem will mainly be the output formats to print, view etc.
              Thanks again for the help

              Brian.

              Comment


                #8
                RE: Setting formats in xbasic.

                I should probably also point out, in case you aren't already aware, that the date formats I showed above are available in the "format" window for date objects. The use of the DTOC() options would not normally be necessary unless you wanted to embed the date in a calculated field.

                Even in an RTF object, you can double click an individual field that has been placed in the RTF object to pop up the Expression Properties box. In the Expression Properties box is a drop-down window for setting the format.

                Comment


                  #9
                  RE: Setting formats in xbasic.

                  Thanks Cal! Finding the undocumented stuff can be a big time saver.

                  Jerry

                  Comment

                  Working...
                  X