Search found 19 matches
- Sep 27, 2022 20:26
- Forum: General
- Topic: How to Read computer's time zone ?
- Replies: 2
- Views: 758
Re: How to Read computer's time zone ?
In Linux you can do: #include "crt/time.bi" dim as time_t t dim as tm lt localtime_r(@t, @lt) print "gmt offset is "; lt.__tm_gmtoff / 3600 print "time zone is "; *lt.__tm_zone In Windows, there's a Win32 api call for this: https://learn.microsoft.com/en-us/windows/win...
- Sep 27, 2022 8:08
- Forum: General
- Topic: How to Read computer's time zone ?
- Replies: 2
- Views: 758
How to Read computer's time zone ?
Hello,
Is there a possible way to read the computer's time zone ?
For example UTC+2, UTC+3 .etc ?
Thank you
Is there a possible way to read the computer's time zone ?
For example UTC+2, UTC+3 .etc ?
Thank you
- Sep 23, 2022 7:42
- Forum: Beginners
- Topic: Problem in Append unicode text
- Replies: 10
- Views: 2741
Re: Problem in Append unicode text
I confirm that there is a bug using append with Encoding
When I try this Open myFilePath For Append encoding "UTF8" As #1 then I cannot append to a file
But if I try Open myFilePath For Append As #1 then I can
When I try this Open myFilePath For Append encoding "UTF8" As #1 then I cannot append to a file
But if I try Open myFilePath For Append As #1 then I can
- Sep 19, 2022 11:45
- Forum: Sources, Examples, Tips and Tricks
- Topic: List Files and Dirs of Path with Unicode character support ?
- Replies: 16
- Views: 2389
Re: List Files and Dirs of Path with Unicode character support ?
To be precise I didn't test the "write to file method". I tried to read the pipe data and just print them on screen. I do not want to use a "write to file" method in order to list the files. I want to make it thread safe without using a temp file on the harddrive. I can only test...
- Sep 18, 2022 13:50
- Forum: Sources, Examples, Tips and Tricks
- Topic: List Files and Dirs of Path with Unicode character support ?
- Replies: 16
- Views: 2389
Re: List Files and Dirs of Path with Unicode character support ?
Thank you for your replies. Still have not made it work... The code I am using, after you suggested to use a pipe, is the following. The problem occures while reading the pipe data Dim UserPath as String = "C:\users\nsiat\Desktop" Open Pipe "dir /b " & UserPath For Input enco...
- Sep 18, 2022 10:17
- Forum: Sources, Examples, Tips and Tricks
- Topic: List Files and Dirs of Path with Unicode character support ?
- Replies: 16
- Views: 2389
Re: List Files and Dirs of Path with Unicode character support ?
This actually works!
But how I can get the response from the shell("dir /b " + path) ?
But how I can get the response from the shell("dir /b " + path) ?
dodicat wrote: ↑Sep 18, 2022 9:33 Just try shell then.Code: Select all
var path="C:\Users\nsiat\Desktop" shell("dir /b " + path) sleep
- Sep 18, 2022 7:05
- Forum: Sources, Examples, Tips and Tricks
- Topic: List Files and Dirs of Path with Unicode character support ?
- Replies: 16
- Views: 2389
Re: List Files and Dirs of Path with Unicode character support ?
Hello, I get questionmarks in place of non Unicode characters. My OS is Windows 10 This is the output I get even by using the shell("chcp 65001") ``` File 0 C:\Users\user\Desktop\1.png File 1 C:\Users\user\Desktop\AnyDesk.exe File 2 C:\Users\user\Desktop\desktop.ini File 3 C:\Users\user\De...
- Sep 17, 2022 17:15
- Forum: Sources, Examples, Tips and Tricks
- Topic: List Files and Dirs of Path with Unicode character support ?
- Replies: 16
- Views: 2389
Re: List Files and Dirs of Path with Unicode character support ?
@dodicat I tried the shell("chcp 65001")
I see "Active code page: 65001" on the output but the results are the same...
I can read only English characters from filenames
I see "Active code page: 65001" on the output but the results are the same...
I can read only English characters from filenames
- Sep 17, 2022 15:09
- Forum: Sources, Examples, Tips and Tricks
- Topic: List Files and Dirs of Path with Unicode character support ?
- Replies: 16
- Views: 2389
List Files and Dirs of Path with Unicode character support ?
Hello, I am trying to list Files and Directories of a Path using unicode support My code works OK with Files and Dirs with English Names but not for Greek. Any help would be appreciated #include once "vbcompat.bi" Dim dirPath as String = "C:\Users\nsiat\Desktop" Dim filename as W...
- Sep 15, 2022 15:43
- Forum: Sources, Examples, Tips and Tricks
- Topic: Programming Languages Benchmark
- Replies: 71
- Views: 12835
Re: Programming Languages Benchmark
To be honest I measured random number generation only with java and I saw that it wasn't so significant but I guess you are right. I will change it without measuring the random generation. While the benchmark is of course already perfect with Free Pascal occupying the top spot, I still have a minor ...
- Sep 15, 2022 5:40
- Forum: Sources, Examples, Tips and Tricks
- Topic: Programming Languages Benchmark
- Replies: 71
- Views: 12835
Re: Programming Languages Benchmark
Ohh yes! A generic typing at compile time would be better than a macro. Perhaps something like ArrayList<String> or ArrayList<MyType>... I find Macros excellent declaring methods and stuff...
- Sep 14, 2022 19:02
- Forum: Sources, Examples, Tips and Tricks
- Topic: Programming Languages Benchmark
- Replies: 71
- Views: 12835
Re: Programming Languages Benchmark
For the James Gosling shake... I'm not attacking anyone! A tool will never define the worker's brain and skills. A tool is just a tool... The worker just needs to pick up the correct tool for his work. I a currently working on a RAD framework for FB in which I will transfer things from Java. The fra...
- Sep 14, 2022 17:08
- Forum: Sources, Examples, Tips and Tricks
- Topic: Programming Languages Benchmark
- Replies: 71
- Views: 12835
- Sep 14, 2022 16:59
- Forum: Sources, Examples, Tips and Tricks
- Topic: Programming Languages Benchmark
- Replies: 71
- Views: 12835
Re: Programming Languages Benchmark
dodi cat you don't sound like a dog's person... You really do not know what a black hole consists of ? Really ?? Well.. It is a common knowledge that black holes consists of Python devs and their friends looking for 'that missing tab' You have only had 4 posts Vinion. I mentioned in the other thread...
- Sep 14, 2022 16:51
- Forum: Sources, Examples, Tips and Tricks
- Topic: Programming Languages Benchmark
- Replies: 71
- Views: 12835
Re: Programming Languages Benchmark
Hello caseih, Unfortunately I wrote a lot of Python so there is no possible way to convince me to write or to not. Python is a programming language and programming languages are like tools. I use tools when I have to and I never make fun of them. I will never make fun of a Philips screw driver becau...