Your Products have been synced, click here to refresh
I am not providing a code sample, but at the end of this I hope one will exist. Ultimately I want a .BAS that opens a dialog that allows me to execute other .BAS files I have created. It'd be great if they can be assigned to buttons instead of a file selection dialog.
I want this functionality because the PC-DMIS toolbars don't work properly- they lose the icon leaving a blank toolbar- leaving me to guess what is what. With a .BAS like the one I have described I can assign just one user defined command and not care that it is a blank icon.
Is anyone versed enough in BASIC to help me with this?
Chances are that your user settings are corrupted anyways. I would reset your user settings and recreate your customized toolbars. Then create a backup of the new toolbars using the Settings Editor. I always save these backup files with a date code because this will happen again and its easer to restore your toolbars then recreate them. Also, once you get your customize toolbars where you want them take a screen shot of your toolbars to make it easer to recreate them if your backup file doesn't work correctly.I have not tried this. Won't this destroy all of my settings and toolbars and directories? I don't want to rock the PC-DMIS boat as most things currently work well...
Don't want to go off topic...I'm still interested in the .BAS
Ultimately I want a .BAS that opens a dialog that allows me to execute other .BAS files I have created.
Sub Main() Dim oApp as Object Dim sPath as String Set oApp = CreateObject("PCDLRN.Application") sPath = oApp.GetRegistryString("Option", "SubroutineUserSearchDirectory", "Nada") Set oApp = Nothing sPath = sPath & "RunPcDmisMacros.exe" Shell ( sPath ) End Sub
You can of course combine all your basic snippets in one gigantic .BAS-file, and begin with a dialog that jumps to the selected function. I don't know how large a basic script may be...
You can of course combine all your basic snippets in one gigantic .BAS-file, and begin with a dialog that jumps to the selected function. I don't know how large a basic script may be...
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |