-
Just a few basic questions:
What is the "&" sign used for when I represent numbers?
I know that &H100 is 100 in hex but sometimes I see
a number with an "&" stuck at the end (678&) and some times both at the end and beggining.
Why?
Whrn I exeute a .reg file using "shellexecute", I get the confirmation message box.
Is there a way to execute a .reg file with out this confirmation?
how can I craete a menu on a form using API?
Thanks
Dan.
-
& is a type declarator symbol that stands for long.
Code:
Dim X&
Dim X2 As Long
Const X3 As Long = 14&
Each of those things is a long integer. If you use & at the end of a normal number, it will force that value into a long integer.
About those other things, I've never used ShellExecute so I can't help out there. For a menu though, if you don't need it to be made at run time, it would be easier using the menu editor at design time.
[Edited by Kaverin on 10-27-2000 at 12:11 PM]
-
For creating menus at runtime, you would have to use loads of the menu APIs, CreateMenu, SetMenu, InsertMenuItem, DrawMenuBar etc.
Not really worth it, unless you have planes to ownerdraw it, but even then you could just ownerdraw VB's menus. There's no real ... point.