Search found 8 matches

by hhr
Oct 22, 2020 10:15
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 307

Re: SETENVIRON

Thank you. Output in Linux:

Code: Select all

123       Len=3
          Len=0
by hhr
Oct 22, 2020 8:56
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 307

Re: SETENVIRON

I don't understand 'never be modified': Dim As String MYCOUNT,envStr MYCOUNT="123" envStr="COUNT=" + MYCOUNT Setenviron(envStr) Print Environ("COUNT") MYCOUNT="ABCDEF" envStr="COUNT=" + MYCOUNT Setenviron(envStr) Print Environ("COUNT") Sleep
by hhr
Oct 22, 2020 6:58
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 307

Re: SETENVIRON

Setenviron("COUNT=123") Print Environ("COUNT") Const As String MYCOUNT1="456" Setenviron("COUNT=" + MYCOUNT1) Print Environ("COUNT") Dim As String MYCOUNT2="789" Dim As String envStr="COUNT=" + MYCOUNT2 Setenviron(envStr) Print E...
by hhr
Oct 06, 2020 19:30
Forum: Beginners
Topic: Convert vbscript to FB
Replies: 4
Views: 247

Re: Convert vbscript to FB

Look at https://github.com/JoseRoca/WinFBX There is a green button called 'Code'. Download the zip-file, extract it and copy the Afx-folder into the inc-folder of FreeBASIC. Then try #Include once "Afx\CWindow.inc" Dim As Integer num1, num2 num1 = Valint(AfxInputBox(0, 0, 0, , "Enter ...
by hhr
Sep 24, 2020 6:30
Forum: Windows
Topic: Unwanted closing of console
Replies: 3
Views: 140

Re: Unwanted closing of console

Try PAUSE command in the bat-file.
by hhr
Aug 17, 2020 19:30
Forum: Beginners
Topic: #Define vs Const
Replies: 8
Views: 547

Re: #Define vs Const

@Dodicat
Can it be the conversion Long-Double?
by hhr
Jul 06, 2020 16:53
Forum: Libraries
Topic: mpdecimal for Windows
Replies: 9
Views: 834

Re: mpdecimal for Windows

''============================================================================= #include "mpdecimal.bi" 'we need to initialize mpd_context before including the overloded operators Dim Shared As mpd_context_t mpd_context mpd_init(@mpd_context, 8) #include "mpdoverload.bi" 'mpdeci...
by hhr
Feb 18, 2020 20:21
Forum: Beginners
Topic: How to get the Documents folder of the current Windows user.
Replies: 13
Views: 939

Re: How to get the Documents folder of the current Windows user.

Print Environ("userprofile") 'Home directory in Windows Print Environ("userprofile") & "\Documents" 'Append the name of the folder Sleep #include once "win/shlobj.bi" Dim As Zstring*MAX_PATH pszPath,pszSubDir="" SHGetFolderPathAndSubDirA(0,CSIDL...

Go to advanced search