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 - Mike King

Pages: 1 ... 56 57 [58] 59 60 ... 65
856
Language / Re: Parameter Questions
« on: October 31, 2018, 08:33:09 AM »
Regarding the 'F,' parameter, it only impacts PRINT statements with format specifications, not the STR function.  Is that possibly what you are seeing?

->print 123456789.01:"##,###,##0.00"
Error #43: Format mask invalid
->x$=str(123456789.01:"##,###,##0.00")
Error #43: Format mask invalid
->set_param 'f,'
->print 123456789.01:"##,###,##0.00"
 123456789.01
->x$=str(123456789.01:"##,###,##0.00")
Error #43: Format mask invalid


The STR function has both an error branch and ability to provide an alternate output which is why the parameter is not used.  It could cause application logic problems.

857
Nomads / Re: change caption using titlebars
« on: October 30, 2018, 08:38:26 AM »
When we introduced these at the DireXions conference, we suggested that you start by copying an existing titlebar definition so that the control names and logic would be correct. 

Unfortunately the logic needs the controls in the header to have specific names otherwise it will not function correctly.

858
Web Services / Re: Error Compiling mod_inomads.c
« on: October 25, 2018, 11:30:04 AM »
I made some additional changes to the module and it now fully clean compiles on my Centos system (no warning)

I uploaded the new source to https://home.pvxplus.com/downloads/misc/mod_inomads.zip

Please give this one a try.

859
Wish List / Re: Enumeration Sequencing
« on: October 25, 2018, 10:57:55 AM »
James, have you considered creating a simple object to do this as in...

Code: [Select]
  def class "enum"
  function Integer(*)do_enum
  function Binary(*)do_enumbin
  end def
 !
 do_enumbin:
  bin=1
 do_enum:
  x$=stk(properties)
 !
  if x$="" \
   then return
 !
  if pos("N"^x$)<>0 \
   then def msg(201)="Non-numeric variable passed to function";
        exit 201
 !
  n=1
  for i=1 to len(x$)
  vars$+=",v"+str(i)
  vals$+=str(n)+sep
  if bin \
   then n=n*2 \
   else n++
  next
 !
  vars$=cpl("iolist "+vars$(2))
  enter iol=vars$
  read data from vals$ to iol=vars$
  return

It could then be used like this:

-:list
0010 BEGIN
0020 LET oEnum=NEW("enum" FOR PROGRAM)
0030 oEnum'Integer(a,b,c,d,e)
0040 oEnum'Binary(x,y,z)
0050 DUMP

-:run
! ERR=0, CTL=0, RET=2
! **********************************************************
! Level=1
! PGN="<Unsaved>"
!  Statement......0050
a=1
b=2
c=3
d=4
e=5
oEnum=100001
x=1
y=2
z=4


You could also add a 'Clear function to set all the values to 0 if desired in response to Thomas Bock's request

860
Nomads / Re: Folder Control
« on: October 25, 2018, 10:30:41 AM »
List boxes can be defined as "Smart" which means their contents will be loaded directly based on a query definition.  What you do is first create a Nomads query that defines the data you want loaded, then define this query as a Smart Load for the list box.  If desired you can specify triggers as to when the query is to run and/or be refreshed along with data to pass to the query so the contents can be filtered.

We did something like this in the "Bells and Whistles" portion (Part 5) of our Live in 30 video presentation on this forum.  While this was actually targeted for iNomads, the exact same logic works in plain Nomads as well.
(The Nomads screens in the video are from a prior release but the setup/functionality is the same on newer versions)


I am not certain what you asking about when you mention Folders, perhaps you can clarify.

861
Web Services / Re: Error Compiling mod_inomads.c
« on: October 22, 2018, 11:28:42 AM »
To avoid any confusion I have attached an updated mod_inomads.c to this posting

862
Web Services / Re: Error Compiling mod_inomads.c
« on: October 22, 2018, 10:57:56 AM »
Clay, the error appears to be that BOOL is not defined.

Please insert the lines in blue below around line 29 in mod_inomads.c

#include <unistd.h>

#if defined(BOOL)
#else
#define BOOL int
#endif


int MyMemicmp(const void *s1, const void *s2, size_t n)


You should then be able to re-compile.

Note: Due to some newer changes in the GCC compilers on Linux you will receive some warning messages but they will not prevent the logic fro compiling/working.

863
Thin Client/WindX / Re: Windx Licensing Issues
« on: October 18, 2018, 10:50:29 PM »
You probably should contact the reseller that sold you PxPlus for support on this however it may be that you need to set the terminal type to “winterm”.

Also we don’t recommend using telnet but rather suggest using ssh for security.

864
Nomads / Re: dropbox style
« on: October 18, 2018, 09:59:48 AM »
Unfortunately the drop box look on Windows varies between Windows versions and applications as Microsoft itself is somewhat inconsistent. 

For example if you go to Word and select the settings screen, the drop boxes there are different than the drop boxes in the file open dialog used by Word.  Add to this drop boxes on web pages also look different when using either Microsoft Edge as opposed to Microsoft IE (see it yourself at https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select).

Complicating this more is the fact we allow you to control the color of the drop box, both the drop area and the list items along with the hover color for list when displayed.

Basically there is no "Standard" look for drop boxes as it varies between OS releases and products.

865
ODBC / Re: MySQL write via ODBC
« on: October 17, 2018, 10:49:36 PM »
The system generally determines if the record already exists by detecting an error on an INSERT SQL command.  Make sure your table definition includes a constraint on the primary key that it must be unique.


866
Off Topic / Re: ITACIT interface
« on: October 12, 2018, 08:15:14 AM »
You should be able to use the *plus/web/request to submit requests to their service if they are using REST.  The challenge is knowing the correct URL and parameters to send along with formatting/parsing any data which likely will be JSON or XML -- both of which PxPlus has built-in generators/parsers for.

867
Nomads / Re: (x) on buttons
« on: October 11, 2018, 04:24:19 PM »
There must be an "x" (lowercase X) on the option list for the button for the (x) to appear.

There was a error in older ProvideX systems which occasionally would add this option to buttons which at the time was harmless and ignored, but on newer PxPlus versions causes the "X" to appear.  You can fix this by deleting and recreating the button in Nomads.

868
Programming / Re: provide many PNGs to WindX
« on: October 10, 2018, 12:10:20 PM »
As a point of clarification on PLUSLIB libraries;  These are Windows Resource library DLLs, and there is no PNG type of resource directly supported by Windows. 

When we create a DLL using PLUSLIB.DLL we place all data in the DLL as raw binary data and then treat the library as a collection of files.  For PNG files we rely on external utilities that expect to be able to directly read the PNG data from disk.

869
Nomads / Re: External-Only Data Elements
« on: October 09, 2018, 01:53:07 PM »
An external only element can be placed anywhere however in general i suggest trying to avoid using external only fields.

870
Programming / Re: Spell check issue
« on: October 03, 2018, 10:39:54 AM »
This appears to be something with aspell itself as generally for almost any sequence of characters aspell will have some suggested replacement words yet for some reason it simply rejects words starting with TEST.

While cannot fix aspell itself, we have made some changes that we think will address this issue.

Please download and try replacing *plus/spell/spell with the file found in https://home.pvxplus.com/downloads/misc/spell

Pages: 1 ... 56 57 [58] 59 60 ... 65