Sarah,
A lot of this was just trying and trying and looking through the help
files. But here are some clues: The file "e:\epic51\vantage\vbp\vb.i"
which is called by the Progress program I sent you, has the names of the
functions that can be called and sent back to the VBForm. Also, there is a
sample progress program in the \VBP folder you can look at called VBSample.p
that helped me start looking.
To find the Vantage scrname of a filed, you can sometimes go to the
window in Vanage with the information you are looking for and right-click in
the open space of the window. This will show you the screen values of some
of the fields used to populate that screen. That is where I got the
orderrel.needbydate.scrvalue part of the formula. In my case, the
setdatevalue function actually populates the NeedbyDate in the Vantage
window with the results of my calculation in the VBForm.
There have also been some samples sent through the onelist. Look under the
"files" section in the Progress folder.
Here is a clip of the functions available in the vb.i program....
FUNCTION getStringValue RETURNS CHARACTER
( INPUT fld_name AS CHARACTER ) IN VBFunctions.
FUNCTION getIntegerValue RETURNS INTEGER
( INPUT fld_name AS CHARACTER ) IN VBFunctions.
FUNCTION getDateValue RETURNS DATE
( INPUT fld_name AS CHARACTER ) IN VBFunctions.
FUNCTION getDecimalValue RETURNS DECIMAL
( INPUT fld_name AS CHARACTER ) IN VBFunctions.
FUNCTION getLogicalValue RETURNS LOGICAL
( INPUT fld_name AS CHARACTER ) IN VBFunctions.
FUNCTION setStringValue RETURNS LOGICAL
( INPUT fld_name AS CHARACTER,INPUT fld_value AS CHARACTER ) IN VBFunctions.
FUNCTION setIntegerValue RETURNS LOGICAL
( INPUT fld_name AS CHARACTER,INPUT fld_value AS INTEGER ) IN VBFunctions.
FUNCTION setDateValue RETURNS LOGICAL
( INPUT fld_name AS CHARACTER,INPUT fld_value AS DATE ) IN VBFunctions.
FUNCTION setDecimalValue RETURNS LOGICAL
( INPUT fld_name AS CHARACTER,INPUT fld_value AS DECIMAL ) IN VBFunctions.
FUNCTION setLogicalValue RETURNS LOGICAL
( INPUT fld_name AS CHARACTER,INPUT fld_value AS LOGICAL ) IN VBFunctions.
Troy Funte
Liberty Electronics
----- Original Message -----
From: sarah.vareschi@...
To: vantage@yahoogroups.com
Sent: Friday, May 17, 2002 12:31 PM
Subject: RE: [Vantage] VB Forms
Thanks, Troy,
In the set command i.e,
setDateValue("orderrel.needbydate.scrvalue":U,Date-Val). , Where did you
find that and how did you know the syntax, what to pass, etc?
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.