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

-Collapse +Expand Paradox To/From
-Collapse +Expand Paradox Store

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


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:
 s String
;s = ""  ;Uncomment to test 2nd case.
if isBlank(s) or not isAssigned(s) Then
 msgInfo("", "empty string")

Testing Out isBlank and isAssigned Code

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

 s String
;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")
;unAssign(s) ;Uncomment to test following.
if not isAssigned(s) then
 msgInfo("", "not assigned")

More Info


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
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 = P1201A1
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 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
Since 9/18/2009
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site:

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