This question already has answers here:
How to add input box to sas sql query which ask user about parameter?
(2 answers)
Closed 7 years ago.
I have several programs in SAS for database access and I was asked if I can put a GUI on top so that some "Analysts" can also use my programs without using code. I know this can be done in SAS. But how?
They basically want to change variables like start_date or other parameters and then hit a run button :-)
This can be done with prompts.
Right click your code in Enterprise Guide, then Properties.
You will then need to go to the prompt manager from there, and after creating the fields, you have to add them to your code.
There is a way to create this via base language, but I cannot test it, since it's not supported in my SAS environment.
Edit: THIS question has an example of how to do it with BASE. Written by SMW.
Related
I am working on a project and I am using a closed software package. In this software I browse for images on my computer and run the program and it executes. What I want to do is create a matlab gui where I browse the images from matlab itself and make a push button that executes the software.
what kind of files do I need to work on in order to be able to integrate the function of a certain feature in a program to run from another one?
Your question can be divided into 2 parts.
1. How to run external program from Matlab?
To do that, you need first find out how to run your program using cmd. Once you know that, you can create a string with system commands in Matlab, that you can pass to cmd using system. Learn the arguments and syntax that you need to following during the system call. Wrap the whole routine into a function to be further used in GUI.
2. How to embed my program into GUI?
Consult the guide on Mathworks website. All you need to do is to instruct Matlab to run your function from previous part using the user-set arguments.
The rest is technicalities and you might need to ask more specific questions in future.
This question already has an answer here:
How can I capture terminal arrow keys in Ruby?
(1 answer)
Closed 8 years ago.
I'm trying to dynamically generate a list from file names in a directory using Ruby.
I already have all the code, but my problem is the user interface. In programs such as "testdisk" and "photorec", menu navigation is done via the arrow keys and the enter key alone, without having to type out the name of the option.
Is there a way to reproduce this behavior in a Ruby program?
Ruby Toolbox is a great resource for finding gems that you can use, the link here pointing toward the search for 'curses'.
ncurses should work with any ANSI/Posix compliant system.
I am trying to write a program/script but I am not able to find a coding language (out of many) which would allow me to perform the tasks I want it to do.
I am aware of the fact that there are perhaps numerous coding languages which would allow me to do so, therefore, to make this question a bit more specific: 'Which coding language would you recommend a beginner to write a program which will be able to perform the following tasks (see below)?
Read some variables from a local HTML page
Fill in this variable in a textbox in a running application/program
Click a predetermined button
Loop the above mentioned on some predetermined condition (i.e. whether the variable has changed).
Thanks in advance!
This depends on your programming background, for which platform you are developing application. For windows C# will be good option, java is also another option.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to create a script that will set the file associations for mostly MS Office files and a few other files extensions to the local applications (they would currently be through citrix). I am planning on using a simple Batch file.
However I would like it to be able to detect whether the filetype is valid and create it if not using ftype. I would also like it to be able to detect/differentiate between whether the user has MS Office 2003 or MS Office 2007 and associate accordingly.
My question is, will a Batch file be able to do all this, or am I better off using something else like a vb script (taking into account I know NO vb, although I'm pretty novice with Batch files too)??
Any help is appreciated
EDIT: I should have bee clearer that this is in a locked down environment, so no direct registry editoring can be done, and it will need to be available to users, from a shared drive or something similiar.
A batch file alone can't detect if the file association is correct, but you could just fire the batch file everytime anyway, forcing the file association to be correct. It'll just overwrite what's already there.
Just create the proper associations yourself, then run Regedit and export a .reg file containing the association keys, and use a batch file that runs regedit to import the keys. Probably /import or somesuch - I rarely use Windows anymore!
Here's a page that explains it:
http://www.robvanderwoude.com/regedit.php
You can use Powershell scripts. You get the power of .NET, a very good scripting language and you can effectively do anything you can with vbscripts and bat files. You also have a very vibrant community. And Powershell makes operating with registry so easy and intuitive that you will not know the difference between operating on files and operating on registry items
This question already has answers here:
How to create a system restore point programmatically?
(3 answers)
Closed 2 years ago.
Installing paint.net, I found a string Creating system restore point...
I guess it is creating a restore point for Volume Shadow Service. -Isn't it? I'm not sure.
If I'm right, how do I do this in my app?
Let me know please if there are proper Apis.
You can do this using the System Restore API.
See the documentation for the SRSetRestorePoint function, along with adetailed example.