Help me, please!
I added some command line in "OnStart" procedure of Configuration:
Code |
---|
#If MobileAppClient Then TelephonyTools.AttachSMSMessageHandler(WriteSMS); #EndIf &AtMobileAppClient Procedure WriteSMS(Command) Export // Ghi nội dung tin nhắn vào biểu ghi PhoneMessage = New SMSMessage; PhoneNumber = PhoneMessage.From; //Số điện thoại DateReceive = PhoneMessage.DateReceived; //Ngày nhận Content = PhoneMessage.Text; //Nội dung tin nhắn Message(Content); EndProcedure |
But, when I write Configuration, 1C inform me that commands have an error:
{ManagedApplicationModule(37,47)}: unknown variable (WriteSMS)
TelephonyTools.AttachSMSMessageHandler(<<?>>WriteSMS); (check: mobile client application)
I do not understand why?