PxPlus User Forum

Twitter Twitter Twitter

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ken Sproul

Pages: [1] 2 3 4
1
Language / Re: Maximum Number of Columns in a Report View List Box
« on: February 14, 2024, 02:00:05 AM »
Thanks Mike! That was the issue.
I added logic to calculate the total standard column widths in pixels and scale them down by percentage when the total exceeded 32767.


2
Language / Maximum Number of Columns in a Report View List Box
« on: February 11, 2024, 07:38:07 AM »
There seems to be a limit to the number of columns a report view list box can have but I couldn't find any documentation for the limit.


I defined a list box with 267 columns. The first column is defined as S0 (not visible).
While scrolling to the right, the headings stopped scrolling at the 180th visible column.
However, the data for the remaining columns continued to scroll and display.


Is this a limit or a bug?
Is it pxplus or Windows?


Attached is a txt file containing the string used in the fmt= option.

3
Programming / Re: SMS Provider
« on: October 19, 2023, 03:15:52 PM »
Hi Chris,


I created an interface in our custom notification system to Clickatell ([size=78%]Clickatell.com[/size]). It was easy to do and worked as expected. You'll have to determine whether it's a good deal or not.

4
Language / Re: How to pass a com object string property greater than 32k?
« on: September 22, 2023, 01:24:49 AM »
Stéphane,


That's exactly what I needed!
It seems that setting more than 32k is not an issue for some reason.


Thank you!


In case it helps someone, below is the code I used:
get_html_value:
html_value$=html'value$
if len(html_value$)=32000 then while html'pvxextdata; html_value$+=html'pvxextdata$; wend
return


5
Language / How to pass a com object string property greater than 32k?
« on: September 21, 2023, 06:52:21 PM »
I'm using a com object with a string property that I need to pass a value greater than 32k back and forth.
I think there's a trick to this if memory serves, but I couldn't find it.


6
Programming / Re: need to skip the passworded programs
« on: August 18, 2023, 01:43:54 PM »
Jim,


Got this info from program *udv:


passworded=0
open input (hfn,isz=512)"program"; read record (lfo)r$; close(lfo)
if and(r$(90,1),$01$)=$01$ then passworded=1


7
Programming / Re: Accessing a Control on Another Dialog
« on: August 09, 2023, 06:36:14 PM »
Are you doing a 'goto'(the_window_with_the_control), before trying to access the control?

8
To my knowledge there is no way to increase the key size of a direct file.

9
Programming / Re: Syntax error in IF with string expressions
« on: March 13, 2023, 08:47:49 AM »
Should have included these in my previous reply.


To do "a$ or b$":


if a$+b$ then ...


To do "a$ and b$":
if a$ then if b$ then ...


Hi James,


The "test" I'm referring to is with a "let" statement, I just omitted the "let":
let x$=a$ and 1
etc.


10
Programming / Re: Syntax error in IF with string expressions
« on: March 13, 2023, 08:32:56 AM »
Hi Stephane,


I found that the "if string$ " syntax only works when the result of the expression is a string. The manual could be clearer with examples, but it says the if statement can have either numeric or string expressions.  It doesn't say that it cannot have both, but that is implied.  We have to think of and's and or's as part of a numeric expression because they result in a Boolean value, which ultimately is numeric.


The way to test this is whether the expression can be used in a let statement with either a string or numeric variable.
These don't work because they mix strings and numerics:
x$=a$ and 1
x=a$ and 1
These work because they don't mix variable types:
x$=a$
x=not(nul(a$)) and 1
x=not(nul(a$)) and not(nul(b$))


Hope it makes more sense now.


11
Web Services / Re: *web/email question regarding running in background
« on: March 03, 2023, 04:02:27 PM »
Thanks for the info Mike.


I was wondering if it was doing some kind of UI waiting forever for a user response since we had to kill and restart the process to get it going again.  We did however get an authentication error when we tested sending an email in a foreground process, which is how we figured it out.


12
Web Services / *web/email question regarding running in background
« on: March 02, 2023, 06:27:04 PM »
This may be for the PxPlus team.


We have a background process that sends emails using *web/email.
This process is designed to handle any email errors reported by *web/email and continue running.
Recently that background process started hanging.
We discovered that that the email server credentials had changed.
Once we updated the credentials, the process stopped hanging.


So my question is what could be happening inside *web/email to cause the background process to hang instead of simply returning the authentication error?


PxPlus Version: 15.10




13
Thank you to all who replied.

I have the same need to know for *cmd programs which also can be entered at a command prompt or called using code in a program.

What I would like to know is how the program was initiated, either entered at a command prompt or called/performed in a program, regardless of the procedures and arguments that may be involved.

Wish: Maybe a new tcb() flag could be established to indicate this. :)

14
Programming / Knowing a Call from the Command Prompt VS from Program Code
« on: September 06, 2022, 11:03:13 PM »
Is there a way to know whether a program was called by entering the call from the command prompt vs. being called from a program line (such as running it or stepping into it)?


Given this program:
10 ! CALLED_PROG
20 ENTER ARG1$
30 IF SOMETHING THEN PRINT "CALLED FROM COMMAND LINE" ELSE PRINT "CALLED FROM PROGRAM"
40 EXIT


Call made from the command prompt:
->CALL "CALLED_PROG","TEST"


Call made from a program:
1010 CALL "CALLED_PROG","TEST"


What would SOMETHING be at line 30 in CALLED_PROG?


Keep in mind that in both cases, the name of the program being called could be referenced in a variable instead of quoted text.


I've played with the stk() function but that doesn't help if the call from the command line is done while stepping through a program because stk(-1) references the line/program stepped to.


I considered parsing the code pointed to by stk(-1) using lst(pgm(num(mid(stk(-1),1,5)),tcb(12)-1)), but even if the code at that line does in fact call the program, it still may have been called from the command prompt.


The one difference I am sure of is that when calling from a command prompt, there is no "next" statement to execute.  Is there a way to know this?


15
Looks like a great example of what's possible!
I'm interested in knowing about the other opportunities as well.



Thank you Mike!


Pages: [1] 2 3 4