12-16-2022, 12:53 AM
(This post was last modified: 12-16-2022, 01:04 AM by Kernelpanic.)
Thank you for the hints. I think I now know why you just have to specify the path to an external program.
Now I tried to write a function that one enter the respective external program. But I get an error message that I can't do anything with. I searched the internet but could not find anything that explained the error message. - Even the error message I can't fully understand. "Illegal string-number conversion" . . . where is there a string-number?
Due to this error message I was unfortunately not able to check whether this function would work at all.
It is: externesProgramm = pfad
Now I tried to write a function that one enter the respective external program. But I get an error message that I can't do anything with. I searched the internet but could not find anything that explained the error message. - Even the error message I can't fully understand. "Illegal string-number conversion" . . . where is there a string-number?
Due to this error message I was unfortunately not able to check whether this function would work at all.
Code: (Select All)
'Externes Programm aufrufen mit Funktion - 15. Dez. 2022
Option _Explicit
Declare Function externesProgramm(extern As String) As String
Print "D:\" + Chr$(34) + "Program Files" + Chr$(34) + "\Notepad++\notepad++.exe tmp.three"
Function externesProgramm (extern As String)
Dim As String pfad
pfad = extern
externesProgramm = pfad
End Function
End
It is: externesProgramm = pfad