PrestwoodBoards: www.PrestwoodBoards.com

www.prestwoodboards.com

ObjectPAL Topic

Programming in Paradox / ObjectPAL.
 Show:
New Activity New Threads Oldest Unanswered Most Active Most Read
  


25 Threads:

Add New ThreadRandom Thread

Thread 25 of 25
Thread Starter  

csgPdx
How to get all files on a drive
I am sure that at one time I had a script or form that would give me a listing of all the files in a directory, including subdirectories. (Perhaps it was just on my todo list.) It would, of course, have involved enumFileList and recursive routines. I would appreciate if anyone might point me to such a utility. I am not finding what I need otherwise out on the internet. Thanks, NK
11/4/2019
2 replies. Last post:

Stan.D
The enum can loop down through the system. I use shellExecute and do a dir > list.txt. geometry dash full game
11/7/2019
Nothing New Since Your Last Visit
46
Hits

Thread 24 of 25
Thread Starter  

SamSpade
trouble using SendDLG() on 2016 RDS svr W/ Outlook
I am starting up a new 2016 RDS server to replace a 2008 R2 Terminal server running a Paradox 11 App. I am having trouble using the M.SendDLG() command, which runs fine on The 2008R2 server. I get a windows error about the default email client and to open Outlook and set it as default I have opened outlook and set it as default I have also set it in control panel default programs and through settings default programs Both servers are running Outlook, the 2016 server where the problem is occuring is running Outlook 2019. There is also a Paradox errormessage that simply says "Main".  I think thats the errorShow for the M.SendDLG() Anyone else run into this?
10/1/2019
Nothing New Since Your Last Visit
60
Hits

Thread 23 of 25
Thread Starter  

rum
OPAL to DISPLAY QB Tool
hello,   This must be an oversight(or Alzhiemers) on my part. How do I open a query using ObjectPAL  and display it in the query editor so that I can modify? For a table I do the following var,    t string, endvar t = editTableList ; (THIS IS A NAME FROM LIST OF TABLE NAMES) dlgRestructure (t)
7/18/2019
6 replies. Last post:

Jeff.R3
Thanks Jay,  but you misunderstood the question.  I dont need the text,  I need the designer to open and display for a query that was pre-designed and saved. In OPAL, var Q Query endvar q.readfromfile("c:\\temp\\somequery.qbe") ; now, i want q.displaydesigner() or q.restructure(), or menuaction.newquery(q) or any other of things I haven't found thanks, Jeff
7/19/2019
Nothing New Since Your Last Visit
87
Hits

Thread 22 of 25
Thread Starter  

Klepsis
formatted memo question
I have a form field which I would like to use to modify a formatted memo table field without giving the user direct access to the underlying table.  I can get the table field to display in the form field, but when I try to update it the formatting doesn't seem to work.  (tab and enter keys take me out of the form field).  I have tried both undefined and defined field creation and the only difference is that I have to press F9 when entering text into the defined field version.  How do I enter formatted text into this field?
6/21/2019
7 replies. Last post:

Eugene.W
OK.  The Shift F2 makes it work like I thought it should.  I'm sure that that is somewhere in the reference manual and I've been glossing over it.  I'll need to include a text reminder on the screen above the field in order to have the users update the field properly, :-)  but that's no biggie.  Thanks for the help.  
6/22/2019
Nothing New Since Your Last Visit
83
Hits

Thread 21 of 25
Thread Starter  

afhynes2
ObjectPal msgQuestion
I have not done any script writing for many years and my memory isn't what it used to be. In one of my scripts I have a msgQuestion that brings up a dialogue box. The default answer in the box is "Yes". Can I change it to "No" because that is the prevailing answer. Rarely do I need to select "Yes"
5/28/2019
2 replies. Last post:

jochen.h
Why don;t you just change the text of the msgQuestion so that the defaulty answer is Yes ???
5/30/2019
Nothing New Since Your Last Visit
90
Hits

Thread 20 of 25
Thread Starter  

Cottage Builder
Passing a variable in an export process
HI folks, I have the following code with a form;             exportASCIIVar(":RSA:Mailing Emails.db",":RSA:Reports\\Temporary Mail List.csv", "\t","\"",False,True), ,             MsgInfo("Well Done","The E Mail List for "+s+" has been updated.") S has been populated before this point, but I would like to replace "Temporary Mail List.csv" with a file name made up of the value of s, plus ".csv" Does anyone have any suggestion?
5/18/2019
1 Reply:

Steven.G
s = ":RSA:Reports\\Temporary Mail List.csv" exportASCIIVar(":RSA:Mailing Emails.db",s, "\t","\"",False,True) if that's not what you meant, you'll have to explain differently
5/21/2019
Nothing New Since Your Last Visit
97
Hits

Thread 19 of 25
Thread Starter  

