How to invoke Ctrl + S by code in a Form? - save

I need to invoke by code the control Ctrl+S,
It's possible?
Look like element.task(2839) for the Ctrl+F5.
Thanks all,
enjoy!

Look in \Macros\Task. It's #taskSave.
As FH-Inway said, it's 272.
#Task
element.task(#taskSave)

Related

Xcode wont suggest my code snippets

I added a simple code snippet:
And when i'm trying to type "tablerows" in my class i get no suggestions. Tried to clean the project didnt help.
Any ideas? Thank you.
The completion scope is important. If you have set it to be "Class Implementation" then you have to try the shortcut in the class -- outside any methods. I hope you are doing that, since the code snippet is actually a method.
Restart XCode completely, to apply the changes. Thanks to #Moshe

ASP.NET MVC inline Razor variable

In pre-Razor MVC I could write this in a view:
<span>I want to write in<%= myVariable %>side</span>
In Razor, of course I can't
<span>I want to write in#myVariableside</span>
bacause the template engine would look for the variable #myVariableside. How to solve this? Thanks
First - have you tried it?
Secondly - if the interpreter has issues - you can try #(myVariableside).
Equally if the variable name you're talking about is #name - then once you're inside the parentheses everything's fine, because the interpreter knows it's parsing C#/VB: #(#myVariableside)
You can use <span>I want to write in#(myVariable)side</span>
Edit: Aww.. should have known better than to answer this question ^^
Do it this way
<span>I want to write in#{ #myVariable }side</span>

How to step into a method call when in debug mode

def login
debugger
LOGIN::authenticate(params)
end
When it hits the line with debugger, I type 'n' and it goes to some other file, and I can't seem to be able to get into the call to LOGIN::authenticate
Is 'n' not the right way to do this?
You'll want to use step or s for shorthand. Here is a great cheat-sheet on ruby-debug as well.
I think you should use step to step into the LOGIN::authenticate method.
n[ext] just step over to the next line.
Try help to have the list of debugger commands, and help command-name to have some help for a given command.

How to force SciTE to reload a file automatically?

I think that SciTE can do it but it doesn't work for me. Is there any option to setup?
I have set load.on.activate=1 in my SciTEUser.properties which works like a charm.
EDIT:
Use it in combination with save.on.deactivate=1 and reload.preserves.undo=1. The SciTEDocs will tell you more.
Add this line on the SciTEUser.properties file:
save.session=1

How to make a form docked when the project is ran?

I'd like to make my form docked where it usually is when my application is executed.
I see only one way of doing that:
-Call OnDockDrop in the container where I usually drop it
But how to setup OnDockDrop's parameters?
You can use the ManualDock method.
yourForm.ManualDock(yourPanel, nil, alNone);

Resources