VB Syntax Help for Pathpoint Anchor

Greetings, Friends!
I think that I am about to slap myself silly, as I know that as soon as I am presented the solution, I'll do one of those "Dang - I knew that", but after a few hours of trying, I'm currently coming up empty.
Here's the problem: I am trying to (among other things) move a pathpoint that was added on a pathitem rectangle. The add of the pathitem goes well, the add of the pathpoint to the rectangle is fine, although when it it is "added" it picks some arbitrary position, hence the need to change the position, starting with the anchor.
I typically write in VB.NET (2013), as I am doing here. Using Illustrator CS6.
In VBScript, documentation shows:
    newPoint.Anchor = Array(75, 300)
Using that syntax, I get a pre-complier error in VB.NET, as "Array" is a type and can't be used as an expression.
To create an inline array in VB.NET, I would normally use:
    newPoint.Anchor = {75, 300}
Using this syntax, I get a runtime COM-exception error.
Any help would be GREATLY appreciated!!!
Thank you in advance,
TT

Greetings! Wow - what a difference a good night's sleep makes.So  I guess I get to answer my own thread. Sure is lonely out here...
Maybe someone else can use this info (if there "IS" anyone else out there who uses VB.NET with AI Scripting).
So... in VB.NET, this does NOT work either:
     Dim newArray As Array = {x, y}
nor this:
     Dim newArray As Object = {x, y}
However, doing a "long-handed" array does (I simply created a function):
     pathPoint.Anchor = Array(123.123, -012.012)
     Private Function Array(x As Double, y As Double) As Object
          Dim newArray(1) '2 screen position points
          newArray(0) = x
          newArray(1) = y
          Return newArray
     End Function
Not sure why .NET with AI Scripting is so touchy... Hope this helps someone.
-TT

Similar Messages

  • Syntax helper for ABAP code?

    Please, I would like to ask any of you ABAP developers with some expirience...is there any tool (inside or outside the Workbench) that can color the syntax of ABAP code... (the way it is done in some other IDEs like Visual Studio, JBuilder or even Ultra Edit...) ???

    There are some IDE external of SAP that do that. But .. I try it and don't like that.
    Ex : http://www.sapedit.com/
    Wait for next release, there will be some new stuff.
    Frédéric

  • Syntax help

    hi friends
    i need the syntax help for the below sentence
    F = (10 - (round(10 - j) - j)^2)
    this is giving error in editor
    pls help to resolve this
    thanks in advance
    with regards
    s.janagar

    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(UID) TYPE  OIJNOMI-ZZSCHEDID
    *"     REFERENCE(TIMESTAMP) TYPE  CHAR14
    *"  EXPORTING
    *"     REFERENCE(TOKEN) TYPE  CHAR25
    *timestamp (YYYYMMDDhhmmss)
      DATA: zyear TYPE i,
            zmon TYPE i,
            zdat TYPE i,
            zhrs TYPE i,
            zmin TYPE i,
            zsec TYPE i,
            zfrm TYPE i,
            zuid TYPE i,
            a TYPE i,
            b TYPE i,
            c TYPE i,
            d TYPE i,
            e TYPE i,
            f TYPE i,
            g TYPE i,
            h TYPE i,
            i TYPE i,
            j TYPE i,
            k TYPE i,
            w_data  TYPE i.
    splitting up the timestamp to date,month,hrs,minutes etc.,
      zuid = uid.
      zyear = timestamp+0(4).
      zmon = timestamp+4(2).
      zdat = timestamp+6(2).
      zhrs = timestamp+8(2).
      zmin = timestamp+10(2).
      zsec = timestamp+12(2).
      a = zhrs + 1.
      b = zuid - zdat + zhrs.
      c = zyear - zhrs.
      d = zmin + zuid .
      e = zyear + zhrs * 13 + zuid + zdat * 23 .
      f = e * zuid.
      g = zuid - zdat.
      h = zuid - zhrs.
      i = zhrs - zdat.
      j = zuid / 10.
      k = 25 - zhrs.
      zfrm = ABS( 15 * zuid * a + 11 * b + 19 * c + d * 3 + f + zhrs * zhrs * g * h + i * 23 * ( 10 - ( j - round( j ) * 10 ) exp 2 ) * ( k ) exp 2 ).
      token = zfrm.
    Edited by: janagar sundaramoorthy on Nov 25, 2008 9:20 AM

  • How to create a F4 help for a report selection screen field

    hi,
    can any one guide me to create F4 help for a field in a selection screen in a report program,plz give me a sample code

    hi,
    Here are the following ways
    1.with the help of match code objects we can create the F4 Functionality for Field.
    Syntax is :
    PARAMETERS: p_org LIKE t527x-orgeh MATCHCODE OBJECT zorg.
    2. One more thing is we can do it with Search Help's also.
    3. Even we can do it HELP Views also.
    Help Views:
    You have to create a help view if a view with outer join is needed as selection method of a search help
    The selection method of a search help is either a table or a view. If you have to select data from several tables for the search help, you should generally use a database view as selection method. However, a database view always implements an inner join. If you need a view with outer join for the data selection, you have to use a help view as selection method.
    All the tables included in a help view must be linked with foreign keys. Only foreign keys that have certain attributes can be used here. The first table to be inserted in the help view is called the primary table of the help view. The tables added to this primary table with foreign keys are called secondary tables.
    The functionality of a help view has changed significantly between Release 3.0 and Release 4.0. In Release 3.0, a help view was automatically displayed for the input help (F4 help) for all the fields that were checked against the primary table of the help view. This is no longer the case in Release 4.0.
    As of Release 4.0, you must explicitly create a search help that must be linked with the fields for which it is offered (see Linking Search Helps with Screen Fields ).
    Existing help views are automatically migrated to search helps when you upgrade to a release higher than 4.0.
    A help view implements an outer join, i.e. all the contents of the primary table of the help view are always displayed. You therefore should not formulate a selection condition for fields in one of the secondary tables of the help view. If records of these secondary tables cannot be read as a result of this selection condition, the contents of the corresponding fields of the secondary table are displayed with initial value.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:15 PM

  • Syntax Highlighting for custom file extensions

    Hi everyone.
    I am currently working on a PHP project, and we are using
    *.thtml files for templates. The file isn't supported by
    Dreamweaver, as it's a fictional file extension. First I couldn't
    even open it with Dreamweaver, but after I added it in
    settings/file types, it worked.
    Now my question - how can I activate syntax highlighting for
    this filetype? It contains HTML and PHP, so it should work with the
    same highlighter as all the other file types do..
    Can someone help me out?
    Thanks.
    - Chris

    Got it
    http://alexle.net/archives/119

  • Syntax/Delimeter for Data param in Sql Query?

    Hello,
    I have an ADODB recordset which return too many rows from an Oracle Table. I am trying to limit the rows by using a date field in the table as criteria. Here is what I tried that did not work:
    RS.Open "Select * From Tbl1 Where Datefld > #1/1/2002#", conn I get an "Invalid Qualifier" error.
    Any help greatly appreciated on the correct syntax/delimeter for this query.
    Thanks in advance,
    Rich

    Nevermind. I used single quotes for the delimeter. That did the trick.
    Rich

  • Need help for user exit mereq001

    Hi,
    I need help for user exit mereq001. I think I messed up with include table CI_EBANDB and CI_EBANMEM. And When I tried to check the syntax . It gives me error like : <b>Class IF_PURCHASE_REQUISITION. Inconsistency in the dictionary for the structure mereq_item_s_cust_data.</b> Anyone had experience for this exit? I just need to extract costcenter information of the each item from the requisition and block the requisiton if the costcenter are differents from each other before the requisition is saved. Any one has idea about it?
    Thanks.

    biao,
    Have you checked this struture consistency from SE11. Also check the activation log.
    If there are any errors and you are not able to rectify the same use RSDDCHECK program, give your table name and run the report.
    This will list down the error structures releated this table and also prompts for you to activate it.
    Regds
    Manohar

  • How to add user defined F4 help for s LDB field?

    Hi,
         I am using PNPCE Logical Database for a program using the standard HR report category. But I want to have my own restricted F4 help for a particular field.Is it possible to override the standard LDB search help? I tried doing it , but I am getting a syntax error .
    Mahesh

    Hi Mahesh,
    I don't think so that you can attach a User defined F4 help in a standard LDB.
    What I would suggest is that you copy the standard LDB into Z LDB from SE80.
    Then go to the selection screen of the LDB and either try and attach a F4 help by writing the code in it OR
    Hide the field where you want to attach the F4 help with the keyword Exclude(you will have to check on the exact keyword).
    And add the same field in the selection screen of the report and define the F4 help.
    Do not forget to attach the Z LDB to your report by going to the Attributes.
    Please refer to the code below for attaching a generic F4 help to a select options:
    report zrich_0001 .
    data: begin of ihelp occurs 0,
    field type char10,
    ftext type char50,
    end of ihelp.
    data: a_field(20) type c.
    select-options s_field for a_field.
    initialization.
    ihelp-field = 'A'.
    ihelp-ftext = 'Description A'.
    append ihelp.
    ihelp-field = 'B'.
    ihelp-ftext = 'Description B'.
    append ihelp.
    ihelp-field = 'C'.
    ihelp-ftext = 'Description C'.
    append ihelp.
    at selection-screen on value-request for s_field-low.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield = 'FIELD'
    dynprofield = 'S_FIELD'
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    value_org = 'S'
    tables
    value_tab = ihelp.
    start-of-selection.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • Oracle Help for the Web 2.0 Production

    Oracle Help for the Web 2.0 is now available on OTN Downloads.
    Oracle Help for the Web (OHW) 2.0 is a major update to the previous releases OHW 1.1x and OHW 1.0.x, and is designed and recommended to replace both.
    Some of the new features in 2.0 include the following:
    Support for Bookmarking Navigator Pages
    OHW 2.0 no longer uses frames to store navigational state on the webpage. Each navigator stores its complete state on the URL, allowing each page to be bookmarked. This includes TOC locations, keyword locations, and search runs. In the view topic page, the frame information is also saved, allowing a user to forward the link via email, etc to the displayed topic. In addition, if you navigate to a named anchor within a topic page, this page position is also saved and is bookmarkable.
    Multiple Locale Support in a Single Instance
    OHW 2.0 can now support multiple locales in the same servlet instance. After you register the helpsets in the OHW configuration file, the OHW servlet will automatically determine the best locale to use for a user request (based on browser settings and what locales are available), and display the localized helpset (along with a localized OHW chrome) to the user. This feature also means that if you navigate to a topic in English, and then send the link via email to a user whose browser supports Japanese, if the Japanese helpset is registered, the topic link will appear in Japanese to the second user.
    Search Engine Support
    OHW has been specially designed so that search engine crawlers can reach all hosted content (including table of contents, and index pages) and easily traverse within and between the available navigators. Page titles have also been redesigned to make pages easier to locate from within a search engine result set.
    Ability to Share Resources Across Localized Helpsets
    OHW can be configured so that helpsets can share resources such as images and CSS stylesheets. Since each localized helpset no longer needs its own resources, this can dramatically reduce the size of the deployed file.
    Relative Content Locations
    Content locations can now be specified relative to the OHW configuration file.
    True Popup Support
    OHW now properly supports Oracle Help popup links. Following this link will bring up a dynamic draggable DHTML window (or a normal popup window if the browser does not support it) with the requested topic page.
    All Level Merging in the Table of Contents
    Using the default TOC engines, each level of the TOC will merge like elements together. This change reflects modifications made to core Oracle Help classes and mimics the feature added to Oracle Help for Java (OHJ).
    New Tree-based Table of Contents Navigator
    The Tree-based TOC navigator shows the data in a heirarchical fashion and allows the user to see the full TOC (and not just a limited part of the TOC, as with previous versions of OHW). The tree-based TOC navigator is a standard navigator and can be added by including it in the helpset configuration file.

    Yes, I am now able to access this page and download OHW.
    Thanks very much,
    Lucie

  • Creating search help for a field in AdHoc Query

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

  • Need to restrict values in F4 help for Batch Characteristic

    Hi,
    I need to restrict values in F4 Help for a batch characteristic based on values entered for another characteristic. I could not find any BADI or Exit for this purpose. There is a BADI CACL_VALUE which is triggered after an entry is selected from dropdown list but nothing when we press F4. I thought of using Object Dependency but I need to write a programming logic for the requirement. Please let me know if there is any way to write program in Object Dependency or any other way for this requirement.
    Regards,
    Nikhil

    Hi nikhil simha,
    first of all, find out which search help is called.
    [Hierarchy of the Search Help Call|http://help.sap.com/saphelp_nw70/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm]
    may help you.
    If you know the search help, you may enhance it, but first of all you should check the where-used-list and make sure that the search help shows the requested behavior only in the context where you want it to.
    If it is your own program, you may be better off to create your own search help and define the triggering fields as search help interface input fields. Then you can use the values to filter results.
    Regards
    Clemens

  • Search Help for Vendor Feild not getting populated in the Screen Element

    Hi Everyone,
    In transaction Miro, I get a POP-UP for Invoicing Party i.e. Vendor and Users required a custom search help.
    The Search help for Vendor(LIFNR) is KRED_C and i appended a Z search help under this.
    Now that the search help exists and I can drill down the values too but when i select/choose any value,  that value is not getting populated in Screen feild.
    is there any validation I need to do for this.
    Please suggest me... I checked SDN there are many things but i couldn't figure out wat i need to do and where I need to modify.
    Regards,
    Raj

    Dear Hema,
    Could you please tell me how many internal tables you are using to store the data for display.
    I observerd that you have lt_stock and lt_mat2 declared in the part of the program
    >DATA: lv_stock TYPE lty_stock.
    >DATA: ltmat2 TYPE TABLE OF lty_mat.
    you have displayed above, however you are also using ls_stock and lv_stock .
    >IF p_ztotal = ' '. "line
    >WRITE 18 ls_stock-matnr.
    >WRITE 38 lv_stock-strgr.
    >
    >ELSEIF ztotal = 'S'.                             "subtotal
        >WRITE: 15 ls_stock-nrmit.
        >WRITE 32 lv_stock-dispo.                    
        >WRITE 43 lv_stock-fevor.                      
      >ELSE.                                            "total
        >WRITE: 15 'TOTAL'(016), ls_stock-prgrp.
    >
      >ENDIF.
    Are those for displaying some other information?
    Also the problem of display you are facing can also be because there are no records to be displayed which satisfies the selection criteria.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • Search help for SKAT-SAKNR OR SKAT-SAKNR is not working

    Hi All,
    I have created a Search Help for F4 in a dialog program for SKAT-SAKNR OR SKAT-SAKNR. While i click F4 on that field, it displays blank values.
    Here is the module:
    module HELP_FOR_SAPGL_ACC input.
      CLEAR t_SAPGL.
      SELECT  SAKNR TXT20
        FROM  SKAT
        INTO  CORRESPONDING FIELDS OF TABLE t_SAPGL UP TO 1000 ROWS
        WHERE SPRAS = SY-LANGU.
       WHERE L_GL_ACC = v_FIELD_VALUE-FIELDVALUE.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          RETFIELD               = 'SAKNR'
        PVALKEY                = ' '
         DYNPPROG               = PROGNAME
         DYNPNR                 = DYNNUM
         DYNPROFIELD            = 'SKA1-SKANR'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         VALUE_ORG              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          VALUE_TAB              = t_SAPGL
        FIELD_TAB              =
        RETURN_TAB             =
        DYNPFLD_MAPPING        =
      EXCEPTIONS
        PARAMETER_ERROR        = 1
        NO_VALUES_FOUND        = 2
        OTHERS                 = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endmodule.   
    In the above code I am selecting 1000 rows from SKAT table and in the Search Help Popup it is also displaying 1000 rows but all are blank.
    Please help me.
    Regards,
    Avaneet

    Hi check my weblog on search help exit codeing..
    https://wiki.sdn.sap.com/wiki/x/du0
    \* Prepare for output
    CALL FUNCTION 'F4UT_RESULTS_MAP'
    TABLES
    shlp_tab = shlp_tab
    record_tab = record_tab
    source_tab = lt_result
    CHANGING
    shlp = shlp
    callcontrol = callcontrol
    EXCEPTIONS
    illegal_structure = 1
    OTHERS = 2.
    IF rc = 0.
    callcontrol-step = 'DISP'.
    ELSE.

  • I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    I have problem with buying in games , I got the massage that the purchased can not be completed , please contact iTunes support.. I need help for my case please

    http://www.apple.com/support/itunes/contact/

  • Search help for date field in Editable ALV

    Hello Friends,
    I am using editable alv using 'reuse_* '.
    I have used date as input field. While creating fieldcatlog also i have  declared dat as a mkpf-budat.
    But i am not getting serach help for date in output.
    Is it possible with reuse or i have to go by object oriented ?

    Hi,
    Just pass the Edit option of the fieldcatalog for those specific fields...
    fcat-edit = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-cprog
          i_callback_pf_status_set = 'PF_STATUS_SET'
          i_callback_user_command  = 'USER_COMMAND'    "<----  pass this
          i_callback_top_of_page   = 'TOP'
          is_layout                = it_layout
          it_fieldcat              = it_fcat
          i_default                = 'X'
          i_save                   = 'A'
          it_events                = it_event
        TABLES
          t_outtab                 = it_final
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    *&      Form  USER_COMMAND
    *       text
    *      -->R_UCOMM      text
    *      -->RS_SELFIELD  text
    FORM user_command USING r_ucomm LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&DATA_SAVE'.                "<-------check this
          PERFORM save_data.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND

Maybe you are looking for