Re: build*.exe with pictures, icons...

2019-11-03 Thread Peter58
Yes, nimassets seems easy and interesting ... But the * .exe is it really standalone? What happens after the build, if I erase all the directory "templatesdir"? The * .exe will still work?

build*.exe with pictures, icons...

2019-11-02 Thread Peter58
Can we compile a script by directly embedding images and / or icons in the the * .exe file... instead of having them separately?

Re: wNim - Nim's Windows GUI Framework

2019-11-02 Thread Peter58
Hi Ward... Good Job ! I'm interesting to use it (or perhaps wnim...) What's the way to change the default icon of the main window ? (and put one of mine...) - Thanks :-)

Re: Gui App (niGui) in 'standalone mode'

2019-10-28 Thread Peter58
Find it ! >> nim --app:gui c name-of-file.nim it works.

Gui App (niGui) in 'standalone mode'

2019-10-28 Thread Peter58
What's the way to launch the .exe of a gui program (niGUi) without launch dos console before ? A compile option ? - A modify directly in the .nim script file ? Thanks.

Re: Write in *.txt file from variables values , with separate new lines.

2019-10-27 Thread Peter58
God ! It works perfectly. :-) Thanks. If i had like more values... i think about a loop (for...) isn't it ?

Write in *.txt file from variables values , with separate new lines.

2019-10-27 Thread Peter58
I can read my file, but cannot write in it, with every value per line... >>> Thanks to your help... import strutils let cont = readFile("values.txt") let val = cont.splitLines() echo val # result >> (OK) # # # echo "val1: ", val[0], " val2: ", val[1], " val3: ", val[2] # r

Re: Difference between two dates

2019-10-27 Thread Peter58
Good job... Quick and simply answer... Script work perfectly ! Thanks a lot :-)

Difference between two dates

2019-10-27 Thread Peter58
Hi all... I'm looking for a simply way, to calculate the diff. between two dates ... in Days ! For example> import times let auj = format(now(), "d/MM/ -- HH:mm") # Today's date... let deb = parse("04-09-2019", "dd-MM-") #an 'older' date... echo deb.format("dd-MM-") Actually, the

Diff between two dates

2019-10-25 Thread Peter58
Hi all . I'm an absolute beginner in NIM :-) let now1 = format(now(), "dd/MM/") let debut = parse("04-09-2019", "dd-MM-") echo debut.format("dd-MM-") I would to obtain the result (in number of Days) between these two dates ! Thanks a lot, in advance...