Obislavu, thank you for your help, but that wasn't really the answer to my problem.
If anyone interested the solution was:
I have to set the DefaultValue property of the column before the datagrid.datasource property gets the dataset...
How can I bind my checkbox control to a dataset?
I use sqlDataAdapter to generate the dataset.
The SQL column type is "bit" and allows nulls. Name is: "active".
This works fine with a textBox...
In Delphi6 in the Psock unit there was a function called 'NthWord' which returned the nth word of a string. I can't find it in Delphi7.
How does it work in Delphi7?
Hi!
I'm a newbie in Delphi and Sybase programming. (I was working with VFP and MySql.)
Can you briefly describe how to connect from Delphi to a Sybase database and make my first query?
Thanks!
Hi
You can build up the SQL text from variables.
CASE
<user selects shipmentdate>: sVar1="shipmentdate"
<user selects canceldate>: sVar1="canceldate"
<user selects orderdate>: sVar1="orderdate"
ENDCASE
sSQLtext='SELECT * FROM myTable WHERE '+sVar1+'=myDate...
Our company switches from VFP6 to VFP8.
We recompiled our existing products and found the following interesting thing.
If VFP8 the BackStyle (transparent) properity doesn't work the same way like in VFP6.
e.g. We have a picture with white background - the white color disapears in VFP6 but not in...
I have to write a simple TCP server with limited connections.
It works with MaxConnections = 0 (unlimited connections) perfectly.
But if I try to limit the number of connections e.g. MaxConnections = 1, the following happens:
1. The first computer connects.
2. The second computer tries to...
How can I mimic the '&' (macro) function of the Visual FoxPro?
e.g.:
...
sProc='ProcedureToRun'
DO &sProc
...
This works in VFP and runs the 'ProcedureToRun' procedure.
Is it possible to do the same thing in Delphi?
I have a graphic menu system (developed in VFP) which uses data in a text file to build itself.
e.g.:
The content of the text file:
.
.
[MENU_1}
MenuCaption1;CallThisProc1;Param1;Param2
MenuCaption2;CallThisProc2
MenuCaption3;CallThisProc3;Param1
.
.
I would like to rewrite this menu system in...
Thanks but I think this doesn't help.
I want to mimic the '&' (macro) function of the Visual FoxPro.
In FoxPro:
.
sProcToCall='IwantToCallThis'
DO &sProcToCall
.
works.
I want to start a procedure or function which name is in a variable as a string.
e.g.:
var sProcToCall : string;
.
.
begin
sProcToCall:='IwantToCallThis'; // The name of the procedure
.
.
// and here I want to call the procedure
Please help me!
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.