This commit is contained in:
f1iwq2
2023-10-01 15:52:35 +02:00
parent 6b945b5dbd
commit ce327d671b
20 changed files with 1373 additions and 346 deletions

View File

@@ -3329,10 +3329,19 @@ procedure Compilation;
// compile le fichier Texte de CDM et l'importe
procedure Compilation;
var s : string;
nombre,position : integer;
begin
nombre,position : integer;
begin
nombre:=Formprinc.FenRich.Lines.Count;
if pos('module',s)=0 then
if nombre>0 then
begin
s:=lowercase(Formprinc.fenRich.Lines[0]);
if pos('module',s)=0 then
begin
Affiche('Pas de module CDM détecté',clred);
exit;
end;
end
else
begin
Affiche('Tampon vide',clred);
exit;
@@ -3346,7 +3355,7 @@ begin
//debugBranche:=true;
Lignes:=Formprinc.FenRich.Lines;
nligne:=0; nSeg:=0;
DernAdrAig:=0;
DernAdrAig:=0;
xminiCDM:=0;yMiniCDM:=0;xmaxiCDM:=0;yMaxiCDM:=0;
NomModuleCDM:=AnsiLowerCase(Lignes[0]+'.cdm');