Jump to content

John Kouraklis

Members
  • Content Count

    130
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by John Kouraklis

  1. Hi, I want to be able to retrieve the currency code from the local settings. I've got a list with currency codes and countries, etc. For example, if the system is in the US, I would like to get the USD code, etc. The IFMXLocaleService.GetCurrentLangID returns a generic 'en' from which I am not able to retrieve the currency symbol. Anyone any ideas? Thanks a lot
  2. John Kouraklis

    How to get the Currency Symbol in multiple platforms

    @Cristian Peța Does this retrieve the country code? It looks like it get the language code
  3. John Kouraklis

    How to get the Currency Symbol in multiple platforms

    No, I want to get the currency code not the character, USD vs $
  4. John Kouraklis

    How to get the Currency Symbol in multiple platforms

    After fiddling with different stuff, I went with the following: 1. use the local ip to retrieve the country code using ipstack,.com 2. use the country code to get the currency from restcountries.eu (thanks Lars :-)) Thanks for the help everyone
  5. John Kouraklis

    How to get the Currency Symbol in multiple platforms

    @David Heffernan I've got that but how do I get the country code in all platforms?
  6. Hi all, have you got any tips about how to speed up the linking phase when I compile an app for android? Right now it sticks at the linking phase for maybe 1-1.5 minutes. I run Delphi in VM and I have a phsical android tablet. Thanks
  7. John Kouraklis

    Any tips to speed up Android linking and deployment?

    I have tried many times but still does not work
  8. John Kouraklis

    Any tips to speed up Android linking and deployment?

    Debugging is not working for me....IDE always complains that can not bind to the port is already in use (???) My apps are quite modular but this does not really help the linking phase which is what takes ages. I suppose if I had release compiled versions of unchanged units this would speed things up but I think it is difficult to manually manage this. I don't know if the signing can be skipped at all? The IDE produces an unsigned version but this is not what is used in the end. One time I started looking at how I could build and deploy an app outside IDE (eg. from command line) but at the moment this is not possible as the deployment of assets is managed only by the deployment manager. I wonder if tools from other dev environments can be used. For example, we could have a command line tool that runs MSBuild and then some external tools but I don't know how they work
  9. John Kouraklis

    Any tips to speed up Android linking and deployment?

    @Rollo62 Thanks I changed it to no debug info as I never managed to debug apps on Android
  10. John Kouraklis

    IDE can not create ancestor TFrame

    Hi, all of the sudden, my IDE throws an error that it can not create the ancestor form (frame). I've got a base frame TBaseFrame and another frame inherits from it. When I try to open the frame in the IDE, I get the error message but the application runs and fine. I tried to remove and readd the frame but still the problem exists. Any suggestions?
  11. John Kouraklis

    IDE can not create ancestor TFrame

    Thanks for the help. I will keep the Show NonVisual flag in mind
  12. John Kouraklis

    IDE can not create ancestor TFrame

    No, I was not able to open the ancestor frame. I could see the code but not the design. So, I totally removed the frame, created a new one and added the code again. Very annoying and I don';t feel very confident tbh but I use frames all the time. They are very convenient no matter what @Uwe Raabe Sorry, that's difficult. Thanks anyway @Der schöne Günther How do you keep backups of the registry? Manually or you use some kind of script/app?
  13. John Kouraklis

    Ads in applications

    Hi, I would like to show some ads in an FMX application. I checked TBannerAd but it seems to work only on Android and iOS. I'd like to show ads on Win and Mac as well. What are the options? Has anyone used TBannerAd? What's the experience? I tried to run the demo that comes with Delphi but in complains that "Java class JAdSize could not be found". I am trying it on Android Nouget. Thanks
  14. John Kouraklis

    OrangeUI

    Hi, does anyone have any experience with OrangeUI from here www.orangeui.cn? Seems a massive UI library. I wonder if is stable and can be trusted more/the same as Firemonkey?
  15. John Kouraklis

    OrangeUI

    Whereas you feel safe with American companies which hand over everything on you to NSA and FBI as they do not risk to end up in jail. Come on, OrangeUI is probably an individual who sells his product. I am sure all of us have bought components from such individuals in the past. And, really, would you feel more comfortable if the site was in English and the download link was a direct file? or if the domain was orangeui.com?
  16. John Kouraklis

    OrangeUI

    @pieomy Do they work on mac as well? In the download page macOS is removed. Do you use it for desktop apps?
  17. John Kouraklis

    OrangeUI

    It is unfair to judge the website based on our western standards... It is a matter of the markets they grow in. You can, also, see the difference in their demos which feel like a huge spam and p*rn campaign. But this format is so common in China and Japan. The components are amazing though...lot's of features and they work very smoothly in Android. Haven't tried in iOS Any comments about the components?
  18. John Kouraklis

    How to replace whole words in a string

    Hi, I am using TStringHelper.Replace to replace substrings in strings but it seems that it does not respect whole words. Anyone knows how to do this with Replace?
  19. John Kouraklis

    How to replace whole words in a string

    Thanks for the RegEx suggestions
  20. John Kouraklis

    How to replace whole words in a string

    Yes, but I don't want to write a function from scratch
  21. John Kouraklis

    How to replace whole words in a string

    @FredS What I need is to return 'yes, abc.def'
  22. John Kouraklis

    How to replace whole words in a string

    @Silver Black That's what I use now and sadly does not replace whole words. Eg. in this string 'abc and abc.def' if you want to replace 'abc' whole word only the above and the one from stringhelper will replace both instances of 'abc'
  23. John Kouraklis

    10.3.1 has been released

    Ok, upgrade completed and things seem to be in place except the Connection Managers. I can see the files in Documents. Anyone knows how to make the (new) IDE recognise them? Does it use the registry? Edit: It doesn't seem to recognise GetIt installed packages.....sadly
  24. John Kouraklis

    IDE Fix pack for Rio

    I am also installing 10.3.1 right now...let's see
  25. Hi, I want to write a function and allow the user of the function to pass a record that I do not know in advance. Then, the idea is I iterate through the fields in the function. Something like this: function pass (aRec: record): boolean; But a 'record' can't be used like this. I've thought of two approaches but without being able to make them work: 1. Use of pointers: function pass (aRP: Pointer): boolean; begin .... /// here I do not know how to (cast the pointer to any record and) iterate using RTTI /// I think this can not be done as the cast seems very arbitrary ... end; 2. A kind of adapter record: type TAdapterRec<T> = record instance: T constructor Create (aRec: T); end; and then tried to declare the function: function pass (aRec: TAdapterRec<T>): boolean; but generics like these are not allowed. Anyone can help with this? I would like to avoid using classes. Thanks
×