Subject RE: [IBO] CreateWithContext
Author Brian K. Woods
take a look at the source form IBF_Metadata.pas and/or the various forms in
the Survey example.

//this is a code snippet taken from [ibo]\Samples\Survey\FRM_Questions.pas:
if not Assigned( frmSurveys ) then
begin
frmSurveys := TfrmSurveys.CreateWithContext( Self,
'\Surveys4Question',
BaseConnection,
BaseTransaction );
with frmSurveys as TfrmSurveys do
begin
qrSurveys.Unprepare;
qrSurveys.MasterSource := Self.dsQuestionSurveys;
qrSurveys.MasterLinks.Text := 'SURVEYID=SURVEYID';
ViewLanguages;
Caption := 'Question Survey';
end;
end;
(frmSurveys as TfrmSurveys).qrSurveys.Open;
frmSurveys.Show;

HTH
Brian

-----Original Message-----
From: Ólafur Guðmundsson [mailto:og@...]
Sent: Tuesday, November 26, 2002 4:22 AM
To: IBObjects (E-mail)
Subject: [IBO] CreateWithContext


Hi there all.

I just started using CreateWithContext (is a part of IBF_Base) to create my
forms (very good), before this I used "Application.CreateForm(TForm1,
Form1)".

My problems is that if I use CreateWithContext I can't make a refrence to my
newly created form, can someone show me how to reference a form that is
created CreateWithContext.
This is surely a fundamental question but I totally frozen on this so all
help is much appreciated.

Kveðja
Ólafur Guðmundsson
Sími 540-5510
Netfang og@...
Verðbréfaskráning Íslands
Tryggvagata 11 (Hafnarhvoll)
101 Reykjavík



___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/