This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!