Greetings,
The syntax below is correct, assuming of course you were setting this = to a
variable:
Myvar= Smart("T|1|4|1|4").View
If you are getting an automation error on this, that is because you have to
have a "running connect" - I have no other way to describe what I mean here
other than by example:
Running
Sub thisWillError
Myvar= Smart("T|1|4|1|4").View
End sub
Will error
Running
Sub thisWillNotError
Connect "MyApp",stWindows
Myvar= Smart("T|1|4|1|4").View
End sub
Will not.
It is possible that the view is not able to return data from the component.
The syntax above will cause the Smart object to be a pointer to the
component. So you could, after executing the view command ,see if it really
"got to where you wanted" by printing out properties of the Smart object:
?Smart.Class - this will tell you what you are looking at - if this doesn't
return anything, this means the sequence is bad.
?smart.Value - this is what the View command is supposed to return
?Smart.Description - Sometimes this has data and value does not
?Smart.Name - Sometimes this has data and value does not
Regards,
Thom
Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com
LEGAL NOTICE Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only. Access to
this E-mail by anyone else is unauthorized. If you are not an addressee, any
disclosure or copying of the contents of this E-mail or any action taken (or
not taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please inform the sender immediately, then delete this
message and empty from your trash.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steinberg, Stacie
Sent: Wednesday, August 08, 2007 10:08 AM
To: [email protected]
Subject: [Talk] Smart Sequences
Has anyone used the SMART sequences within a script yet? Can you reply with
a code snippet? I cannot get the script to run correctly with the syntax
below:
Smart("T|1|4|1|4").View
Thanks,
Stacie Steinberg
Streamline HEALTH
We Make Information Flow
www.streamlinehealth.net
--------------------------------------------------------------------
The information contained in this e-mail message is intended by
Streamline Health for the use of the individual or entity to which
it is addressed and may contain information that is privileged,
confidential and protected from disclosure under applicable law.
If the reader of this message is not the intended recipient, or an
employee or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you received this email in error, please notify us immediately by
replying to the message and deleting it from your computer.