Convert Bytes to Megabytes
Hello,
Can anyone share an example to convert a string variable (cMemSize) whose value is in bytes to megabytes?
An example value might be 258651136
Thanks,
melliott
|
7/29/2010 4:44:42 PM
|
0
|
melliott <u...@compgroups.net/>
|
|
|
Want to know whether the clipper encrypt is used
Want to know whether the following hash key is used to encrypt
300 to ¢À¢Ä¢
hash key:-
eømðueu¦qº¯»
eømðuè}àEØMÜ
If yes, would like to pay someone with clipper skill to write me a small dos program for it.
|
6/19/2010 3:26:06 AM
|
0
|
lau <u...@compgroups.net/>
|
Clipper Job
I am searching for a Clipper Programmer for a W-2 Contract assignment in Tampa, Fl. 6 month+ and pay is open. toalebv@kellyit.com
|
6/10/2010 2:16:56 PM
|
0
|
Brian Toale <u...@compgroups.net/>
|
Clipper 5.3 to Gui
Suggest the best way to convert to full gui with not a short cut but by make a exact replicae of the old dos software which has been running for almost 20 years now,
i have complete source code i wnat to convert it to the gui and back end as sql server/ mysql. i have huge experience in vb/sql/crystal reports. i have taken intreset in clipper becouse of the speed of the software.
clipper some how seems closer to data
plz suggest
|
5/28/2010 6:53:49 AM
|
0
|
ayub <u...@compgroups.net/>
|
Converting clipper 5.3 /ma20 (arabic text display for dos) / to Xharbour
Hi Every body using xharbour, i find this language very fascniting as
i have started learning, and it has been a pleasent suprise.
comming to the point
I am converting an accounting package developed in clipper 5.3 /dbfntx
using 3rd part uitilities to display/print arabic text Musaad Al
Arabic(Codepage 786), I have been able to complie the soure code, ahh
ofcourse by commenting the 3rd party function calls, Like "call
clip_api with "screen arabic,lock""
i suppose i should discard this 3rd party tool to display arabic text
coz i am able to display arabic text using GTvwt lib and set
|
5/28/2010 6:48:08 AM
|
0
|
Ayub <u...@compgroups.net/>
|
Performance
I've been using xHarbour for some time now and have found it generally
faster than Clipper and much faster that Visual FoxPro. In the last few
days I have found some code that xHarbour virtually chokes on. I present a
snippet of code to demonstrate.
procedure main()
secs = seconds()
? 'start', seconds()-secs
use plan
index on plan_id to plan
set filter to ins_type = 'V'
go top
? 'plan indexed', seconds()-secs
select 0
use eligmbrs
set relation to plan_id into plan
set filter to ! plan->(eof())
go top
? 'filter set', seco
|
4/24/2010 3:36:57 AM
|
1
|
Joe Wright <joewwri...@comcast.net>
|
os_iswin7 ?
HI all,
will os_iswin7() function added in future ?
Thanks
|
4/22/2010 2:31:17 PM
|
0
|
"fatfat" <fat...@fatfat.com>
|
Compress / decompress of string funciton ?
Hi all,
is there any comppress/decompress funciton of strings ?
Thanks
|
4/21/2010 2:03:53 PM
|
1
|
"fatfat" <fat...@fatfat.com>
|
thousands separator with the following characters '
Hello,
I like to have the thousands separator like this : 9'999'999.00
If I use the Transform function like this (ARTIKEL->ETIK_STK, "@R 9,999,999" ), it work very well,
Show the number 900000 like this : 900,000
But if I use the following character Transform(ARTIKEL->ETIK_STK, "@R 9'999'999" ) this do not work!
Output look like this : '900'000
It print the first ' before the number!
Does the thousands separator work only with the comma ?
Many thanks in advance for any help.
Regards
Otto
|
4/20/2010 6:12:04 PM
|
6
|
Otto Haldi <oha...@chateau.ch>
|
hash of strings
Hi,
When I do:
myVar := 'ABC'
myVar[3] := 'D'
? myVar returns 'ABD'
hHash := { 'New' => 'ABC' }
hHash[ 'New' ][3] := 'D'
? hHash[ 'New' ] returns ABC
This instruction hHash[ 'New' ][3] := 'D' doesn�t work?
[code]
Function Main()
LOCAL hCh := { 'New' => 'ABC' },;
myv := 'ABC'
hCh[ 'New' ][3] := 'D'
myv[3] := 'D'
? hCh[ 'New' ], myv // return 'ABC' , 'ABD'
? hCh[ 'New' ][3], myv[3] // return 'C', 'D'
return nil
[/code]
I�m using xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6652).
TIA,
F
|
4/20/2010 1:51:31 PM
|
4
|
"FabioNery" <des...@s2info.com.br>
|
xHarbour on OSX - "Hbmake need of the xharbour bin in the path"
Hello,
I just grabbed the latest xHarbour source (1.2.1) and ran
"make_macosx.sh" to build and "make_gnu.sh install" to install. Latest
Xcode from Apple already installed.
Running harbour on a minimal hello.prg generates an OK hello.c file,
but hb-make does not work, as it pops up a window saying "Hbmake need
of the xharbour bin in the path"
Th make install process put all the executables in /usr/local/bin
which I have included in the path, and starting harbour works fine by
itself.
Can anyone kindly shed some light on how to get xHarbour running on
OSX ?
Thanks in advanc
|
4/20/2010 8:09:00 AM
|
2
|
"Halim I." <yalla...@gmail.com>
|
Fedora 9 and xHarbour
Has anyone installed xHarbour on a Fedora 9 linux machine ?
Any installation porblems ? Thanks !
|
4/19/2010 3:06:40 PM
|
1
|
Richard <rcnew...@gmail.com>
|
Terminal GUI 2.6.0.0 for Windows with Linux client released
New version of OTC Terminal for Windows GUI applications has been
released. It includes server for Windows, client for Windows and
experimental version of Linux client.
A completely free 2-user version is available for download from:
http://www.otc.pl/download/default.aspx?l=2
It allows running Windows GUI and Console applications including
xHarbour applications using any of the popular GUI libraries.
New Terminal GUI and Terminal Console contain special extentions for
xHarbour users.
For product description please visit
Terminal GUI (for applications using Windows
|
4/19/2010 11:09:46 AM
|
0
|
Jacek <Jacek.Pote...@otc.com.pl>
|
HwGui - MenuItem
I am converting old Clipper application to harbour. Menu definitions
are in DBF file in character fields in format: Title, Action.
HwGui command MENUITEM doesn't accept in its ACTION option data of
character type eg.
MENUITEM menu->title ACTION menu->action
If I type
MENUITEM menu->title ACTION FunctionName()
it is OK.
Any sugestions ?
Thanks in advance,
Zeka
|
4/17/2010 11:18:19 PM
|
1
|
zeka <zeka...@gmail.com>
|
Question using ADS with xharbour...
Dear Sir,
If I delete adsloc32.dll my programe is not connect to ads. It means
my
programe is only connecting to ads local server ? What I am missing to
use
ads as remote server or as internet server ?
ADS.INI SETTING
***********
[SETTINGS]
ADS_SERVER_TYPE=7
RECORD_CACHE_SIZE=18242880
COMPRESSION=ALWAYS
USE_TCB_IP=1
[DBFSERVER]
LAN_IP=192.168.1.3
LAN_PORT=6252
[DRIVES]
Z:=\\192.168.1.3:6252\ACCT
**************
TEST.PRG
**************
#include "rddsys.ch"
#include "dbinfo.ch"
#include "ads.ch"
PROCEDURE Main ()
LOCAL lCon := .F.
REQUEST ADS
RDDSetDefau
|
4/17/2010 2:11:07 PM
|
5
|
Bapu <dagiayu...@gmail.com>
|
Datecs MP-5000
Hi,
Does anyone know this fiscal cash register?
This brand is not common here (this is the first one I ever
seen...) anyway seems to be a good device.
Any idea how to use it with (x)Harbour? The manual is very short
but it has a serial port adaptor.
Any information is welcome.
Thanks.
Qatan
|
4/16/2010 6:26:01 PM
|
2
|
Qatan <wanstad...@gmail.com>
|
C_getfile from minigui ?
Hi, all
the multiselect of c_getfile only return first 63 item if select multifiles.
how to get grid of the problem ?
Thanks
|
4/16/2010 4:09:20 AM
|
0
|
"fatfat" <fat...@fatfat.com>
|
MySQL prepared statement
Hello,
Has anybody succeded in doing prepared statements from xharbour to
mysql? I can't find the feature un mysql contrib module. The problem
is that I have to send large ammounts of data and, without prepared
statements, performance is very poor.
I also would need to create the connection with compression enabled.
Thanks.
|
4/15/2010 7:01:46 PM
|
0
|
=?ISO-8859-1?B?wWx2YXJv?= <alvarolob...@gmail.com>
|
Factura Electonica para (x)Harbour Mexico.
Hola a todos:
Le informamos que tenemos disponible un componente de programaci�n para
emitir facturaci�n electr�nica de acuerdo al SAT (Servicio de
Administraci�n Tributaria) de M�xico.
El componente consta de:
Archivo DLL con los algorimos de encriptamiento as�ncrono MD5 y RSA
Archivo LIB con los wrappers para las llamadas a las funciones
contenidas en la DLL
Archivos PRG con las clases TFacturaElectronica y TCertificado para
manipulaci�n y generaci�n de las facturas electr�nicas.
Este componente es compatible y est� probado con xHarbour, cualquier
versi�n y con todas
|
4/15/2010 2:49:59 PM
|
0
|
Rene Flores <rflores.no.s...@ciber-tec.com>
|
Impresion de codigos de barras
Busco ayuda a fin de imprimir desde xharbour codigoi de barras
Gracias
|
4/15/2010 1:43:22 PM
|
0
|
ew_rojas <ewilliamroj...@gmail.com>
|
Updating date time on a directory?
When copying files to a "network attached storage" device, the folder
dates are the date the folders were created, and not the dates they
were on the source disk. I'd like to "touch" the folder date and
time, to be the age of the newest file in the folder.
I tried doing this, but it does not seem to update the date and time
of a directory:
<BEGIN>
/*
DIRUPDATE
Updates the directory date and time based on the most current file in
the directory
*/
ANNOUNCE RDDSYS
#include "Directry.ch"
PROCEDURE Main( ... )
LOCAL i
LOCAL aList := {}
LOCAL aThisDir := {}
LOC
|
4/15/2010 5:16:52 AM
|
3
|
dlzc <dl...@cox.net>
|
Using Net Time
Hi,
In my Clipper program we had an option of synchronizing the local
computer date and time with a 2000 server using Net Time command. When
running this from xHarbour it gets ugly as it opens a dos box while
running. Is there a similar Windows API or xHarbour function to get
this functionality?
Thanks
-Jack
|
4/14/2010 6:00:12 PM
|
1
|
Jack <compud...@gmail.com>
|
Converting any Excel sheet to .DBF file
Hi,
I have a small project where database file needed and the records
comes from Excel sheet
Can any one help me to convert excel sheet to database file. I am now
using xharbour 1.1.0
Thanks
|
4/14/2010 4:13:20 PM
|
7
|
arpan <arpangu...@gmail.com>
|
Access OLE
Hi all,
I am trying to import data from a .MDB (Access) file, within a table and
no other stuff, (win environment). The table name was in my test case
"Nominativi-OK".
I tried 2 techniques:
1)With Harbour and hbodbc
Here if I use:
#include "sql.ch"
......
LOCAL hEnv:=0
LOCAL hDbc:=0
LOCAL hStmt:=0
LOCAL cConstrin
LOCAL cConstrout:=space(1024)
....
cConstrin = "DBQ=C:\MYFILE.MDB; Driver={Microsoft Access Driver (*.mdb)}"
SQLAllocEnv(@hEnv)
SQLAllocConnect(hEnv,@hDbc)
SqlDriverConnect(hDbc,cConstrin, @cConstrout)
SQLAllocStmt (hDbc, @hStmt)
SQLExecDirect(hStmt, "select *
|
4/14/2010 2:10:56 PM
|
0
|
"D.Campagna" <retsamt...@danielecampagna.co.cc>
|
ADS rdd
Anyone know any way to accept the ADS site more than 5 users?
|
4/14/2010 1:21:30 PM
|
1
|
Fernando Ribeiro <fcm...@bol.com.br>
|
Web application for data collection using xHarbour
Hello,
I need a web application for collecting data. Is there a xHarbour
sample application that could do that or at least put me on the right
path to building one that can?
Many thanks for any help in this matter.
Ashfaq
|
4/13/2010 9:34:27 PM
|
3
|
Ash <ashfaq...@gmail.com>
|
ADSCDX Error 7075 - Error opening
Good Afternoon,
I migrated to a 5 year behind a program to xHarbour. At the time I
switched NTx to ADSrdd to my tables. At the time, the program ran only
on 3 computers now run on 7. Began to display the following error:
ADSCDX Error 7075 - Error opening - In consultation with the ADS
documentation, I saw that the free version only allows access to a
maximum of 5 terminals on the same table.
Does anyone know a way to circumvent this limit?
[] 'S
Fernando
|
4/13/2010 5:20:13 PM
|
3
|
Fernando Ribeiro <fcm...@bol.com.br>
|
error generate binaries xHarbour (1.2.1) with MinGW
hello,
must generate binaries xHarbour.org (1.2.1) with MinGW, used:
make_gc.bat
the following error occurs:
source/rtl/set.c: In function `hb_setSetItem':
source/rtl/set.c:2222: warning: enumeration value `HB_SET_PATH' not
handled in switch
.....
.....
include/hbrdddbf.h:360: warning: 'hb_dbfRddInfo' declared `static' but
never defined
mingw32-make.exe: *** No rule to make target `lib/gc/libuse_dll.a',
needed by `ALL'. Stop.
thanks
Eric
Developer Systems
www.magaldi.eti.br
|
4/13/2010 2:52:42 PM
|
2
|
"Eric Developer.SP-BR" <emm.develo...@gmail.com>
|
HB_Atx - problem or error in documentation?
Hi,
In program below <nStart> is modifying the result of second execution of
HB_Atx but this is not clear in documentation ("Function HB_AtX() searches a
character string for matching regular expression and returns the found
substring. It is a simple pattern matching function which searches and
extracts only the first occurance of a substring and optionally returns its
position and size in the searched string when <nStart> and <nLen> are passed
by reference"). It�s a behavior normal of HB_Atx ?
FUNCTION MAIN()
LOCAL nStart, nLen, cTxt, cRegEx, cVersao
cTxt := 'inf
|
4/13/2010 2:52:22 PM
|
4
|
"FabioNery" <des...@s2info.com.br>
|
Best GRAPHIC lib for MiniGUI
Dears,
I'd like to give to my programs more beautiful appearance.
Which LIB I must use ?
Which LIB you suggest ?
Thank's Andrea
|
4/12/2010 7:55:25 AM
|
4
|
Andrea <i...@andreaerrigo.it>
|
GTWVW Function copy to clipboard
Hello
I'm using GTWVW to have some windows functions with xHarbour.
I find this function to copy a text to the clipboard : WVW_SetClipboard( cText ). But how can I select one area with the mouse ?
Does GTWVW have a function for this?
Regards
Otto
|
4/11/2010 3:57:52 PM
|
4
|
Otto Haldi <oha...@chateau.ch>
|
Return of function ISDIGIT()
Hi,
IsDigit('0001L') should not return .F. (FALSE) ?
|
4/10/2010 9:31:58 PM
|
23
|
Leonardo <syge...@gmail.com>
|
harbour vs xharbour HB_GC_FUNCS
Hi,
I am trying to compile the harbour hbsqlit3 (sqlite contrib lib) in
xHarbour but the HB_GC_FUNCS symbol is defined only in Harbour so I
can't generate the lib.
Any ideas ?
Is there anyone that succesfull make the porting of the sqlite3
harbour lib to xharbour ?
Thanks in advance
Best Regards,
Marco
Ps. sources availables at www.softwarexp.co.uk/beta/hbsqlit3.zip
|
4/10/2010 5:28:38 PM
|
0
|
Marco <fabio.lo...@gmail.com>
|
DIVERT_CONSTRUCTOR_CALL
Hi,
I downloaded new xharbour 121 and I'm trying to compile and link my
apliaction using msvc,
i got an error:
error LNK2001: unresolved external symbol
_HB_FUN_DIVERTCONSTRUCTORCALL
any sugestions what am I doing wrong ?
Latest bulid was done with xharbour 997
Regards
Filip
|
4/9/2010 10:01:52 AM
|
1
|
fs <filip_stokl...@op.pl>
|
MS Word conversion to and from text
Hello All,
I am trying to write a little .doc to .txt and .txt to .doc
conversion utility.
#define wdFormatDOSText 4
#define wdFormatDocument 0
This works... input doc and output txt
cGetFile := filename.doc
cOutFile := LEFT(cGetFile,8)+".txt"
oWord := CREATEOBJECT( "Word.Application" )
oWord:Documents:Open( cGetFile )
oWord:SaveAs( cOutFile, wdFormatDOSText )
oWord:Quit()
....this does not work... input txt and output doc
cGetFile := filename.txt
cOutFile := LEFT(cGetFile,8)+".doc"
oWord := CREATEOBJECT( "Word.Ap
|
4/7/2010 4:05:09 PM
|
7
|
Robert Campsmith <drrob...@sturec.com>
|
HBComm
Where can I find HBComm Lib ?
I am using xHarbour compiler 1.2.1 (simplex) (rev 6633) and BCC5.5.
I tried with CT3Comm.lib but when I link it I got error:
"'c:\xHarbour\lib\ct3comm.LIB' contains invalid OMF record, type 0x21
(possibly COFF)"
Thanks
Zeka
|
4/6/2010 10:11:44 PM
|
1
|
zeka <zeka...@gmail.com>
|
Check SQL table exists
Can someone explain to me how to check to see if a certain table name
exists in a database?
Does the sql statement on a select return an error code I can check
for?
Thanks in advance,
Mike
|
4/5/2010 4:44:57 PM
|
0
|
Microcosm <csom.m...@gmail.com>
|
FWVW (gtwvw) - license freeware - download
Hi friends !
The FWVW.LIB contains a set of instructions (Classes, functions,
commands) to handle with more ease gtwvw graphics features.
requirements:
xHarbour (COM / ORG)
Windows
gtwvw
screenshot with source code, download:
http://forum.magaldi.eti.br/viewtopic.php?f=7&t=37
Regards,
Eric
Developer Systems
www.magaldi.eti.br
|
4/5/2010 4:03:39 PM
|
0
|
"Eric Developer.SP-BR" <emm.develo...@gmail.com>
|
FWVW (gtwvw) - license freeware - download
Hi friends !
The FWVW.LIB contains a set of instructions (Classes, functions,
commands) to handle with more ease gtwvw graphics features.
requirements:
xHarbour (COM / ORG)
Windows
gtwvw
screenshot with source code, download:
http://forum.magaldi.eti.br/viewtopic.php?f=7&t=37
|
4/5/2010 4:01:05 PM
|
0
|
"Eric Developer.SP-BR" <emm.develo...@gmail.com>
|
Achoice with WVW - possible bug
Below is the description of a problem, with the intention of further
testing.
Ella
---------- Forwarded message ----------
I was looking at the latest version of Free xHarbour and found a
possible bug in GTWVW when used with achoice(). The test program works
correctly without the GTWVW.
Test Program
//----------------------------------------------------
function main()
local x, dataarray[24]
// WVW setup.
WVW_SetMainCoord( .t.)
WVW_SetCodePage(,255)
@ 05, 0 say version()
@ 06, 0 say 'With GTWVW'
for x = 1 to 24
dataarray[x] = 'LINE'+str(x)
next x
|
4/5/2010 11:48:30 AM
|
0
|
Ella <ella.st...@xharbour.com>
|
Self-contained sample to show hb_GetFilesInZip() doesn't work if zip file has R/O attribute
Self-contained sample to illustrate bug
http://www.xharbour.com/bug.asp?id=451
function main()
local cStr := "Lorem Ipsum is simply dummy text of the printing and "
+ ;
"typesetting industry. Lorem Ipsum has been the
industry's " + ;
"standard dummy text ever since the 1500s, when an
unknown " + ;
"printer took a galley of type and scrambled it to make
a type" + ;
"specimen book. It has survived not only five
centuries, but " + ;
"also the leap into electr
|
4/5/2010 8:19:10 AM
|
0
|
hua <hua.bassupp...@gmail.com>
|
send email in Clipper. anyone?
Hi,
My client using old MSDOS application told me he wants to email
invoices to clients.
And he don't want to move from MSDOS to Windoze.
I'm thinking to write a html file of the invoice as logo also has to
come (as i don't think write to pdf is possible in Clipper) and send
the html file using some commandline email sender like TheBat or Blat
or sendmail.
I don't recollect of any library available to send email from Clipper.
Any other better option from anyone who have tried sending email
through Clipper (S87 - 5.3)?
TIH
Pats
|
4/3/2010 7:42:27 AM
|
1
|
pats <pats....@gmail.com>
|
Execute a FORMULA in text variable
Dears,
how can I execute a formula stored in a TEXT variable ?
For example :
CVAR = ((100+20)*2)
if i use VAL it return 0 because VAL convert only number but not
parenthesis.
Thank's Andrea
|
4/2/2010 5:22:54 PM
|
0
|
Andrea <i...@andreaerrigo.it>
|
Sqlite, libs for xharbour ?
Hi all,
I know that a lib to use Sqlite is available for harbour,
just to know if someone moved this lib also to xharbour and can share
it.
Thanks in advance
Best Regards
Marco
|
3/30/2010 2:26:08 PM
|
5
|
Marco <fabio.lo...@gmail.com>
|
Xharbour like Excel
Has someone write an application who works like Excel.
I must create an accounting application that must calculate (in a
grid) some field like Excel (macro).
Can someone help me.
Thank's, Andrea
|
3/30/2010 1:36:53 PM
|
4
|
Andrea <i...@andreaerrigo.it>
|
How to search for a node in an XML-document the easiest way.
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01CACFF8.304C3460
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
In an older version of xHarbour sources (0.99.60) I found xmltest.prg. =
Part of the code I've listed below.
If somebody would have a simple example of an XML-document and how to =
use the parameters cNode, cAttrib, cValue and cData
with it, I'd greatly appreciate it.
I did get it to work somewhat, when I just filled in a value for cNode, =
but that was about it.
Other or better ideas fo
|
3/30/2010 9:00:20 AM
|
2
|
"Gerard" <codg...@yahoo.com>
|
CT3Comm.lib Documentation
Hello Group,
I have xHarbour Professional. Where can I find documentation on
functions in CT3Comm.lib?
Thanks,
Ted
|
3/29/2010 10:06:54 PM
|
3
|
Ted <ted.kobaya...@gmail.com>
|
can executable made smaller?
Hi,
Many years back the 3 prg files were compiled in Summer'87 to create 3
files a.exe - 211kb, a1.ovl - 35kb & a2.ovl - 55kb. Total is 301kb
Now when i xBuild (using Pelles C) the same 3 prg's, i get a.exe -
1270kb
Since i like smaller exe's, Can anyone tell if there are any switches
while compiling to compact the executable? or if BC++ gives better
(smaller) exe's?
Thanks & Regards,
Pats
|
3/29/2010 1:05:48 AM
|
11
|
pats <pats....@gmail.com>
|
hbIDE - on-line documentation-cum-distro update
Hello Everybody
This is to inform that hbIDE, Harbour's multi-platform IDE, has been given
an on-line support muscle with ready-to-use distro including the sources.
Please visit hbide.vouch.info/ and suggest me the ways it can be made more
intuitive and useful for you.
Only first few topics are filled with contents and have done it fast without
caring about the professional look and feel.
<Downloads> section contains ready-to-use hbIDE setup for Windows and and
will be updated with every major commit in the SVN. Present revision no is
14249.
In the coming few days I hope to
|
3/28/2010 8:23:13 AM
|
3
|
"Pritpal Bedi" <prit...@vouchcac.com>
|
Dbseek problem
Hello Group,
I am running in to a problem that has me baffled. I am reading data
from an input file and then performing a dbseek to see if the data
exists in the master database. If the record exists, it writes it a
matched database and if it doesn't it writes the record to a non-
matched database.
I have the dbstruct coded as:
anArray := DBStruct()
nPos1 := privmstr->(fieldpos("Empnum"))
nPos2 := privmstr->(fieldpos("Ccde"))
nPos3 := privmstr->(fieldpos("Usrid"))
nPos4 := privmstr->(fieldpos("Sysid"))
nPos5 := privmstr-
|
3/26/2010 3:21:59 PM
|
11
|
Mack <mba...@shaw.ca>
|