Hi All,
I'm using open edge 10.2b.
if i make a program persistent how do i then just run the program rather than picking a procedure to run within that program? I.E. just running the main block or doing the same as you would if you did:
run gui_utils/RecordUsage.p. /*normal*/
run...
yeah i agree RHD... looks like the transaction is in the main block... anyway not to include the triggers for the buttons or iam just stuck with it..seems the transaction is used for stuff.. great idea by someone
yeah i thought as much..just not quite sure why my button choose trigger is in a transaction.. got to admit im not very hot on transactions.. I guess have to try and work out why its in a transaction.. not very clear in a .p
Hi All I'm using open edge 10.2b
I'm running a procedure within a trigger for a button which is in a .p. this procedure runs the following:
procedure logAttempts:
/* assigns the number of attempts to logon as user*/
do transaction:
define input parameter ipintAttempts as integer no-undo...
the help says the format is for the cells.. so not sure it will work on coulmns... you could try setting the format using the coulmn:buffer-field:format = "x(30)"
its not a gobal thing as far as i know... each coulmn (when you've got some will need the width setting) unless there is att to set the default column size..
assign hbrCol = BRDetail:first-column in frame fmain.
repeat:
hbrCol:width = intLength.
assign hbrCol = hbrCol:next-column...
its not a gobal thing as far as i know... each coulmn (when you've got some will need the width setting)assign hbrCol = BRDetail:first-column in frame fmain. repeat:
just to update ppl What I've done so far (its still in the testing stage) is to pass the browse object and i can get all the info i need from that. I can get the data thats in the browse by going round the query in the browse object and using the column Buffer-fields to get the data to populate...
try this not sure if will do what you want but its one ive had for a while
/*----------------------------------------------------------------------
------
Name : MonthDiff
Desc : Calculate the difference between 2 dates as months and days...
Yeah its a static Browse RHD, I know if i pass the browse handle i can go through the query just dont know how to point at the table/data to get the data. Is it a matter of just passing the handle of table that is used in the browse? is this ok if its a static table or a temp table?
Hi All,
I'm using open edge 10.2b.
We currently send information to excel to printout in a the form of a CSV and excel then imports. We build up this csv by doing the following:
whHeaderBuffer = buffer {&browse-table}:handle.
get first {&browse-name}...
Might also find the below code useful the example runs a web browser via a link. But should be able to find lots on EXTERNAL "shell32
PROCEDURE ShellExecuteA EXTERNAL "shell32" : /*when ran opens default web browser*/
define input parameter hwnd as long.
define input parameter...
well yes i agree with what ur saying.. but it also works on the flip side... If wish to change how the function is calculating something then I don’t have to change all the programs. Where I work its very much a manual process to go round all these programs with the .i files in which is a pain...
Well I'd say i wouldnt be able to use the procedure if there was a compile error... and yes include files have their uses its just i dont find them that good they can make whats happening in the code unclear as its off in a .i somewhere and if you change the .i you have to then recompile all the...
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.