1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| procedure TDST_XMLMagicBM.InsertXML_MAGICBeforeXMLGram(XMLGram: IXMLGram;
e: TBeforeXMLGramEventArgs);
var chaine: array[0..8] of pchar;
temp: string;
tempInt : integer;
rqparam : pchar;
begin
if Context.Values['DATABASE'] <> Context.Values['DATABASE2'] then
begin
temp := Context.Values['DATABASE2'];
end
else begin
temp := Context.Values['DATABASE'];
end;
chaine[0] := pchar(temp);
if Context.Values['USER_NAME'] <> Context.Values['USER_NAME2'] then
begin
temp := Context.Values['USER_NAME2'];
end
else begin
temp := Context.Values['USER_NAME'];
end;
chaine[1] := pchar(temp);
if Context.Values['PASSWORD'] <> Context.Values['PASSWORD2'] then
begin
temp := Context.Values['PASSWORD2'];
end
else begin
temp := Context.Values['PASSWORD'];
end;
chaine[2] := pchar(temp);
temp := Context.Values['FILENAME'];
chaine[3] := pchar(temp);
temp := Context.Values['RQPARAM'];
chaine[4] := pchar(temp);
temp := Context.Values['DIRNAME'];
chaine[5] := pchar(temp);
temp := Context.Values['RQPARAM'];
rqparam[0] := pchar(temp);
creation_fichier(chaine, rqparam);
end; |