Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
subroutine
- Page 1
subroutine help
Programming
Software Development
15 Years Ago
by london-G
hello I would like to create a
subroutine
, so that I don't have to repeat the code. …
Subroutine returning data and freeing buffer?
Programming
Software Development
10 Years Ago
by uws101
…buffer = malloc(...) buffer is calculated from input } or flot
subroutine
(char *input) { *output = malloc(...) buffer is calculated … *argv[]) { float *data;
subroutine
(argv[] ...) ... free(data) } 1) which
subroutine
is recommended? 2) If I malloc…
Re: Subroutine returning data and freeing buffer?
Programming
Software Development
10 Years Ago
by uws101
… the file name (which I can do) to a
subroutine
and then
subroutine
opens it, reads it and return the array values… the code below - move the open/reading part into a
subroutine
as I have multiple files to open/read - so the…. Line 13 to around line 48 to be moved to
subroutine
. #include <stdio.h> #include <malloc.h>…
Subroutine Access
Programming
Software Development
16 Years Ago
by kahaj
When a page is generated and has a form in it, can the form's action be to access a
subroutine
elsewhere in the script?
Re: Subroutine Access
Programming
Software Development
16 Years Ago
by KevinADC
… include a hidden form field with the name of the
subroutine
you want to run: <input type=hidden name=action…
Subroutine returning the wrong value :l
Programming
Software Development
15 Years Ago
by chrisname
… using regexps for the actual parsing). Anyway; I have this
subroutine
to iterate over each argument in @ARGV and, if one…
Re: Subroutine returning the wrong value :l
Programming
Software Development
15 Years Ago
by d5e5
… -- until it died because I don't have a readFile
subroutine
. But the point is that I didn't get the…
Re: Subroutine returning the wrong value :l
Programming
Software Development
15 Years Ago
by chrisname
… -- until it died because I don't have a readFile
subroutine
. But the point is that I didn't get the…
Re: subroutine help
Programming
Software Development
15 Years Ago
by TomW
A little more detail about what isnt working would be helpful. Also you should properly declare instances of each for you want to create. [Code=VB] Private Sub LoadForm3( ) Dim frm As New Form3 frm.Show() End Sub [/Code]
Re: SubRoutine/Function Code Split
Programming
Software Development
18 Years Ago
by NedFrankly
… the original variable (and can generally update it from your
subroutine
). Here's an example: [code] ' This is a… needed. ' We updated the variable 'intX' within the
subroutine
. end sub [/code] To start, figure out what you…them, or were they all declared local to the
subroutine
snippet you provided? To successfully convert procedural code …
Fortran -Passing array into subroutine - segmentation fault
Programming
Software Development
13 Years Ago
by hypernova
…(*,*)array(i,j) enddo enddo end
subroutine
func The output is: 3 3…2 4 6 3 6 9 ********* Inside
subroutine
********** 131097 1 Segmentation fault Two questions: …
Calling subroutine
Programming
Software Development
16 Years Ago
by veledrom
Hi, I have a
subroutine
(callMe) in Module1. I want to call "callMe" in other
subroutine
in Form1. I cant do it. I cant call
subroutine
in other
subroutine
. How do i do it. Thanks
Calling external C subroutine from Fortran program
Programming
Software Development
16 Years Ago
by nikhil.laghave
…, I am trying from a Fortran program, to call a
subroutine
that I wrote in C...I named the C code… file as filename.c and the
subroutine
is: void filename() Now in a fortran program, I am… calling this
subroutine
as: Call filename() I am getting the following error: fortcom…
Help Fixing My MIPS Assembly Program: Subroutine Linking
Programming
Software Development
13 Years Ago
by userct
… which you can’t modify. Write a
subroutine
, with entry point poly, that evaluates the polynomial…. The
subroutine
takes two arguments, x and y, in … + 20x - 16y + 100 is: " #Begin polynomial (poly
subroutine
) .text .globl poly poly: # prolog sub $sp,$sp,4 # …
Page_Loud subroutine
Programming
Web Development
17 Years Ago
by ardeezstyle
Hi I've a query to ask...... The Page_Load
subroutine
runs EVERY time the page is loaded. If we want …to execute the code in the Page_Load
subroutine
only the FIRST time the page is loaded, we can… the command once to a particular visitor, is there any
subroutine
using which we can attain this. Thanks in advance
Re: Calling external C subroutine from Fortran program
Programming
Software Development
16 Years Ago
by ArkM
… you must declare interface in your Fortran program: [code] INTERFACE
SUBROUTINE
FILENAME !DEC$ ATTRIBUTES C, ALIAS::"filename"::cfilename END…
SUBROUTINE
END INTERFACE [/code] I have no CVF so try as …
Need to get program to recognize variables/arrays outside the subroutine
Programming
Software Development
16 Years Ago
by aveao
… arrays. It wont let me declare the array outside the
subroutine
and it says the array is not declared. If i… put it in the first
subroutine
the second
subroutine
doesnt recognize the first array. Can anyone help me…
Using a control to just call the subroutine
Programming
Software Development
19 Years Ago
by macupryk
… instead of building a dll. I want to call the
subroutine
. Is there a way I can do so? I am… can you please provide me the steps to call the
subroutine
and what needs to be modified in the below. Option…
why 'Undefined subroutine'?
Programming
Software Development
17 Years Ago
by katharnakh
… by, main::test_package.pl at 7 res = 30 --- b = Undefined
subroutine
&B::fib called at test_package.pl line 11.[/code… defined in the module or Why does Perl says 'Undefined
subroutine
'. thanks, katharnakh.
Assembly subroutine parameters
Programming
Software Development
16 Years Ago
by liquinox
… seemingly simple function written in C into assembly. My assembly
subroutine
seems to work, except when it returns to main, *pCombo… function to print out the input read in the assembly
subroutine
. GDB trace (abcd is the input): [code] make main.gdb…
Passing variable pointers in subroutine
Programming
Software Development
16 Years Ago
by OffTheLeft
…. This I was easily able to do. Next, a fourth
subroutine
must be written to return the number of positive, zero… be incremented given the conditions of my "signs"
subroutine
below? Here is my rough cut of the current assignment…
Call a Subroutine by Variable Name (In VB.Net)
Programming
Software Development
15 Years Ago
by dor.marchan
… do is to call/run/execute a
subroutine
using a varaible name from a
subroutine
. [code] Public Sub Main(ByVal subName as…
Re: Call a Subroutine by Variable Name (In VB.Net)
Programming
Software Development
15 Years Ago
by dor.marchan
…; BBB() Case Else Msgbox ("Tried to call an undefined
subroutine
.") 'Other trapping of undefined routine calls are also possible… do it but it call a form and not a
subroutine
within a Module. I also found something but it is…
Run A Subroutine if a form is closed?
Programming
Software Development
15 Years Ago
by leverin4
I want a certain
subroutine
to run if the user clicks the red close button in the top corner of the form. Is there a
subroutine
similar to Form_Load() when the form is opened that will do this for me? Thanks in advance
call a vb subroutine from a javascript function
Programming
Web Development
15 Years Ago
by gabrielmusa
How do i call a vb
subroutine
from a javascript function? in my code i want to … proceed to submit the form or run the background vb
subroutine
. here is my code <script language="javascript"…
Need a subroutine program
Programming
Software Development
14 Years Ago
by trume
… and seconds) that the program will have a [B]
subroutine
function[/B]?
Subroutine
needs to return a full-time. The code is…
Passing an Array to a subroutine via a pointer
Programming
Software Development
13 Years Ago
by Locke123
So I'm tasked with writing a
subroutine
to access a certain element of an array. When the
subroutine
is called, the pointer that points to it is [bp+1]. How would I make it so I could access say the 10th element of this array in the sub routine?
Passing results on from a subroutine
Programming
Software Development
13 Years Ago
by flywheeljack
So I created a
subroutine
to do some work but now i have no idea …[/CODE] I'm using the msgbox to see that the
subroutine
is actually performing its job and it is, but i…
Re: Passing an Array to a subroutine via a pointer
Programming
Software Development
13 Years Ago
by NotNull
… an odd index to use into the parameters of a
subroutine
. "However, in the case of accessing an array, you… the accessing of parameters placed on the stack before a
subroutine
call, no criticism intended, sorry... A stack frame is set…
Batch Subroutine
Programming
Software Development
12 Years Ago
by Jbvo
I am tring to call the same
subroutine
several times. The first time it runs it works correctly. …Everytime after the first time it doesn't run the
subroutine
in order. I was wondering if anyone knows how to…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC