Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

sms

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.. I am having a problem here. After the client sent a sms to the server, the server will receive the sms and compare the text sent. If the text received is 'addrecord', it will go into a sub routine called addrecord and if it receive the text is 'deleterecord', it will go into the deleterecord sub routine.. but now, after I have received the sms, i can go into the compare sub routine to compare?? why?

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It�s not good to use

string == "Something"

You should use

string.equals(something)

The first form will compare object references, the second form will compare strings.
 
tracy teo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI thanks for your reply.. I have tried it out and it is working thanks..
Now I need your help in RMS.. Example, I will send a sms to get a list of record in the RMS and they will reply me the list of records that are stored in the RMS to my cellphone. records in RMS are stored as bytes but when it reply me , it have to change the bytes into String before it can send to me for reading.

below is my source code :




so if possible, can you provide me with the list record source code or help. Thanks
 
tracy teo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.. I also need help in the delete record part..
Currently, my delete record subroutine can only delete record 2 because my recordID, I have set to 2.. What can I do, (example: I will send the recordID to be deleted by sms and upon receiving the sms, it will delete according to the recordID that I have sent) May I know how i do it?
thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic