Questions on shell command, and user event, and the 6.30

Discussion in 'Questions (Windows Mobile)' started by dan kabestan, May 15, 2008.

  1. dan kabestan

    dan kabestan Member Licensed User

    Hello
    1 - I suppose that shell command run with static parameters :
    (data known before compiling)
    ex : shell("notepad.exe","") '--- running
    or
    my_command = "cmd.exe"
    shell(my_command,"") '--- running

    But if i want a dynamic run as :
    my_command = textbox1.text
    Then shell command doesnt run ! Any workaround solution ?

    2 - it seems that shell command doesnt run on Device (and generates an error).
    Where is my mistake ?

    3 - For example Table component Event is SelectionChanged.
    So, may i create an other kind of event ? something like "click", ex :
    sub main
    .......
    AddTable ("Form1", "my_table", 30, 30, 200, 200)
    AddEvent("my_table", click, "job_click")
    end sub
    .......
    sub job_click
    myjob
    end sub

    It doesnt run, maybe any workaround ?, any "super_control" command....

    4 - New B4ppc

    I havent received any email, what is the way to touch the last 6.30 ?

    thanks for help
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. There is no difference between:
    Code:
    Shell("Notepad.exe","")

    my_command = textbox1.text 
    'Assuming textbox1.text = "notepad.exe"
    Shell(my_command,"")

    Shell(textbox1.text,"")
    2. Shell command works on the device. Which error do you get?
    Which application do you try to run? (cmd.exe is not available on the device).
    3. You can't simply create new types of events.
    Why do you need a click event rather than SelectionChanged event?
    It is possible to add this event with the Door library.
    See this example: http://www.basic4ppc.com/forum/code-samples-tips/2103-table-mousedown-event-more.html

    4. Please contact support@basic4ppc.com.
     
  3. dan kabestan

    dan kabestan Member Licensed User

    right

    You right,
    For the desktop, the shell command run dynamicaly, i found a bug in my program.
    For the device , its running too but i have some PATH problem (i suppose).
    For Table Event, i would place a ligne_edit at a defined row.
    I will study your Door library.

    Thanks for this quick help
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice