VB question

Author Message
dante

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 7/13/2006
  • Status: offline
VB question Thursday, July 13, 2006 4:00 AM (permalink)
0
Okay, so I am new to this forum.  I am working with Rational ClearQuest for work and it utilizes Basic scripts.  I have some programming experience but no VB. I have been googling for most help but this one I am stuck on.  Hopefully someone can help.
 
Scenario:
 
Two Tables within one SQL database
 
Project with a column called Defect_Lead
 
Defect wtih a column called Lead.   **Note there is also a referenced field(column) called "Project"   No scripted was needed to get this one to work, but I think because it was the name name of the other table.
 
In the Defect script under the field Lead I need to write a VB script that will take the data from the Project tab column Defect_Lead and display and add it to the column in the Defect table.
 
Some background,  here is what I have written so far.
This script is written in the Defect table.
 
Sub lead_DefaultValue(fieldname)
 fieldname As String
record type name is Defect
field name is Lead
 
 If GetFieldValue("Project").GetValue() != " " then
 
REM  Need to pull the value that was set in Defect_Lead field(column) in the Project Table
REM  Need to than Take that value from Defect_Lead and populate the Lead field in the Defect table
 

 End if
 

Any help would be greatly appreciated!
 
#1
    mbouchard

    • Total Posts : 2110
    • Scores: 29
    • Reward points : 0
    • Joined: 5/15/2003
    • Location: USA
    • Status: offline
    RE: VB question Friday, July 14, 2006 12:59 AM (permalink)
    0
    From the looks of the code you posted you are talking about Visual Basic (VB) and not VisualBasic Scripting (VBS)  they are completely different. 

    While there are some here that can probably help, you might get more help if you go to  google groups and search on Visual Basic MSDN or the like. 
    Mike

    For useful Scripting links see the Read Me First stickey!

    Always remember Search is your friend.
     
    #2
      Nari

      • Total Posts : 1
      • Scores: 0
      • Reward points : 0
      • Joined: 9/17/2006
      • Status: offline
      RE: VB question Sunday, September 17, 2006 1:50 AM (permalink)
      0
      HI to all
       
       
      who can help me about Vbscrit in Corel I want to make a scrip that can Generate  the numbers but the Script in the Corel Just repet the same thins *number*
       
       
      Sub alban()
          '
          ' Recorded 9/17/2006
          '
          ' Description:
          '
          '
          Dim dup1 As ShapeRange
          Set dup1 = ActivePage.Shapes.All.Duplicate()
          dup1.Move 1.181102, 0#
          ' Recording of this command is not supported
          Dim dup2 As ShapeRange
          Set dup2 = dup1.Duplicate()
          dup2.Move 1.181102, 0#
          ' Recording of this command is not supported
      End Sub

       
      #3
        mbouchard

        • Total Posts : 2110
        • Scores: 29
        • Reward points : 0
        • Joined: 5/15/2003
        • Location: USA
        • Status: offline
        RE: VB question Tuesday, September 19, 2006 7:11 AM (permalink)
        0
        As I said to the OP, this isn't VBscript, but may be VB.  
        Mike

        For useful Scripting links see the Read Me First stickey!

        Always remember Search is your friend.
         
        #4
          ebgreen

          • Total Posts : 8227
          • Scores: 98
          • Reward points : 0
          • Joined: 7/12/2005
          • Status: offline
          RE: VB question Tuesday, September 19, 2006 8:26 AM (permalink)
          0
          I suspect that the second code may be technically VBScript but since it is being hosted in an application and being generated by a macro recorder (from all appearances) then it would be hard for anyone that has not coded macros in that specific app to help with.
          "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
          Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
          http://www.visualbasicscript.com/m_47117/tm.htm
           
          #5
            mbouchard

            • Total Posts : 2110
            • Scores: 29
            • Reward points : 0
            • Joined: 5/15/2003
            • Location: USA
            • Status: offline
            RE: VB question Wednesday, September 20, 2006 12:36 AM (permalink)
            0
            True.
            Mike

            For useful Scripting links see the Read Me First stickey!

            Always remember Search is your friend.
             
            #6

              Online Bookmarks Sharing: Share/Bookmark

              Jump to:

              Current active users

              There are 0 members and 1 guests.

              Icon Legend and Permission

              • New Messages
              • No New Messages
              • Hot Topic w/ New Messages
              • Hot Topic w/o New Messages
              • Locked w/ New Messages
              • Locked w/o New Messages
              • Read Message
              • Post New Thread
              • Reply to message
              • Post New Poll
              • Submit Vote
              • Post reward post
              • Delete my own posts
              • Delete my own threads
              • Rate post

              2000-2012 ASPPlayground.NET Forum Version 3.9