xsharp.eu • XIDE help - was: Hint to find the source of a runtime function?
Page 1 of 3

XIDE help - was: Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 8:54 am
by wriedmann
Hello,

is there any hint to find the source of any runtime function?
For example, I have searched for the OS() function, and could not find that function in the online help.
I have found that function then in the OS.prg in the XSharp.Core library, but it would be interesting to have a possibility to search in the entire repository.
Thank you very much!
Wolfgang
P.S. the code for Win32S and Win32Windows could be safely removed as X# will not run on these platforms
https://github.com/X-Sharp/XSharpPublic ... ons/OS.prg
starting with line 286

Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 8:58 am
by wriedmann
Hello,

a curiosity: please look at the sample code from the VO 2.8 help for the OS() function:
oshelp.png
oshelp.png (29.84 KiB) Viewed 344 times
AFAIK VO 2.x was never able to tun under Windows 3.1 (and VO 1.0 applications were really instable there).
Wolfgang

Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 11:27 am
by Chris
Hi Wolfgang,

You can download the whole source, then use XIDE or VS to navigate/search etc around it like you do with your own projects.

About the docs, I suspect this was written during the CAVO 1.0 days :)

Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 1:31 pm
by wriedmann
Hi Chris,
thank you very much!
Maybe one (not you!) could write a GitHub parser and buld a database with links.
Wolfgang

Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 2:01 pm
by robert
Wolfgang,
If you open the X# help file and look for OS Function, then you'll find a blue View Source button on that page in the help file.
If you click on that button then it will bring you to the page:
https://github.com/X-Sharp/XSharpPublic ... ons/OS.prg
The function is in that file.

Robert

Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 2:13 pm
by wriedmann
Hi Robert,
thank you very much!
Wolfgang
P.S. since the online help on the website had no reference about the OS function, I don't even tried the local help file thinking that both would be generated from the same source code

Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 2:16 pm
by robert
Wolfgang,
I think the search function on the web ignores 2 character words.
Robert

Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 2:17 pm
by FFF
wriedmann wrote:For example, I have searched for the OS() function, and could not find that function in the online help.
Maybe you made the same mistake as i did: "Search" for "OS()" gives "Help couldn't search for this entry". But searching for "OS" works!
@Robert: seems there's a problem with "(" in parsing the search entry - couldn't make it work for any function call

Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 2:21 pm
by wriedmann
Hi Robert,
for me the search to "OS" does not works (contrarily to Karl), and typing "OS()" removes the parentheses.
Wolfgang

Hint to find the source of a runtime function?

Posted: Tue Dec 17, 2019 2:30 pm
by FFF
Wolfgang,
where/how did you search?
Xide-Help- X#-X#help file - tab search?
That's how i did.

BTW, cursor on "OS(..." and Shift F1 unfortunately does not work, while right-click lets jumps to metadata, which isn't too helpful ;) - @Chris, any chance to wire this to help (and ideally) jumpable further to the source?