--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
--
CdQ
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Can you print file17a value?
Can you add ALIAS MYTEST to the line? Program will not work still but can give more info.
It seems to me that code needs some refactoring ;-)
File17:= p_datapath+[\]+[&p_pjtransfl]+[.dbf]
File17a:= p_indexpath+[\]+[&p_pjtransfl]+[.b01] // mr_no wise , ntx index type
sele 17
use &file17 shared [this line is giving error....]
if !file('&file17a')
inde on mr_no to &file17a
endi
sele 17
use &file17 inde &file17a alia Pjtrans shared
When you do not specify an alias, Harbour and Clipper uses the name of dbf.
Seems that value of file17 is not valid for alias.
Check value, or use an alias.
use (file17) shared alias mydbf
Jos� M. C. Quintas
Dear José M. C. Quintas:
Yes, I did this and IT WORKED
finally! Thanks a lot.....
- Update code to work with any file name adding an valid alias – will work forever
José M. C. Quintas
The minor change I did to the whole piece of coding:
sele 17
use &file17 alia Pjtrans shared ----> using "alias" did the trick... prior to this I was using "use &file17 shared" : though I was using alias but only later...
if !file('&file17a')
inde on mr_no to &file17a
endi
sele 17
use &file17 inde &file17a alia Pjtrans shared ---- > I used "alias" here only, it was needed above also...
So, I may Conclude by saying:
· I'm very happy to announce that finally I'm able to float my EXE built on Harbour 3.0 using default compiler MingW, and IT'S RUNNING!
· The EXE size has doubled!
Clipper exe->08/01/2012 03:43 PM 1,000,448 OldApp.EXE 977KB
Harbour exe->08/14/2012 09:48 PM 2,661,203 NewApp.exe 2.53MB
(SIZE DOES MATTERS?! .... Well its -VE impact not yet encountered..)
· While my "messy" coding escaped from the eyes of Clipper 5.01, but Harbour (not sure if Clipper 5.2/5.3 would have triggered same errors also) architecture stringent enough to pick such "loose" coding and disallowed it - good thing at the end...as my codes became better ( I mean comparatively:) ) to my previous coding technically.
· Somehow, I felt gasping for clear-cut documentation - the one point reference place as far as the Compilation (esp. with MingW) and executable building of a real life application part is concerned. How to compile my own library and linking it to the main application. There should be two examples –
1) Simple compilation script
2) A compilation script from a real-life working application which contains lot of prgs, user's own libraries and 3rd party libs. How to integrate all kind of thing....(with keeping in mind the beginners are from Clipper background and want the "alternatives" to their Clipper compilation make/script files - and please do not consider all to be of "ADVANCED LEVEL CLIPPER PROGRAMMERS" here)
· The Learning Curve - Easy?!
1. I liked the Installer of Harbour, which has made the task of installation and settings easy. This is what I use to like very much about xHarbour when I first had a taste of it, 3yrs back.
2. Because of the help from this GROUP (forum), new members with average skills are managing to survive the initial jolts. I can understand I'm not paying for any services, the developers are not paid here - so its not easy to maintain everything and progress with a pace one would love to. So, this kind of forums/groups are very crucial to make the learning curve easy.
· FINALLY……..
1. The successful building of EXE is my 1st step.....
2. Thanks to all from my bottom heart in helping me in my this TEST RUN....
3. WILL BE BACK (with a new thread!)...............and consider this THREAD CLOSED.
4. Not expecting all to read till this line, hope Klas Engwall you are reading at-least. Thanks for being so supportive...it was really needed & boosted me a lot.
Thanks & Regards,
Swapan Das