I'm messing around with DataSnap in Delphi XE2. I have the pre-generated ServerMethods1 class with EchoString and ReverseString. Those work nicely. However, I've added two more simple methods that return simple types and the generated web page of server methods does not include these new...
I've read and experimented a lot with JSON and Delphi. I know how JSON goes to Delphi objects and back through marshaling. The problem I have is that I need to be the consumer of a REST application that wasn't written in Delphi, yet returns JSON objects. I would very much like to work with...
In Delphi XE2, it's under Tools > Options > Editor Options > Code Insight. Turn off Code completion, Block completion, and Code template completion. The other options just provide tool tips and therefore don't modify your code.
Senior GIS Programmer/Administrator
City of Orem, UT...
I've got Delphi XE and it's horrible on the COM support side. It is, however, pretty darn stable when developing outside of the COM world. So, outside of COM development issues, I really like it's look and feel, stability, and the environment. I can't remember if Delphi 2009 had generic...
Delphi has a Code Formatter which I've never used, but I hear it allows you to determine some coding patterns, then it can apply it to source code, without changing the meaning of the code, so that you can read it better. If I inherited a project from a co-worker, for example (we all work on...
You raise some good questions and some good observations. I understand how important it is to keep the question short without going into all the gory details, so thank you. I have not noticed a pattern between catastrophic and non-catastrophic error codes. This could be a vendor-specific...
I've done a lot of COM programming in my time, and it's not common to see the name of a property start with an unnecessary letter "I", like you showed in ICallResults.IExceptionCollection. In my experience, the property would be called ExceptionCollection (or Exceptions) and would be of *type*...
So it's not as simple as accessing the IWorkException object from the ICallResults object? There would have to be a property or function that returns an IWorkException pointer. Unless you're saying the resulting object can be "cast" as an IWorkException.
GIS Programmer
City of Orem, UT...
I found the following code on Microsoft's site. It is in C and I translated it to Delphi:
{
The following code was translated into Delphi from C by Roger Dunn.
It was originally downloaded from the following URL:
http://support.microsoft.com/kb/111544
}...
I read at the article you linked, and although the function can tell me if the computer is part of a domain or not, it doesn't tell me the logged-in user name. Do I supply the internal method with the results of GetUserName? Will the function actually DO a rename of the machine if it IS part...
I have a program I wrote for a laptop that's not always connected to the network (for obvious reasons--it's a laptop!). The function works whether or not the user is logged in to the network because it retrieves the Windows user name, not a network or Novell user name.
However, I don't know...
I have many in-house programs which read the currently-logged-in Novell user name to see if they have the necessary permissions to run in-house programs. If the username is empty or [Public], I know they are not logged in to the server and I can abort my programs before they even start.
But...
Are you saying that you are building the client and you imported the webservicex WSDL? What interface and method are you trying to call? And what does your code look like (we don't need the whole form, just the call to the web service will do)?
GIS Programmer
City of Orem, UT
http://gis.orem.org
I did a bunch of dbExpress tests on Friday in a new, separate application built just for that purpose. I was able to find out that if you have an SQL statement that joins more than one table together, the resolver can only automatically apply updates to 1 of those tables via the OnGetTableName...
The Delphi help talks about the possibility of overriding the resulting SQL statments that TDataSetProviders use when resolving changes to the back-end database.
So, what I have is TSQLDataSet that is a join between two tables. HOWEVER, the query that specifies the join ALSO has a parameter in...
@smays - Yeah, I can, but here's the behind-the-scenes info: I have a TDBLookupCombo descendant. It's connected to a field that represents a foreign key (an integer). There's another large table that has the IDs as a primary key, and a string value in another field. The TDBLookupCombo uses...
There's no reason in my mind to populate dbcombobox automatically. Basically the value that shows comes from DataSource and DataField. But the possible values for that field could come from an SQL query, a pre-determined lookup table in the database, or a hard-coded list of strings (at design-...
OK. I thought the Load Local Data equivalent might be somehow faster that iterating till EOF and copying records. I thought that it took, like, huge batches of memory and plopped 'em into the TClientDataSet's Data property or something. Oh, well.
GIS Programmer
City of Orem, UT...
The main reason I use actions is so that I can handle the OnUpdate event. I never have to hard-code any function that disables and enables my buttons, menu items, and toolbar buttons. The "state" of each item depends on the state of other things, whether they're in the UI, the data module, or...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.