IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
-Collapse +Expand Paradox To/From
To/FromCODEGuides
-Collapse +Expand Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

September Edition
Subscribe now! It's Free!
Enter your email:

   ► KBDesktop Data...Paradox & Ob...ObjectPAL Co...OPAL: Langua...   Print This     
  From the November 2015 Issue of Prestwood eMag
 
Paradox OPAL: Language Basics:
ObjectPAL Empty String Check (isBlank() or not isAssigned())
 
Posted 11 years ago on 9/18/2009 and updated 2/12/2010
Paradox Code Snippet:
 A flashcard from our Paradox Flashcards Library
 A code snippet from our Paradox Code Snippets Page

KB102041

Languages Focus: Empty String Check

An empty string is a zero length string, a string that is equal to null (""), or not assigned. In some languages, you can check if a string is empty by comparing it to an empty string (""). Some languages distinguish between nil and null ("") so checking if the length is 0 is easier.

ObjectPAL Empty String Check

In ObjectPAL, an empty variable can be unassigned (essentially null) or blank (equivalent to ""). You have to use both isBlank and isAssigned to check for an empty string.

Syntax Example:
var
 s String
endVar
  
;s = ""  ;Uncomment to test 2nd case.
 
if isBlank(s) or not isAssigned(s) Then
 msgInfo("", "empty string")
endIf

Testing Out isBlank and isAssigned Code

Add the following code to a pushButton event of a button to test out isBlank and isAssigned.

var
 s String
endVar
 
;Neither s="" not size(s)=0 work with unassigned!!!
;if s = "" Then
;if size(s) = 0 then

;Try not assigning at all and then
;uncomment the following line of code.
s = ""
 
if isBlank(s) then
 msgInfo("", "blank")
endIf
 
;unAssign(s) ;Uncomment to test following.
 
if not isAssigned(s) then
 msgInfo("", "not assigned")
endIf

More Info


Comments

1 Comments.
Share a thought or comment...
First Comment
Comment 1 of 4

The actual paths of the team are ensured for the gathering of the turns. Portals of the buy coursework are consumed for the individuals. Element is filed for all shows. The mode is approved for the next chapter for humans.

Posted 5 months ago

Comment 2 of 4

Get your paper done by BestEssays writers on time. They follow students‘ requirements and use their additional materials. 

Posted 4 months ago

Comment 3 of 4

WPS is the abbreviation of Wi-Fi protected pin, and in reality, it is a combination of eight-digit numbers, especially used as a means of authentication when you’re to connect your printing device with Wi-Fi. This pin is a must used utility for establishing a connection between your router, wireless printers, and other devices. In order to locate WPS Pin the first, you should move to the control panel on your HP Printer, after that move to the settings option. There is a Wi-Fi setup option, following the prompts you will get the option to show WPS pin on screen. 

Posted 4 months ago

Latest Comment
Comment 4 of 4
https://demo.wpthemego.com/themes/sw_shoppy/forums/topic/looking-for-homework-writing-help-uk/#post-22911
http://blog.controlaltdesigns.com/2019/02/hellofax-here-is-your-fax.html?showComment=1589200655023#c7125023354461523905
https://caribbeanpot.com/forums/users/masonlava/
https://www.trickyenough.com/seo-matters-for-every-startup/#comment-136491
https://diversereader.blogspot.com/2015/10/blog-tour-all-that-you-cant-leave.html?showComment=1589201171413#c6668899994380093761
https://www.latinwomenforum.com/user__profile~logins_key__46132.html
https://ilikemarkers.blogspot.com/2015/06/coloring-flower-girl.html
https://www.pebforum.com/members/masonlava.107113/#about
http://www.regenwarner.de/forum/member.php?action=profile&uid=2002
http://www.google.kz/url?q=https://www.hpprintersupportpro.com/blog/resolve-windows-10-printer-driver-is-unavailable-issue/
https://gitlab.mythic-beasts.com/masonlava
https://gitlab.mythic-beasts.com/snippets/33
http://080123239011.ve.a1.digital/?q=guestbook
https://steveprescottfoundation.co.uk/component/vitabook/
http://nj.bpkihs.edu/2015/06/blog-post.html?showComment=1589202764902#c7297923533799792806
Posted 4 months ago
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1293A1
Enter key:
Code Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #102041 Counter
11764
Since 9/18/2009
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2020 Prestwood IT Solutions.   [Security & Privacy]