Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2007, 10:22 AM
fchu fchu is offline
Junior Member
 
Join Date: Jul 2007
Posts: 2
Red face can I assign blank as a variable value?

Great product! and I am using it all the time.
The question I have now is: how to assign (or is it possible to assign) a blank to a variable?
I've tried to use "if" command with $clipboard$ = "space", but AA prompt a message " Value Cannot be Empty". However, your FAQ mentioned that any special character can be a variable value. Any help on how to assign the special character such as "space" to a variable is appreciated.
Thanks
Reply With Quote
  #2 (permalink)  
Old 07-03-2007, 11:09 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 465
Default

Hello,

To assign 'space' to a variable what you can do is create a variable of type 'Value' and set it to read value from text file. In text file, assign the value as variable=Spacebar (see image in attachment). Doing this you can assign space to variable and read the same from it.

Hope that helps.
Attached Files
File Type: zip space.zip (10.4 KB, 21 views)
Reply With Quote
  #3 (permalink)  
Old 07-05-2007, 10:18 AM
rlaliberte rlaliberte is offline
Junior Member
 
Join Date: Jun 2007
Posts: 17
Default

Along the same lines... but different.

In my quest for scheduling options, I have almost gotten to what I need... but I want to determine if a dataset that is returned from a SQL query is empty.

For instance, checking to see if today's date is stored in the database, like so:
select * from tblclosedDays where datePart(m,closedDay) = $Month$ and datepart(d,closedDay) = $Day$ and datepart(yyyy,closedDay) = $Year$

That works fine... but I need to then know did I get a resultant dataset or no results returned.
Reply With Quote
  #4 (permalink)  
Old 07-06-2007, 10:08 AM
fchu fchu is offline
Junior Member
 
Join Date: Jul 2007
Posts: 2
Default

Thanks for the hint.
but it did not work in my case. because I am copying a blank cell in excel spread sheet and comparing with variable "Blank" (if $clipboard$ equal to $Blank$ then ....). Maybe the blank cell in excel does not mean a "space".
I m dealing with data files that insert a raw at the place that I am copying from time to time. I have to make sure to move to the next raw if I see a blank raw in a data file.
Any trick to do that?
Thanks a lot.
Fan
Reply With Quote
  #5 (permalink)  
Old 09-11-2007, 05:25 AM
archana archana is offline
Junior Member
 
Join Date: Jan 2007
Posts: 9
Default

In that case what you can do is, do not assign anything to variable in text file. Let us say the variable name is $Blank$ then in text file write like this like this: Blank=

The text format of command to check blank value will look something like this:

1) If $Clipboard$ Equal To $Blank$ Then
2) Message Box: "Done"
3) End If

Also, if you copy the cell in Excel using Ctrl + C then it also copies the ENTER key so it is not a blank value. To copy the content of the cell, you need to use the following key sequence

F2 + Home + Shift + End + Ctrl + c

Also I recommend you to clear the clipboard before you copy each cell.
Reply With Quote
  #6 (permalink)  
Old 09-14-2007, 01:48 AM
Vandana Vandana is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Default Assign blank as variable value.

Thanks! I was searching for this and it works. Great Help.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved