How can I clean the Parameters field in the Run -> Parameters menu? - delphi

I'm using the CodeGear RAD Studio IDE.
In order to test my application with command line parameters I used a few times the "Parameters" field in the "Run -> Parameters" menu.
But every time I provide it with a new value, it could not be deleted from the "dropdown box".
I need to clean this field (erase all the values), since in some cases there is information on them that I don't want to share with people that occasionally could use my machine.
How can I clean this field?

The Delphi 2007 Parameters list is stored in the Windows registry in the HKEY_CURRENT_USER\Software\Borland\BDS\5.0\History Lists\hlRunParameters location
To clean that list remove the ItemN entries and set the value of the Count key to 0.

Related

Jira integration with Ranorex

I integrated Jira with Ranorex and now when testcase fails it create bug in Jira and fills all fields but these fields are hard coded in jira.jsd file. I want to set the value of fields with either global parameters or can handle it with varibles. Like value of affect versions can be given hard coded in jira.jsd file but this shouldn't fixed value, I want to change it from global parameters so when I run testcase and it fails it takes value of affect version from parameters.

How can I get value "RequestedBy" in tfs 2013 build?

In tfs 2010 build, it's easy to get that vale using "BuildDetail.RequestedBy". what's the equivalent in TFS 2013? I couldn't find "BuildDetail" even.
It's still build detail. However, in the new templates a lot of the complexity is hidden by default. Use the GetBuildDetail activity to retrieve the variable you need.
Thank you MrHinsh
It's very good suggestion!! Really appreciated!!
The value of "RequestedBy" is actually required by powershell that need to be invoked at later stage to log people name whoever trigger the build.
The following steps are what I've done to make "RequestedBy" value available in powershell script:
In TfvcTemplate.12.xaml, create variable "myBuildDetails".
Drag "GetBuildDetail" into template and specify "myBuildDetails" as result of it.
Modify "Run optional script after Test Runner" property "EnvironmentVariables", set it's value to "New Dictionary(Of String, String) From {{"RequestedBy", MyBuildDetails.RequestedBy}}"
In my ps1, the value can be retrieved by "$Env:RequestedBy"
It's not perfect solution, but it's working.
Instead of modifying build template,I though if we could inject expression something like "$(myBuildDetail.RequestedBy)" from script argument of build definition would be much tidy solution.

Where does Visual studio 2010 Checked-in items in Registry Editor?

I'm using TFS.
My problem changing the path "Debug>Options and Settings>Source Control>Environment" where is the Registry Editor.
example:
i change check box "Show deleted items in the Source Control Explorer" in change the
"HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\ShowDeletedItems data value change False in registry editor
but i change combo box" checked-in items -> Saving or Editing " the value. I am not found in registry editor. where is it in registry editor ?
All the values you are after, reside under "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\SourceControl".Those settings are generic for VS and apply regardless of the SCM used. So, it makes sense these don't reside under "..\TeamFoundation..".The following is a mapping of reg-value names against their representation in VS:GetFiles >> Get everything when a solution or project is openedCheckInFiles >> Check in everything when closing a solution or projectSilentCheckOut >> Display silent check out command in menus
KeepCheckedOut >> Keep items checked out when checking in
SaveUncheckedOut >> Checked-in items / Saving
CheckOutOnEdit >> Checked-in items / Editing
AllowInMemoryEditing >> Allow checked-in items to be editedThe items found in the dialog "Source Control"\"Visual Studio Team Foundation Server" obviously apply only when SCM is TFS.

TFS shortcut to compare a modified file with the latest version

Right now I have to pull up Pending Changes window, right-click on the file and select Compare->With Latest Version... Is there a faster way to look at my modifications?
Keyboard Shortcut for doing TFS Compare
In the Team Explorer window under Pending Changes:
shift + enter on file
will compare the files
shift + double click on file
will compare file in background
Create visual studio mapping for the commands:
Set the shortcut for compare folder under Source Control
Explorer, you should set the shortcut keys for File.TfsFolderDiff
command.
Set the shortcut for compare specific file under
Source Control Explorer, you should set the shortcut keys for
File.TfsCompare command
Note: To set the keyboard shortcuts, open "Tools > Options". In the dialog that opens, go to "Keyboard". Example:
Note: The folder compare shortcut is only valid from the "Source Control Explorer". It is the same as right clicking in the "Source Control Explorer" and selecting "Compare...".
References:
Keyboard shortcut for File Compare?
Comparison keyboard shortcuts for Pending Changes in TFS by Alex Meyer-Gleaves.
How to Double Click to Diff Pending Changes in TFS by Richard Banks
TFS Shortcut to do a diff on all modified files with latest version
You can switch the double-click behaviour in the pending changes window to do a compare with latest by changing a registry setting:
Path: HKCU\Software\Microsoft\VisualStudio\<ver>\
TeamFoundation\SourceControl\Behavior
Value: DoubleClickOnChange (DWORD)
0 == view as the primary command (default)
1 == compare as primary command
You can find more information here:
How to Double Click to Diff Pending Changes in TFS.
A comment on that post also shows the entry to set if you want to use a shortcut key to do the comparison instead.
You can add hotkey bindings for TFS context menu commands, which may be an approach that will work for what you need.
Go to Tools > Options > Keyboard. In the 'filter' field, type 'TFS' and it'll show a list of all TFS commands that you can bind hotkeys to. The Source Control comparison ones can be shortlisted with "CompareWith". I've bound hotkeys in this way to the pending changes window's context menu, which is a great timesaver versus working your way down that tortuous context menu, but there may be other options that suit your needs better.
Another alternative could be to set up an alias in Command Window and use it. To bring up the compare window:
Open Command Window (ctrl + alt + A)
Set alias for File.TfsCompare
alias diff File.TfsCompare
Next time you need to do the compare, type 'diff' and hit enter in the command window. 'diff' is an alias name, could be set to whatever of your choice. If you want to delete alias, use
alias aliasName /d

Can a parameter safely be removed from a Delphi TADOCommand at runtime

My Delphi 2006 TADOCommand has it's
CommandText (including parameters),
Prepared (True),
ParamCheck (True)
properties all set at design time.
Is there a way for me to go about deleting some of it's Parameters at run time, without having to change the CommandText to accomodate these changes. This is desireable in the case that some of the table columns that the parameters reference do not need updating/inserting.
I'm thinking of something along the lines of
TADOCommand.Parameters.ParamByName('MyParam').SafelyRemove;
Many Thanks,
Duncan
Each item in Parameters collection corresponds to parameter marker in the command text. It is like API to this marker. Removing items from Parameters will not remove the corresponding marker. If you does not need to touch some field in your command text, then you have to modify command text and remove corresponding parameter marker.
When command text is prepared, the DBMS has built command execution plan and allocated some resources, required for command execution. If you will change the command text, then DBMS has to build new command execution plan.
Kind of that ...
Because parameters placeholders (:PARAMn) are embedded in the SQL text, I don't see how you can add or remove parameters without changing CommandText. You would have a mismatch.
In case when the command text is dynamic-updateble i usually working with params like this: *Parameters.Clear; Parameters.ParseSQL(ADOCommand.CommandText, true); * it will automatically create parameter list with correct parameters names.

Resources