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

dan kabestan

Member
Licensed User
Longtime 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
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. There is no difference between:
B4X:
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.b4x.com/forum/code-samples-tips/2103-table-mousedown-event-more.html

4. Please contact [email protected].
 

dan kabestan

Member
Licensed User
Longtime 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
 
Top