If its of any help to others I have found a solution (code below).
Sure the code is very basic but it works and could be a basis to improve on.
---------------- Code ------------------
SortPIC Routine !For 6 Lotto numbers
LOC:SortToDo=TRUE
LOC:Temp = 0
LOOP
IF LottoNumber[1] >...
Does anyone have a function that will sort 6 Lotto numbers low to high.
Example: From this 21 32 36 01 38 05 to this 01 05 21 32 36 38
I recall a function in BASIC which done this, it included the SWAP command which Clarion 6.1 does not have and I can not seem to find an alternative...
I have an application (C6.1 legacy) that has been running trouble free for many years but now, and only now with Windows 10 it stops responding on the browse's Add/Update window. It only seems to occur if the Add/Update window is left open and not in use for a period of time.
Its as if the...
I have a legacy C6.1 app and allow the user to optionally create a CSV header using this code....
! Start of "Beginning of Procedure, After Opening Files"
! [Priority 3500]
!Create Header
CREATE(MH_Export)
OPEN(MH_Export)
CASE MESSAGE('Add a file header...
Greetings all
I have an app compiled in Local with no associated DLL's and all the apps data files, program (everything) is in the same folder. (Compiled in Clarion 6.1)
The app appears to run fine on a USB memory stick but I just wondered if I am missing something as I have not tested it on...
Not to sure if its the best way but it works for me...
1. Place a 'Progress control' on the window (Use var defaults to 'Progress1'.
2. When the button on the window is pressed that initiates the COPY command I have the following code at the buttons 'Accepted' embed point. In my case I am...
If using the Clarion COPY command you can place a PROGRESS control in your app to indicate progress to the user (see PROGRESS in the help). If you are exiting to DOS to Copy (ie. a batch file) then you might consider looking into using the Clarion COPY command within you app instead?
I have a legacy C6.1 app which has been running fine since 2001 but I have now found that in Windows 7 if the [Alt] key is pressed on an MDI update window the program freezers (hangs).
Alt+Esc seems to get me back OK but I am unable to find a reason why it hangs?
With Windows XP using the...
For those interested in this problem it appears not. I have obtained the result I wanted though hand coding, it was just that I preferred the calculation to be made by Clarion.
May I suggest you have a look at file relationships and how to set them up in the DCT because the way I understand it is if a record is deleted the action can be made to Cascade to the related file.
I have a C6.1 ABC app and on the report footer I have Clarion calculate the Max and Min values of a numetric variable. The problem is that the variable is not a 'Required' field therefore for some records it can be omitted and results in the Min value being reported as zero.
It is these blank...
I omitted to mention... or would I be better off having both an A4 and Letter size of the same report within the app and have them conditionally called?
I have a C6.1 ABC app with reports designed for the 'A4' paper size (default). Prior to printing a report I would like to be able to allow a user to select the 'Letter' paper size. I thought I might just use a GLO:Variable to define which size the report is to be.
I appreciate I need to use...
If you are just wanting to export to a CSV file from a report I normally create a BASIC file in the DCT for the fields required then within the report itself as the records are processed you ADD(ToBASICfile). Hope this is helpful.
My question was a bit misleading. I see now it is the Job Name I want to change REPORT(jobname) not the WMF file name and if its of any help to anyone else I think I have found a solution.
Legacy embed 'After Opening the Report'. ie.
LOC:RptJobName=INV:CustName
REPORT{PROP:Text}=(LOC:RptJobName)
Greetings all - I have a C6.1 Legacy app and would like to RENAME the WMF file for a single page report that is printing a single record only. I do not need to save this file and it can remain as a temp file and be removed as normal when the report is closed.
From the Print Preview it is being...
Ref from Clarion help:
Error 80 - The file driver has detected a file access statement that is not supported. This is frequently an unsupported form (different parameters) of a statement that is supported.
ie. Are you trying to use a Key or other unsupported access statement with a Basic file...
Thank you very much cagiv. I have it working now however if its any help to anyone else further to my question I found that if the check box was unticked, another Radio option selected, then the check box ticked again SELECT() was useful. ie.
IF loc:check then !checkbox is ticked
loc:option...
I have a C6.1 Legacy app.
Q. I want to select (prime) a certain Radio Option from a group if a certain Check Box is ticked. It can remain selected if the Check Box is un-ticked.
I thought this would be an easy task but it is really testing me.
Thanks.
Just in case it's of any help to other users with this issue I have solved the problem by creating a new report. In my case I now read the Member Types file (normally very few records) and have the report LOOP through the Members file to count the members assigned to each type.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.