Ed,
If I shellexec a VB program to gather these
parameters,
can I then shellexec (or something similar) from the
VB program once I have the variables to execute a
different .EXE (not a VB program)???
Also, since I'm new to VB, can you give me any step-
by-step instructions for creating required modules for
your example - or some screen shots. I don't know
where to start in VB 6, which is what we have on our
system.
Thanks in advance.
Ed Kulbacki
--- "Giallombardo, Ed"
<egiallombardo@...> wrote:
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
If I shellexec a VB program to gather these
parameters,
can I then shellexec (or something similar) from the
VB program once I have the variables to execute a
different .EXE (not a VB program)???
Also, since I'm new to VB, can you give me any step-
by-step instructions for creating required modules for
your example - or some screen shots. I don't know
where to start in VB 6, which is what we have on our
system.
Thanks in advance.
Ed Kulbacki
--- "Giallombardo, Ed"
<egiallombardo@...> wrote:
> What you need to do for multiple fields is create a_cliptext={QuoteHed.Reference.scrvalue}","{QuoteHed.Quoted.scrvalue}
> delimited clipboard
> value which you put together on the VB form and then
> dissassemble in Visual
> Basic.
> Here's an example for the VB syntax(no spaces after
> the equals sign:
>
> set
>
>=== message truncated ===
> Here's an example of the code in Visual Basic that
> would dissassemble the
> clipboard text into the different fields:
>
> Dim ClipText As String
> Dim Reference As String
> Dim Quoted As String
> Dim pos As Integer
> Dim i As Integer
> Dim Word As String
> Dim Ticker As Integer
>
> ClipText = Clipboard.GetText
> pos = 0
> Ticker = 0
>
> For i = 1 To Len(ClipText)
> Char = Mid(ClipText, i, 1)
>
> If Char = "," Then
> Word = Mid(ClipText, pos + 1, i - (pos +
> 1))
> pos = i
> Ticker = Ticker + 1
> Select Case Ticker:
> Case 1:
> Reference = Word
> Case 2:
> Quoted = Word
> End Select
> End If
>
>
> Ed Giallombardo
> Computer Technician
> Major Industries, Inc.
> 7120 Stewart Ave.
> Wausau, WI 54402
> phone: 715-842-4616 ext. 322
> email: egiallombardo@...
>
> -----Original Message-----
> From: bstenglein@...
> [mailto:bstenglein@...]
> Sent: Tuesday, September 04, 2001 8:26 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: passing data in VB forms and
> shellexec
>
>
> Ed,
>
> I have only tried this technique with 1 piece of
> data, I don't konw
> how you would make it work with more than that
> unless you set up
> multiple buttons, on the Vantage Basic form, each
> copying a piece of
> data to the clipboard, and I guess you could make
> multiple buttons on
> the Visual basic program pasting the data into the
> appropriate
> field. The limitation is that the Clipboard will
> only hold 1 item at
> a time, but with a little more user input I think
> you could make it
> work. I'm not sure how you would make it more
> automatic, but my
> Visual Basic skills are somewhat limited and rusty
> to boot.
>
> Brian Stenglein
>
> --- In vantage@y..., Ed Kulbacki <efkcon01@y...>
> wrote:
> > Brian,
> >
> > With the Visual Basic program, would it be
> possible
> > to pull in 3 or 4 pieces of data from the
> clipboard
> > as well as other data from elsewhere in the
> Vantage
> > system?
> >
> > Can you send me more details or snapshots of what
> > you have done?
> >
> > Ed
> >
> > --- bstenglein@c... wrote:
> > > Ed,
> > >
> > > I think you are talking about doing something
> > > similar to what I've
> > > done. I launch a Visual Basic Program from the
> > > QuoteMtl VB Form and
> > > I pass to it the Part Number from the screen
> before
> > > the VB Form by
> > > using the following commands.
> > >
> > > set _cliptext={QuoteMtl.PartNum.scrvalue}
> > > shellexec
> w:\vantage\vbforms\material\material.exe
> > >
> > > The first line puts the value of the PartNum
> field
> > > into the
> > > clipboard. And obviously the second line
> launches
> > > by VB Program.
> > > Then, when my Visual Basic Form Activates, it
> sets
> > > the focus in the
> > > field for PartNum and basically pastes the text
> from
> > > Vantage into
> > > that field. I am only doing this process for 1
> > > field, I believe
> > > there would be problems with trying to do it for
> > > multiple fields, but
> > > I haven't tried it.
> > >
> > > Private Sub Form_Activate()
> > >
> > > txtVantPartNum.SetFocus
> > >
> > > Screen.ActiveControl.SelText = Clipboard.GetText
> > >
> > > Hope this helps,
> > > Brian Stenglein
> > > Clow Stamping Company
> > >
> > > --- In vantage@y..., Ed Kulbacki <efkcon01@y...>
> > > wrote:
> > > > I already had tried that once and it didn't
> pull
> > > the
> > > > data parameter into the program. It was blank,
> so
> > > I
> > > > figured it didn't work.
> > > >
> > > > Any other ideas or info?
> > > >
> > > > Ed
> > > >
> > > > --- Lonnie Drew <lonniedrew@c...> wrote:
> > > > > Ed,
> > > > >
> > > > > In Vantage help, search for 'VantageBasic
> > > > > Programmer's Reference'.
> > > > > Here's some text RELATED to your issue....
> > > > >
> > > > > "One property to which VB allows the user
> access
> > > is
> > > > > the window value,
> > > > > abbreviated as scrvalue, which is the value
> of
> > > the
> > > > > control as it
> > > > > appears on the window. For example, if the
> user
> > > is
> > > > > in Job Entry
> > > > > looking at Job number 10000, the scrvalue of
> the
> > > > > JobNum control is
> > > > > 10000.
> > > > >
> > > > > The syntax for accessing the window value of
> a
> > > > > control is this:
> > > > > {controlname.scrvalue}. The control name is
> > > usually
> > > > > defined by a
> > > > > table name and control name. For example,
> the
> > > value
> > > > > currently entered
> > > > > in the Job Number field on the initial job
> entry
> > > > > window is
> > > > > {jobhead.jobnum.scrvalue}.
> > > > >
> > > > > Obviously, you need to know the name of a
> > > control in
> > > > > order to refer
>
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com