set_task parameter confusion
Suppose I have a function that requires an integer as a parameter.
PHP Code:
PHP Code:
PHP Code:
|
Re: set_task parameter confusion
This is the easiest way
PHP Code:
The data parameter is treated like a string so there are ways to use it but if you can get away with just using the ID then that should work just fine. |
Re: set_task parameter confusion
Quote:
|
Re: set_task parameter confusion
If you want to use the "parameter" then it should be like this
PHP Code:
PHP Code:
|
Re: set_task parameter confusion
Quote:
|
Re: set_task parameter confusion
You can also use enumerations helps with the readibilty...
PHP Code:
|
Re: set_task parameter confusion
If you want to pass a task ID and array of data
PHP Code:
|
Re: set_task parameter confusion
num_to_str pre-task then str_to_num post-task when doing a single number for pause. Showing the actual code is beneficial so one gets apropos answer for the case.
Quote:
|
All times are GMT -4. The time now is 03:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.