Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
alvaroafernandez
About
- Username
- alvaroafernandez
- Joined
- Visits
- 59
- Last Active
- Roles
- Member
Comments
-
Yes, possibly. In the production RevG environment, we maintain "normal" users as tabs1, tabs2, ..., and an administrative user, tabsadmin. So I could leverage 3 and 4 for this. We don't have a clear distinction between admin and system admin in our…
-
It is. :-) That was a typo. Do fields 3 and 4 matter anymore with this setup?
-
I created GetUserName following this pattern, and it does work. Thanks for the suggestion Don. I'll also follow your idea of using a generic user named after my application, passing it into the run string, C:\OIPHS\OINSIGHT.exe /ap=PHS /un=PHS …
-
So I decided to follow the pattern used to create the GetEnvironmentVariable routine. I went to https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getusernamea I studied the way they declare the routines there tried to apply …
-
I get it, and I got it. :-) Taking out the debugs allowed me to detect the dblclk successfully. Thank you! I would not have gotten this. The debugs were in there because I wasn't picking up the dblclk to begin with (!) but I guess that earlier issu…
-
I'll try that, but the debugger always shows the event coming in to be click. Basically, OI doesn't give me the dblclk event ever. The moment I click or double click a row, OI is off to the races, and the commuter module shows the event as cl…
-
It's more extreme. The only way I can get 'DBLCLK' to appear as an EVENT, is if I comment out everything from the CLICK event. So only an empty CLICK event allows a DBLCLK event to happen. Even the presence of a single debug statement for the "C…
-
Yes, I am. The way the event is handled in the commuter module is shown below, and the behavior persists even without 'debug' statements. This is copied straight out of the source code. The EVENT variable is never equal to 'DBLCLK', regardless of h…
-
I ended up using UDPs after some thought. I think it's the most self-documenting way to do this. Thanks for the advice guys!
-
It's actually 9 arrays, each one of them @FM delimited (and some may be @VM delimited within that as well). :-) I'll give the dimensioned array a try - it's intriguing. I assumed an array of N entries would be seen as N variables and wouldn't work …
-
I guess I was led astray by the fact that when you select a Commuter module as the preferred response to - well, any event - OI shows you 7 parameters. I guess they're not checking which event this is for. In fact I know I've done this before - pass…
-
The white paper is very helpful. The app is in development, so I'm free to change how I did the windows logic however I see fit. I can see the field where the event handler names are kept (field 6 I guess, not 21 as in the paper?). So, I can …
-
Thanks. Should I visit the other script event handlers in the repo and make them all return 1 as well then...? I admit I'm not always clear if I'm fighting my lack of understanding, or flakey behavior in OI, when it acts in unexpected ways. For e…
-
Thanks! How should the record/variable containing the source code be delimited: @TM, @FM? I can't seem to find this information in the OI documentation for COMPILE anywhere.
-
Sorry for the duplicated list numbers. The numbers weren't showing up in the preview, so I typed them in manually - and now they're there twice...!
-
This is where I'm stuck right now. I have modified the code to look like this: FOR I = 1 To 5 I_BUTTON = OPTIONS:".RADIO_":I OT = Field(OPTION_STRING,",",I) IF Len(OT) Then OT1 = OT[1,MAX_BUTTON_STRING_LENGTH$] Set_Property(I_BUTTON,"T…
-
Well, it's almost working. All other bugs in the form seem to have been resolved, and the radio button is turned on and off properly depending on the situation. However, the radio button text stubbornly refuses to change. I do GOSUB DO_BUTTONS …
-
Thanks all. I'll test it later today. To your point Don, I've been moving the radio button around already :-) - I shrink the form and expand it based on the number of rows and columns displayed, then determine where to place the radio button contr…
-
I was trying that, but it seemed that it would only turn off the entire control, or do nothing. The examples in the documentation are a bit sparse. In your code, how are you telling it which options to turn off?
-
I should have specified. Yes, the number of radio buttons. The form is called by another subroutine and one of the subroutine's inputs is the choices available in a comma-delimited list. There won't be more than 5 choices. I'd like to be able to cre…