News:
Home
Help
Search
Login
Register
June 12, 2026, 12:15:22 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Host Engineering Forum
»
General Category
»
General Discussion
»
empty string
« previous
next »
Print
Pages: [
1
]
Author
Topic: empty string (Read 8702 times)
PLCGuy
Internal Dev
Hero Member
Posts: 677
empty string
«
on:
August 30, 2016, 09:27:02 AM »
how do I check to see if a string is empty. I have SL0 and what to detect if it is empty. I was able to detect numbers like 0,1,2,3,4,5 but what is the symbol for empty?
Logged
plcnut
Hero Member
Posts: 814
Re: empty string
«
Reply #1 on:
August 30, 2016, 10:21:56 AM »
SL0.length=0
Logged
Circumstances don't determine who we are, they only reveal it.
~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com
PLCGuy
Internal Dev
Hero Member
Posts: 677
Re: empty string
«
Reply #2 on:
August 30, 2016, 12:05:35 PM »
dam it, stop making things so simple, goes right over my head.
Logged
Greg
HostTech
Host Moderator
Hero Member
Posts: 702
Hmmm...
Re: empty string
«
Reply #3 on:
August 30, 2016, 02:47:20 PM »
You can also use the ISCLEAR instruction which will set a bit if the string is clear.
Logged
There are two types of people in the world; those that can extrapolate from incomplete data sets.
PLCGuy
Internal Dev
Hero Member
Posts: 677
Re: empty string
«
Reply #4 on:
August 31, 2016, 08:35:28 PM »
greq i will try that one.
Logged
Print
Pages: [
1
]
« previous
next »
Host Engineering Forum
»
General Category
»
General Discussion
»
empty string