Показать сообщение отдельно
Старый 27.02.2010, 17:10   #1
PVD
AnyKey`щик
 
Аватар для PVD
 
Регистрация: 24.02.2010
Сообщений: 13
Написано 2 полезных сообщений
(для 2 пользователей)
Вопрос Проблема с readbyte

function makemenu(f:String):String;
var
res:resource;
typ,filepath,hint:string;
IDS,byte,ExitID:Integer;
Begin
res
:=openresource('/'+f+'.txt');
_clearform;
While 
chr(byte)<>'&' Do
    
Begin
    byte
:=readbyte(res);
    If 
chr(byte)='$' Then
        Begin
        typ
:='';
        
filepath:='';
        
hint:='';
        While 
chr(byte)<>'(' Do
            
Begin
            byte
:=readbyte(res);
            If 
chr(byte)<>'(' Then typ:=typ+chr(byte);
            
End;
        While 
chr(byte)<>',' Do
            
Begin
            byte
:=readbyte(res);
            If 
chr(byte)<>',' Then filepath:=filepath+chr(byte);
            
End;
        While 
chr(byte)<>')' Do
            
Begin
            byte
:=readbyte(res);
            If 
chr(byte)<>')' Then hint:=hint+chr(byte);
            
End;
        
IDS:=_addselectedlabel(typ,0);
        
End;
    
End;
... 
что тут неправильно?
(Offline)
 
Ответить с цитированием