Yes, thank you for your fast replay.
I said it is hard question. Please try your answers before sending them. J you
didn't make it this time but you can try again as many times you need.
Looking forward to get your smart answer.
Dave Sellers <[EMAIL PROTECTED]> wrote:Paradox likes field names containing
spaces to be enclosed in - hmmm,
memory fails - try square brackets or double quotes....
Loay Habash wrote:
>Hello Every body:
>
>Do you like hard questions ????
>See this one,.....
>
>If you put space at the fieldname you will get the "Preparation of field
>default faild" error ???
>if you name it as one word you will get no error.
>If you did not use DefaultExpression for the field or RequestLive for the
>query you will get no error what ever the field name is,..... Can I get any
>Help.
>
>Var
> MyQuery : TQuery;
> MyTable :TTable;
>begin
> MyTable := Ttable.Create(Form1);
> With MyTable Do
> begin
> TableName := 'c:\Table1.db';
> TableType := ttParadox;
> FieldDefs.Add('Emp Name', ftString, 20, False);
> CreateTable;
> free;
> end;
> MyQuery := TQuery.Create(Form1);
> With MyQuery Do
> Begin
> close;
> RequestLive := True;
> SQL.Clear;
> Sql.Text := 'Select * from ''c:\Table1.db''';
> End;
> DataSource1.DataSet := MyQuery;
> With TStringField.Create(Application) Do
> Begin
> FieldName := 'Emp Name';
> Size := 20;
> DataSet := MyQuery;
> DefaultExpression :='''Name''';
> end;
> MyQuery.open;
>end;
>
>
>
>Loay Habash,
>http://groups.yahoo.com/group/WeLoveYouAll/
>http://profiles.yahoo.com/leohabash
>[EMAIL PROTECTED]
>Mobile: +966503322315
>
>
>---------------------------------
> Start your day with Yahoo! - make it your home page
>
>[Non-text portions of this message have been removed]
>
>
>
>
>-----------------------------------------------------
>Home page: http://groups.yahoo.com/group/delphi-en/
>To unsubscribe: [EMAIL PROTECTED]
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
SPONSORED LINKS
Basic programming language C programming language Computer programming
languages The c programming language C programming language List of programming
languages
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "delphi-en" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Loay Habash,
http://groups.yahoo.com/group/WeLoveYouAll/
http://profiles.yahoo.com/leohabash
[EMAIL PROTECTED]
Mobile: +966503322315
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~->
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/