Alpha Video Training
Results 1 to 2 of 2

Thread: Visual Basic to x basic

  1. #1
    Member
    Real Name
    John Kukuda
    Join Date
    Dec 2004
    Location
    Tampa, FL
    Posts
    487

    Default Visual Basic to x basic

    I am looking for help. I am trying to get documentcomplete() function to work on the sample browser on a form. How do I convert the following visual basic code to work in xbasic????

    Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    If (pDisp Is WebBrowser1.object) Then
    Label1.Caption = WebBrowser1.Document.All("myElem").innerHTML
    End If
    End Sub


    what is or does pDisp mean???

  2. #2
    "Certified" Alphaholic Marcel Kollenaar's Avatar
    Real Name
    Marcel
    Join Date
    Apr 2003
    Location
    Twente
    Posts
    1,514

    Default

    Quote Originally Posted by jkukuda
    I am looking for help. I am trying to get documentcomplete() function to work on the sample browser on a form. How do I convert the following visual basic code to work in xbasic????

    Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    If (pDisp Is WebBrowser1.object) Then
    Label1.Caption = WebBrowser1.Document.All("myElem").innerHTML
    End If
    End Sub


    what is or does pDisp mean???
    J,

    Most of the times the p is used for the pointer type. I think an pointer variable to an object in this case and maybe references a "Display" or "Dispatch" action.

    In the sub the parameter is tested if it is an webbrowser object and if so it does something.

    Because you provided only a tiny part of your VB code it is very difficult in which context it is working so it still is a gues.

    Regards,

    Marcel
    Marcel

    I hear and I forget. I see and I remember. I do and I understand.
    ---- Confusius ----

Similar Threads

  1. Article: Alpha Five vs. Visual Basic
    By Neil Albala in forum Alpha Five Version 5
    Replies: 5
    Last Post: 10-30-2002, 04:52 AM
  2. Alpha Five and VIsual Basic
    By Larry Kahn in forum Alpha Five Version 4
    Replies: 2
    Last Post: 04-04-2002, 04:55 AM
  3. Alpha Five and Visual Basic
    By Larry Kahn in forum Announcements
    Replies: 2
    Last Post: 04-03-2002, 03:58 AM
  4. Visual Basic & A5
    By Eric Rogers in forum Alpha Five Version 4
    Replies: 8
    Last Post: 04-25-2001, 03:11 AM
  5. Alpha Five and Visual Basic
    By Dave Robinson in forum Alpha Five Version 4
    Replies: 2
    Last Post: 02-13-2001, 06:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •