Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2008, 04:11 PM
Junior Member
 
Join Date: Aug 2007
Posts: 25
Question Questions on shell command, and user event, and the 6.30

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
Reply With Quote
  #2 (permalink)  
Old 05-15-2008, 04:42 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,847
Default

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: Table - MouseDown event and more

4. Please contact support@basic4ppc.com.
Reply With Quote
  #3 (permalink)  
Old 05-15-2008, 06:45 PM
Junior Member
 
Join Date: Aug 2007
Posts: 25
Thumbs up 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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
return codes of a shell command pmu5757 Questions & Help Needed 18 06-15-2008 07:33 PM
Shell command J12345T Questions & Help Needed 2 06-08-2008 09:49 AM
A bot as a User? Cableguy Forum Discussion 2 05-24-2008 03:23 PM
String and Shell questions HARRY Questions & Help Needed 4 12-18-2007 05:56 PM
How to find out that Shell command has finished petrbury Questions & Help Needed 6 10-16-2007 07:20 PM


All times are GMT. The time now is 07:11 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0