Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic Libraries (Linux)
#7
Input Box for Linux. This time use H file.

Code: (Select All)

Declare CustomType Library "./IbLNX"
    Function InputBoxUTF8_Text& (title As String, prompt As String, def As String, outText As String, ByVal outBytes As Long)
End Declare

_Title "Linux InputBox"

title$ = "Insert text" + Chr$(0)
prompt$ = "Write value:" + Chr$(0)
def$ = "default" + Chr$(0)

outt$ = Space$(2048)
ok& = InputBoxUTF8_Text&(title$, prompt$, def$, outt$, Len(outt$))
If ok& = 1 Then
    outt$ = ZTrim$(outt$)
    Print outt$
Else
    Print "cancel/error"; ok&
End If

Function ZTrim$ (s$)
    Dim p As Long
    p = InStr(s$, Chr$(0))
    If p > 0 Then
        ZTrim$ = Left$(s$, p - 1)
    Else
        ZTrim$ = s$
    End If
End Function


Attached Files Thumbnail(s)
   

.h   IbLNX.h (Size: 4.82 KB / Downloads: 9)


Reply


Messages In This Thread
Dynamic Libraries (Linux) - by Petr - 12-15-2025, 11:53 AM
RE: Dynamic Libraries (Linux) - by luke - 12-15-2025, 12:33 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-15-2025, 04:32 PM
RE: Dynamic Libraries (Linux) - by SMcNeill - 12-15-2025, 06:05 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-15-2025, 06:20 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-15-2025, 06:56 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-15-2025, 07:19 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-16-2025, 10:51 AM
RE: Dynamic Libraries (Linux) - by Petr - 12-22-2025, 12:48 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-27-2025, 08:53 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-27-2025, 10:10 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-28-2025, 01:37 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-28-2025, 06:01 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-29-2025, 04:56 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-29-2025, 08:55 PM
RE: Dynamic Libraries (Linux) - by Petr - 12-29-2025, 09:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic Libraries (Windows) Petr 50 3,466 02-24-2026, 06:38 PM
Last Post: Petr

Forum Jump:


Users browsing this thread: 1 Guest(s)