LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Can anyone explain what program language uses this syntax? pr&int (http://www.linuxquestions.org/questions/programming-9/can-anyone-explain-what-program-language-uses-this-syntax-pr-and-int-640417/)

martinwprior 05-06-2008 10:32 PM

Can anyone explain what program language uses this syntax? pr&int
 
('Pr&int Preview', 'Print_Preview')

I imaging that the leftmost syntax is a function/module name and the right the action.
We are not programmers, we are doing some localisation translation and just need to check that we should only need to translate the right syntax aas the the left, we assume is part on an instruction.

Thankyou

martin prior

ranger_nemo 05-06-2008 10:38 PM

I think it's part of a menu, and the ampersand (&) denotes which letter is underlined and is the shortcut. ALT+F calls the File menu, then you can hit S for Save.

matthewg42 05-07-2008 04:40 AM

I agree with Ranger. It's a fairly common syntax when specifying menu items. However there is not a definite relationship between this syntax and a specific programming language - it is some sort of GUI specification, which may, or may not end up in your program code, depending on how your GUI library/tools work.

martinwprior 05-07-2008 04:44 AM

thanks very much for that. I used to be a fortran and c programmer about 40 years ago, but never kept up with moder languages and syntax

regards

Martin Prior


All times are GMT -5. The time now is 03:24 PM.