ForestCat
Export All Custom ObjectPal Code?
Hi, It's probably asking a lot, but is there some way to get a nicely formated (indented) document  listing all the ObjectPAL attached to a form?  Thanks for reading
3/20/2019
2 replies. Last post:

Neil.N
 Thank you, Steven, that's awesome.  Of course I feel stupid that the capability is built in to the language itself and I didn't find it.  I was looking for it in the ui, but alas, it was burried in the 1000+ pages of paper manuals I got (and still have) w/ Borland Paradox For Windows in '93.  Ah those were the days ;-)
3/20/2019
Nothing New Since Your Last Visit
203
Hits

Thread 18 of 25
Thread Starter  

Andrew.G
Adding Breakpoint causes Paradox to close
{Too Long!}
1/25/2019
6 replies. Last post:

Steven.G
something to avoid? nothing that we know of.. computers aren't perfect.. stuff happens copy/paste? yes, that's what I've done.. I had to re-create a very complex form last year, for a client.. one piece at a time, test it, move on.. never found a specific piece that would fail.. eventually, it was all done, and I could finally make changes that they'd needed for several years
1/28/2019
Nothing New Since Your Last Visit
326
Hits

Thread 17 of 25
Thread Starter  

PS_291
LSL Dependency Problem - Pdox7 to Pdox11 Upgrade
{Too Long!}
8/16/2017
9 replies. Last post:

John.O2
Cheers! If only the port away from pdox could go a easily, but hey- I'll take Win 10/Server 2019 compatibility in the meantime!
1/17/2019
Nothing New Since Your Last Visit
994
Hits

Thread 16 of 25
Thread Starter  

Lothar.K
ObjectPAL version incompatable...?
Howdy, I run Paradox 9, under Win 10. I made a minor edit to a particular report. Let's call it Report1. Typically, I print that report using code that is on the doubleclick of a field on an MRO on a form called Form1. Now, when I launch Form1, and doubleclick on the appropriate field in the MRO, I get the error: "The objectPAL version used in this form is incompatible with this version of Paradox. You must recompile from source." So, I opened the form in Edit mode, viewed the code on the field's doubleclick, saved it, and delivered it. Next, I did just that for Report1. I relaunched Paradox, and also rebooted the system, but still get the error. In addition, I can launch the report, and can print it manually, with no problem. How can I correct this error when trying to use the code to do the printing from Form1? Sincere thanks, Lothar
1/11/2019
2 replies. Last post:

Lothar.K
Hi Steven, I thank you for your suggestion and did try it. While experimenting, I stepped through the code, and found something odd, that allowed me to tweak it. With that, all worked well. So though I had success, I confounded the experiment, and I don't know which of the tweaks corrected things. In any case, as before, sincere thanks, Lothar
1/11/2019
Nothing New Since Your Last Visit
270
Hits

Thread 15 of 25
Thread Starter  

assure
OBJECT PAL WITH INTERBASE
hello , , I would Like to know where I find examples of Object Pal , , Thank you Big Grin!
11/23/2002
8 replies. Last post:

Jim.S6
I think I found it. Its in Programs(x86)Paradox\Template\classic. At least all the database tables are there.  THANK YOU SOO MUCH
1/5/2019
Nothing New Since Your Last Visit
2369
Hits

Thread 14 of 25
Thread Starter  

Lothar.K
Debugger NOT Debuggin' (It's Blank...)

Hello,

I just entered a breakpoint in some code I have, but then, when I ran the code, the Debugger dialog launched, but it did not populate. It is completely blank.

I have no idea how to proceed (but I do have a large mallet at the ready.)

Thanks for any suggestions,

Lothar

12/20/2018
4 replies. Last post:

Lothar.K
{Too Long!}
12/21/2018
Nothing New Since Your Last Visit
235
Hits

Thread 13 of 25
Thread Starter  

Sam.S
Accessing an FTP with filesystem in ObjectPal
{Too Long!}
3/16/2017
Nothing New Since Your Last Visit
1819
Hits

Thread 12 of 25
Thread Starter  

objectpal123
Closing TCursor variables declared within a method
If a variable that is declared within a method goes out of scope at the end of that method, is it really necessary to close a TCursor variable that is declared within a method?
10/8/2018
9 replies. Last post:

Steven.G
my job is to teach "best practice".. and allow for when it's not always worth re-engineering for, like in this situation.. your mileage may vary :-)
10/12/2018
Nothing New Since Your Last Visit
720
Hits

Thread 11 of 25
Thread Starter  

Pete.D2
Getting a buttons labeltext
I'd like to use a button's label in the code in the pushbutton event. Prerably I'd like not to name the button because I have a lot of these buttons that need the same treatment. I tried msgInfo("", this.labeltext) to try to get the right syntax to obtain that info but I didn't get anywhere. Tis is possible, right?
7/31/2018
5 replies. Last post:

