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

This forum is meant for questions and discussions about the X# language and tools
User avatar
wriedmann
Posts: 3668
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

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

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
wriedmann
Posts: 3668
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Hint to find the source of a runtime function?

Post 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 346 times
AFAIK VO 2.x was never able to tun under Windows 3.1 (and VO 1.0 applications were really instable there).
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 4599
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Hint to find the source of a runtime function?

Post 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 :)
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3668
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Hint to find the source of a runtime function?

Post by wriedmann »

Hi Chris,
thank you very much!
Maybe one (not you!) could write a GitHub parser and buld a database with links.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4290
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Hint to find the source of a runtime function?

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
wriedmann
Posts: 3668
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Hint to find the source of a runtime function?

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4290
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Hint to find the source of a runtime function?

Post by robert »

Wolfgang,
I think the search function on the web ignores 2 character words.
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
FFF
Posts: 1535
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Hint to find the source of a runtime function?

Post 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
Regards
Karl
(on Win8.1/64, Xide32 2.19, X#2.19.0.2.)
User avatar
wriedmann
Posts: 3668
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Hint to find the source of a runtime function?

Post by wriedmann »

Hi Robert,
for me the search to "OS" does not works (contrarily to Karl), and typing "OS()" removes the parentheses.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
FFF
Posts: 1535
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Hint to find the source of a runtime function?

Post 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?
Regards
Karl
(on Win8.1/64, Xide32 2.19, X#2.19.0.2.)
Post Reply