No problem, I believe you can also use:

strAmt = View(Row:=9, Col;=15, Length:=11,True)  

 

The True option would trim in the same manner.

 

Have a Happy Easter!

Matt 

________________________________

From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, April 08, 2009 1:21 PM
To: [email protected]
Subject: [talkbws] RE: Capturing data value in Meditech C/S screen

 

Perfect, thanks!

 

________________________________

From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, April 08, 2009 2:16 PM
To: [email protected]
Subject: [talkbws] RE: Capturing data value in Meditech C/S screen

You may try:

strAmt = Trim(View(Row:=9, Col;=15, Length:=11))

 

This would Trim off any leading or trailing spaces.

 

 

Matt 

 

________________________________

From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, April 08, 2009 1:13 PM
To: [email protected]
Subject: [talkbws] Capturing data value in Meditech C/S screen

 

 

Hi All,

I'm working on a script for Meditech C/S where I want to store a value
from my screen as a variable, and then enter that value in another field
on the screen.

 

Here is basic blurb from my script:

 

Dim strAmt as Integer

 

strAmt = View(Row:=9, Col;=15, Length:=11)

Enter strAmt

 

The problem I seem to be running into is the data I am trying to capture
is a currency amount, and is right justified. So when the script goes to
Enter strAmt, spaces are put before the dollar amount, so "288.00"
becomes "      288.00" which is an invalid data format for a currency
field.

 

Any ideas of how I can successfully capture this data and get it entered
into a field?


Thanks
Melissa

--- 
To post a message to this list, send mail to: [email protected] 

You are currently subscribed as: [email protected] 

Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx 

--- 
To post a message to this list, send mail to: [email protected] 

You are currently subscribed as: [email protected] 

Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx 
--- 
To post a message to this list, send mail to: [email protected] 

You are currently subscribed as: [email protected] 

Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx 



---
To post a message to this list, send mail to: [email protected]

You are currently subscribed as: [email protected]

Unsubscribe in the customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx

Reply via email to