Pete.D2
My boss dug this up: method GetLabel(slf uiobject) string var,    a1 string,    ui uiobject , endvar a1 = slf.first, ui.attach(a1), a1 = ui.value return a1 endMethod and call it on the pushbutton with "GetLabel( self)"
8/1/2018
Nothing New Since Your Last Visit
585
Hits

Thread 10 of 25
Thread Starter  

Pete.D2
Making an array universally available
Hi Gang, If I need to make sure an array is seen through a form and to any called methods, say in a library, how is that achieved? Pete
7/30/2018
2 replies. Last post:

Pete.D2
tx!
7/31/2018
Nothing New Since Your Last Visit
442
Hits

Thread 9 of 25
Thread Starter  

rum
Screen Resolution and Resize Control
{Too Long!}
7/19/2018
Nothing New Since Your Last Visit
437
Hits

Thread 8 of 25
Thread Starter  

rum
Export table to spreadsheet
exportSpreadsheet Does anyone know of an alternative method to export data from a table to a spreadsheet? I am currently using this,   exportSpreadsheet ( const tableName String, const fileName String [ , const makeRowHeaders Logical ] ) Logical but it has some extreme limitations,  such as FONT control and the number of lines you can export.
5/22/2018
27 replies. Last post:

andwye
I do understand and that's why I'm installing a Filemaker system but it's taking time to replicate the versatility that we have with Paradox. Such a shame!
6/28/2018
Nothing New Since Your Last Visit
883
Hits

Thread 7 of 25
Thread Starter  

Pete.D2
How to evaluate/construct variables?
I need to be able to loop through a set of variables, say F1 through F3 using a for loop. To be able to do this I need something like this: f1 = "hello" f2 = "hi" f3 = "Goodbye!" for i from 1 to 3     msgInfo( "",  m.( "f" + string(i) ) ) endFor Where the variable name is constructed from its parts. The syntax for the evaluation here is wrong. What's the correct way? Pete
6/28/2018
2 replies. Last post:

Pete.D2
Almost as good! Thanks Steven.
6/28/2018
Nothing New Since Your Last Visit
415
Hits

Thread 6 of 25
Thread Starter  

davidc
Search multiple Scripts
Howdy, Is there a way to search for something (a variable name, for example) across multiple scripts (and each section of those scripts, like run, var, proc, etc.)? In the ideal world, I'd like the output to be something like:    script1.ssl   proc   1732   the line of code with the search phrase I suppose I might have to write my own script to do it - but was hoping for something easier. (My big project has code split across several scripts because of the size limitations built-in to Paradox.) Thanks, David
4/29/2018
3 replies. Last post:

dcheney
{Too Long!}
5/26/2018
Nothing New Since Your Last Visit
722
Hits

Thread 5 of 25
Thread Starter  

Lothar.K
Code to delete record's last character
Hello, This would seem pretty simple, but... I have some code that generates a CSV file that I then export to my phone. I need to tweak the code so that it looks at the last character of each record, and then deletes that character if it is a comma. Might you point me in the right direction to do that? I'm stumped. Sincere thanks, Lothar
5/15/2018
14 replies. Last post:

Jeff.R3
We have another office in Mount Pleasant(sullivans Island), maybe I will visit that office again
5/15/2018
Nothing New Since Your Last Visit
397
Hits

Thread 4 of 25
Thread Starter  

Lothar.K
Field text displays in REVERSE?
Howdy, I have a multipage form that has a significant amount of code on it. One of its fields has started to display its newly entered text in reverse order of the keystrokes. So if I type KEYSTROKES immediately after entering Edit mode what appears in the field is SEKORTSYEK. If I enter Edit mode, and pause for a few seconds before typing, all is well. I have no understanding about how to diagnose and correct this problem, so would welcome any help. All the best, Lothar
3/16/2018
3 replies. Last post:

Steven.G
maybe the printer "collate" function is bleeding thru :-)
3/18/2018
Nothing New Since Your Last Visit
641
Hits

Thread 3 of 25
Thread Starter  

tlegends
Variable with value of reserved word query
{Too Long!}
2/28/2018
10 replies. Last post:

tlegends
Excellent! That worked perfectly! Thank You
3/1/2018
Nothing New Since Your Last Visit
655
Hits

Thread 2 of 25
Thread Starter  

Socrates
Printing
I have a form set up which prints three different reports. Im wondering if there is any way of using the pring function without the print box coming up asking you about all your preferences. Can i just print it straight?
6/11/2001
Nothing New Since Your Last Visit
1243
Hits

Thread 1 of 25
Thread Starter  

Leo
updating table from table with TCursor
{Too Long!}
1/2/2003
Nothing New Since Your Last Visit
4685
Hits

New Thread
www.prestwoodboards.com
Copyright (C) Prestwood IT Solutions.
All Rights Reserved.
Printed 12/10/2019