Hi...I wrote a proggy that replace some words in text file
there is a condition that if somebody write in the texbox ","...all sentences change into plural form...
if (systemTEXT->Text->Contains(",")) {token == 1;}
it works great...text contains "," - it means plural forms are needed..token=1
if (linia->Contains("system_token")) {poprawka = linia->Replace( "system_token", systems );}
else
if (linia->Contains("when_token")) {poprawka = linia->Replace( "when_token", date1 );}
else
if (linia->Contains("reason_token")) {poprawka = linia->Replace( "reason_token", descriptionpl );}
else
//this part doesnt work--------------
if (token=1 & line->Contains("poniższy system będzie")) {poprawka = linia->Replace( "poniższy system będzie", "poniższe systemy będą" );}
else
if (token=1 & line->Contains("poniższy system będzie")) {poprawka = linia->Replace( "DOSTĘPNY", "DOSTĘPNE" );}
else
if (token=1 & line->Contains("System")) {poprawka = linia->Replace( "System", "Systemy" );}
//----------------------------------
else {poprawka=linia;}
Unfortunatelly if (token=1 & linia->) parts dont work...there are no errors...but program ALWAYS change texts from 1st IF...even if token=0...
rest of IFs dont work at all....no changes for token=1 and token=0...
ofcourse TEXT I want to change appears in the file.
Please HELP. Thanks!