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 - Peter.Higgins

Pages: 1 ... 3 4 [5] 6 7 ... 9
61
Programming / Question on key padding
« on: September 16, 2020, 11:22:56 AM »

From working with multiple keys I've learned that external keyed File keys are space padded and internal keyed Files keys are null padded.  Will the FIB "Extended Key Attributes" byte "Null character for NULL keys" affect the key padding or is this only for determining whether to write the key or not?

(6,2)
$0001$ Unique key
$0002$ Convert segment to uppercase
$0004$ Convert segment to lowercase
$0008$ Convert using translate table
$0010$ Swap byte order
$0020$ Primary key allows duplicates
$0040$ Don't add key if the segment is null
$0100$ Don't add key if all segments are null
$0200$ Binary auto-increment key
$0400$ Ignore data after $00$
$0800$ Zero-filled auto-increment
$1000$ Space-filled auto-increment

(8,1) Null character for NULL keys ((6,2)=$0040$ or $0100$)

62
Programming / Question on a structure string
« on: September 16, 2020, 10:34:34 AM »
Curious why the following is true for parsing a FIB record?
Version 17,  1410-664

DIM cFibRec$::"RecordCnt:C(3),Name:C(6),Format:C(1),ExternalKey:C(1),MaxRecs:C(3),RecordSize:C(2),KeyedFileFlg:C(1),threshold:C(1),FileType:C(1),ExternalHandle:C(1),Unusedfields:C(4),Path:C(60),KeySegments:C(384)"

This works to parse the record.
X$=FIB(WRK)
cFibRec$=X$

This does not work.
cFibRec$=FIB(WRK)
Anyone know?

63
Programming / Re: LIST OF OBJECTS
« on: August 18, 2020, 05:40:22 PM »
Thanks Josh,
I saved your answer for a rainy day.  Hope you are doing well.

64
Programming / Putting time out on an object
« on: August 18, 2020, 05:26:41 PM »
Wondering if anyone has attempted a time out on an object.  Contemplating an extract on a file record using an object file to be cleared by the object shutting down if not shutdown during normal processing.  Any ideas??

65
Programming / Re: mysql read / key position
« on: August 18, 2020, 05:21:54 PM »
Issue the read as SQL rather than fighting the emulation.

66
Programming / Composite string questions
« on: May 27, 2020, 12:19:48 PM »
Hi List,
Having difficulties getting composite strings within a test object to work.
File are opened object input but I have also tested open input and open. 
I am testing for some composite strings as local scope and others to be within the procedure scope.
The odd thing is that when composite read record lines from non object programs are used, the file iolist is populated with data, and the variable has the complete record, and lst(iol(rec$)) returns the IOLIST, even though the composite string returns nothing. 
testing in Ver 2017
Is using a composite string in an object possible?

67
Language / Re: web/ftp regex question
« on: April 15, 2020, 02:58:22 PM »
Thanks Devon,
You are right.  Works great without the ^$
I'll sub those out in the Filter setup field validation and we are good to go. 
Have a terrific day.

68
Language / Re: web/ftp regex question
« on: April 15, 2020, 01:00:22 PM »
Devon,
Understandable.  What if anything can I do to debug this.   This program is encrypted. 
Do you know if the msk is applied in Curl or in the program itself?


69
Language / Re: web/ftp regex question
« on: April 15, 2020, 11:18:25 AM »
Devon,

This is the version in use.  Should it support MSK in web/ftp?

PxPlus-2017 Pro (Ver:14.00/UNIX-Linux-RedHat) Serno:1400-664-
(c) Copyright 2005-2017 PVX Plus Technologies Ltd. (All rights reserved)
  Website: http://www.pvxplus.com
->

70
Language / Re: web/ftp regex question
« on: April 15, 2020, 10:35:45 AM »
Thanks Devon, 

Shades of Manifest.  I seem to have lost 3 years.  :o
Are we discussing this year's Direxions version for implementing the msk?

PxPlus-2019 Web (Ver:16.10/MS-WINDOWS) Serno:1610-001-
(c) Copyright 2005-2018 PVX Plus Technologies Ltd. (All rights reserved)
  Website: http://www.pvxplus.com
->?ssn
1610-001-
->

71
Language / web/ftp regex question
« on: April 14, 2020, 07:32:46 PM »
We have been using the web/ftp with the regex option in an INVOKE command.
With simple *.extn  and *.* it works.
There is now a need for using more complex regex and I am not having success returning files.
Version is 14.00 PxPlus.

For instance, in web/ftp
*.gfs|B0M works as a mask in web/ftp but not in PxPlus
^g[0-9]{6}c313260[0-9]*\.gfs|B0M does not work as a mask in web/ftp but works great in PxPlus.
I have tried putting the -'OM'=0 in the invoke statement which has no affect.
Can anyone explain how this works in web/ftp?

Example with an actual file name.
0001 msk$="^g[0-9]{6}c313260[0-9]*\.gfs"  ! "|(^g[0-9]+c313260[0-9]*\.gfs)"
0002 x$="g200410c31326001000000000322285095.gfs"
0003 PRINT MSK(x$,msk$)
0004 PRINT MSL
-;run
 1
 38
-;

72
Language / Re: Unique alternate key question.
« on: February 19, 2020, 09:22:59 AM »
Thanks Mike,
   
The original creator of this key obviously had not worked with record scrolling in BBX emulation mode or they would have known how good an idea that is.
 

73
Programming / Re: Composite string questions
« on: February 14, 2020, 01:58:53 PM »
Mike,
Where the manual is unclear if composite strings support substrings.
Manual.pvxplus.com
DIM > Format 2> Define Composite String
Composite Strings vs. BBx® Templates

The system does not currently support subscripting with composite strings.

Perhaps this applies not to substrings but to arrays??

74
Programming / Re: Composite string questions
« on: February 10, 2020, 02:36:16 PM »
Mike,

I am adding new programs onto some old code that writes string record followed by numeric arrays.
The calls and objects usually get the entire string record portion even when only one field is used.
New work is designed to be more maintainable by use of record IO and composite string variables.
These generally have to be integrated with the existing calls. 

Passing composite strings into lightly modified sub calls/objects would be helpful if this is an actual supported feature. My testing indicates this maybe possible, but the documentation says otherwise.




75
Programming / Composite string questions
« on: February 10, 2020, 10:15:19 AM »

Is the documentation up-to-date re sub-scripting with composite strings?
Is there a convenient way to determine if a variable has been dimmed as a composite string?

Pages: 1 ... 3 4 [5] 6 7 ... 9