-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I've made a form containing a TVirtualStringTree that works in Delphi 7 and Delphi 2010. I notice that as I move between the two platforms I get the message '...parameter list differ..' on the tree events and that the string type is changing bewteen TWideString (D7) and string (D2010). The only…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a String that I needed access to the first character of, so I used stringname[1]. With the unicode support this no longer works. I get an error: [DCC Error] sndkey32.pas(420): E2010 Incompatible types: 'Char' and 'AnsiChar'
Example code:
//vkKeyScan from the windows unit
var
KeyString:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I am a long time Delphi 6 developer. Looking for a book on Delphi 2010. Not only on the new features available in Delphi 2010, but more importantly, guideline on how different it is to develop applications in Delphi 2010, the architecture, standard and convention, etc.
Thanks a lot.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello.
The situation is the following. Typically I use RAD Studio 2010 for Delphi development. I have some components I would like to redistribute in binary form (*.bpl without source). But I would like people to be able to use them despite of their Delphi version. But, for example, dcu files can…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need create a programatic equivalent using delphi language... or could someone post a link on how to do grammars in peech recogniton using the delphi. sorry for my english...
XML Grammar Sample(s):
<GRAMMAR>
<!-- Create a simple "hello world" rule -->
<RULE NAME="HelloWorld"…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
public class SampleProjectData
{
public static ObservableCollection<Product> GetSampleData()
{
DateTime dtS = DateTime.Now;
ObservableCollection<Product> teams = new ObservableCollection<Product>();
teams.Add(new Product()…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there an easy way (maybe built in solution) to convert TimeSpan to localized string? For example new TimeSpan(3, 5, 0); would be converted to 3 hours, 5minutes (just in polish language).
I can of course create my own extension:
public static string ConvertToReadable(this TimeSpan timeSpan)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a time field in a mssql 2008 database that I want to do something to the effect of:
Timespent = x.sum(x => x.AmountOfTime);
Where AmountOfTime is a time MSSQL field. Sum seems to only work on decimals, how can I add these columns?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am building a form with winforms - and should add a view and editable time span value.
Which controls works best for this ?
A normal edit control shows the value correctly - but it's not really nice for changing values
the normal date time picker doesn't work
the masked edit control doesn't…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
List myList = new List
{
new Users{ Name="Kumar", Gender="M", Age=75, Parent="All"},
new Users{ Name="Suresh",Gender="M", Age=50, Parent="Kumar"},
new Users{ Name="Bennette", Gender="F",Age=45, Parent="Kumar"},
new Users{ Name="kian", Gender="M",Age=20, Parent="Suresh"},
new Users{ Name="Nathani"…
>>> More