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

October 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 15 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 8

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 54 months ago

Comment 2 of 8

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

Posted 53 months ago

Comment 3 of 8

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 53 months ago

Comment 4 of 8
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 53 months ago

Comment 5 of 8

Wow such an amazing content keep it up. I have bookmared your page to check out more informative content here. Check this out Virgin River Wardrobe for yourself or to gift someone you may love.

Posted 44 months ago

Comment 6 of 8

I see no sense in the blank string. It should contain some information. Otherwise, what is the point? If you want to check a reliable source visit the one located here http://essaywritingstore.com/ they will never leave your paper blanc.

Posted 43 months ago

Comment 7 of 8

If you want to know the way of How to add money to Cash app card to make a digital transaction, then go ahead to read all the terms & conditions. Actually, for it, you are asked to visit any nearest Walmart store and then be in touch with the Cashier to add money on your Cash app card in an innate way. And, one more thing, you have to pay a fee to do it.

Posted 42 months ago

Latest Comment
Comment 8 of 8

If you Unlock Cash App Account follow the steps:

Open cash application on your mobile and tap on the profile icon

Go to the Personal option and mention your email address or phone number

On your registered mobile number or email, you will get the the confirmation code.

Posted 42 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 = P1116A1
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
13886
Since 9/18/2009
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


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