Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.xharbour

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-15-2007, 03:03 AM
colboy
Guest
 
Posts: n/a
Default Visual xHarbour

I'm looking at converting one of my newly converted xHarbour apps, to
use Visual xHarbour. The reason I bought xHarbour was I have an
existing client who has been using one of my applications for nearly
20 years and ceased development as Clipper was becoming a pain on
newer operating systems. xHabour has made given me a mature Clipper
variant, with lots of extensions.

Anyway I'm looking at converting my clients application, and want to
create a Windows GUI that is very similar to their DOS based GUI. I
devised a menuing system that listbox is able to simulate very well,
however I'm trying to find how to select the first item in the list
using code.

It was while doing this that I noticed another problem. It seems to be
possible to enter code that, although being incorrect still allows the
program to compile. Here's an example

METHOD Form1_OnShowWindow( Sender ) CLASS Form1
with object ::listbox1
:addstring("1. .......................Sales Ledger ")
:addstring("2. ....................Purchase Ledger ")
:addstring("3. ...................Order Processing ")
:addstring("4. ......................Stock Control ")
:addstring('5. ................Systems Maintenance ')
:addstring('6. ............Internal Systems Backup ')
:addstring('0. ...............................Exit ')

::listbox1:height=32
::listbox1:height=32+147
:anel1:height=::listbox1:height

::listbox1:itemindexw=0
end

The last line before the end is obviously incorrect, but still
compiles. I also tried itemindex and selected, but this does not fix
my earlier problem. They again compile, but do not provide the
functionality I need.

This is probably my biggest frustration with Visual xHarbour. I've
been programming for in excess of 20 years and can pick up new
languages very easily, but it's usually dependent on good
documentation. The getting started guide is a good beginning, but I
get the feeling a lot of properties are missing.

Colin

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 10-15-2007, 07:32 AM
SEI
Guest
 
Posts: n/a
Default Re: Visual xHarbour


Hello,

[1] I use FormN_onLoad(...) method (look for ONLOAD method in the
form's event list in the Object Manager) whenerver I want to run a
definite code sequence only once, when a window is opened ( the code
sequence within ONSHOW method is executed each time the user presses
the RESTORE button on the system button group of the window, and in
more similar situations too)

[2] I use ::myListBox:SetCurSel( nInitialNr ) to set the default
selection and ::myListBox:GetCurSel() to retrieve the currently
selected item's order number.

Best regards,

Ella

Reply With Quote
  #3 (permalink)  
Old 10-16-2007, 03:56 PM
Ignacio OZ
Guest
 
Posts: n/a
Default Re: Visual xHarbour

Colboy,

Give a chance to Xailer! You will not regret. (for sure).

Ask other people at news://news.xailer.com about their own successful Xailer
stories.

Regards,

--
Ignacio Ortiz de Zúñiga
http://www.xailer.com


"colboy" <colboy@gmail.com> escribió en el mensaje
news:1192417412.175789.95130@i13g2000prf.googlegro ups.com...
> I'm looking at converting one of my newly converted xHarbour apps, to
> use Visual xHarbour. The reason I bought xHarbour was I have an
> existing client who has been using one of my applications for nearly
> 20 years and ceased development as Clipper was becoming a pain on
> newer operating systems. xHabour has made given me a mature Clipper
> variant, with lots of extensions.
>
> Anyway I'm looking at converting my clients application, and want to
> create a Windows GUI that is very similar to their DOS based GUI. I
> devised a menuing system that listbox is able to simulate very well,
> however I'm trying to find how to select the first item in the list
> using code.
>
> It was while doing this that I noticed another problem. It seems to be
> possible to enter code that, although being incorrect still allows the
> program to compile. Here's an example
>
> METHOD Form1_OnShowWindow( Sender ) CLASS Form1
> with object ::listbox1
> :addstring("1. .......................Sales Ledger ")
> :addstring("2. ....................Purchase Ledger ")
> :addstring("3. ...................Order Processing ")
> :addstring("4. ......................Stock Control ")
> :addstring('5. ................Systems Maintenance ')
> :addstring('6. ............Internal Systems Backup ')
> :addstring('0. ...............................Exit ')
>
> ::listbox1:height=32
> ::listbox1:height=32+147
> :anel1:height=::listbox1:height
>
> ::listbox1:itemindexw=0
> end
>
> The last line before the end is obviously incorrect, but still
> compiles. I also tried itemindex and selected, but this does not fix
> my earlier problem. They again compile, but do not provide the
> functionality I need.
>
> This is probably my biggest frustration with Visual xHarbour. I've
> been programming for in excess of 20 years and can pick up new
> languages very easily, but it's usually dependent on good
> documentation. The getting started guide is a good beginning, but I
> get the feeling a lot of properties are missing.
>
> Colin
>



Reply With Quote
  #4 (permalink)  
Old 10-16-2007, 05:05 PM
Randy Howe
Guest
 
Posts: n/a
Default Re: Visual xHarbour

The only thing I have against Xailer is that is geared mainly towards
the Spanish speaking community. That isn't necessarily "bad". There are
lots of Spanish speaking xHarbour users. The developers of Xailer
are apparently Spanish speaking, too! I'm just saying that it becomes
a little harder for one such as I, that doesn't speak Spanish, to use the
product to it's fullest. Not a criticism, just an observation. I hope they
have so much success that they will have the time and money to create
more English documentation and examples. Thanks for listening.

Randy Howe


"Ignacio OZ" <NoName@xailer.com> wrote in message
news:4714e009$0$1340$834e42db@reader.greatnowhere. com...
> Colboy,
>
> Give a chance to Xailer! You will not regret. (for sure).
>
> Ask other people at news://news.xailer.com about their own successful
> Xailer stories.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "colboy" <colboy@gmail.com> escribió en el mensaje
> news:1192417412.175789.95130@i13g2000prf.googlegro ups.com...
>> I'm looking at converting one of my newly converted xHarbour apps, to
>> use Visual xHarbour. The reason I bought xHarbour was I have an
>> existing client who has been using one of my applications for nearly
>> 20 years and ceased development as Clipper was becoming a pain on
>> newer operating systems. xHabour has made given me a mature Clipper
>> variant, with lots of extensions.
>>
>> Anyway I'm looking at converting my clients application, and want to
>> create a Windows GUI that is very similar to their DOS based GUI. I
>> devised a menuing system that listbox is able to simulate very well,
>> however I'm trying to find how to select the first item in the list
>> using code.
>>
>> It was while doing this that I noticed another problem. It seems to be
>> possible to enter code that, although being incorrect still allows the
>> program to compile. Here's an example
>>
>> METHOD Form1_OnShowWindow( Sender ) CLASS Form1
>> with object ::listbox1
>> :addstring("1. .......................Sales Ledger ")
>> :addstring("2. ....................Purchase Ledger ")
>> :addstring("3. ...................Order Processing ")
>> :addstring("4. ......................Stock Control ")
>> :addstring('5. ................Systems Maintenance ')
>> :addstring('6. ............Internal Systems Backup ')
>> :addstring('0. ...............................Exit ')
>>
>> ::listbox1:height=32
>> ::listbox1:height=32+147
>> :anel1:height=::listbox1:height
>>
>> ::listbox1:itemindexw=0
>> end
>>
>> The last line before the end is obviously incorrect, but still
>> compiles. I also tried itemindex and selected, but this does not fix
>> my earlier problem. They again compile, but do not provide the
>> functionality I need.
>>
>> This is probably my biggest frustration with Visual xHarbour. I've
>> been programming for in excess of 20 years and can pick up new
>> languages very easily, but it's usually dependent on good
>> documentation. The getting started guide is a good beginning, but I
>> get the feeling a lot of properties are missing.
>>
>> Colin
>>

>
>



Reply With Quote
  #5 (permalink)  
Old 10-16-2007, 06:53 PM
colboy
Guest
 
Posts: n/a
Default Re: Visual xHarbour

Ignacio

> Give a chance to Xailer! You will not regret. (for sure).
> Ask other people at news://news.xailer.com about their own successful Xailer
> stories.

I have actually played with Xailer and like what I see, however I have
just got my client to pay for xHarbour, so am keen to give VXH a good
workout, as it comes with xHarbour. I'm going to solely concertrate on
converting the first few screens of my existing application from XH to
VXH. I know VHX can do what I want, my main rant was that it's hard
trying to find the stuff I need. I program a lot in VB.NET, Delphi and
Python, to name but a few languages. Once you know the basics,
everything falls into place.

Also I was unable to compile my Xailer application. I have a feeling I
need BCC, even though I don't use it, as I'm using the compiler
(Pelles) that comes with the commercial version of Xharbour.

Still concerned about my original post, where stuff seems to be
compiled acceptable, without error. is this a recognised bug? i.e.
this line ::listbox1:itemindexw=0 where itemindex is not a propery of
Listbox, nor indeed itemindexw.

Colin

Reply With Quote
  #6 (permalink)  
Old 10-17-2007, 03:58 AM
Ron Pinkas
Guest
 
Posts: n/a
Default Re: Visual xHarbour

Colin,

> Still concerned about my original post, where stuff seems to be
> compiled acceptable, without error. is this a recognised bug? i.e.
> this line ::listbox1:itemindexw=0 where itemindex is not a propery of
> Listbox, nor indeed itemindexw.


The xHarbour compiler does not support compile time detection of wrong
properties. Such errors will cause a Run-Time error.



Reply With Quote
  #7 (permalink)  
Old 10-17-2007, 02:27 PM
Ignacio OZ
Guest
 
Posts: n/a
Default Re: Visual xHarbour

Randy,

All the documentation is availlable in English. Maybe some samples use
spanish words for labels, or so, but I believe it should not be a problem.

We have already a lot of happy english spoken users. Just ask on our English
forum and you will see.

Regards,

--
Ignacio Ortiz de Zúñiga
http://www.xailer.com


"Randy Howe" <softcare@charter.net> escribió en el mensaje
news:zb6Ri.20$oA.6@newsfe06.lga...
> The only thing I have against Xailer is that is geared mainly towards
> the Spanish speaking community. That isn't necessarily "bad". There are
> lots of Spanish speaking xHarbour users. The developers of Xailer
> are apparently Spanish speaking, too! I'm just saying that it becomes
> a little harder for one such as I, that doesn't speak Spanish, to use the
> product to it's fullest. Not a criticism, just an observation. I hope
> they
> have so much success that they will have the time and money to create
> more English documentation and examples. Thanks for listening.
>
> Randy Howe
>
>
> "Ignacio OZ" <NoName@xailer.com> wrote in message
> news:4714e009$0$1340$834e42db@reader.greatnowhere. com...
>> Colboy,
>>
>> Give a chance to Xailer! You will not regret. (for sure).
>>
>> Ask other people at news://news.xailer.com about their own successful
>> Xailer stories.
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> http://www.xailer.com
>>
>>
>> "colboy" <colboy@gmail.com> escribió en el mensaje
>> news:1192417412.175789.95130@i13g2000prf.googlegro ups.com...
>>> I'm looking at converting one of my newly converted xHarbour apps, to
>>> use Visual xHarbour. The reason I bought xHarbour was I have an
>>> existing client who has been using one of my applications for nearly
>>> 20 years and ceased development as Clipper was becoming a pain on
>>> newer operating systems. xHabour has made given me a mature Clipper
>>> variant, with lots of extensions.
>>>
>>> Anyway I'm looking at converting my clients application, and want to
>>> create a Windows GUI that is very similar to their DOS based GUI. I
>>> devised a menuing system that listbox is able to simulate very well,
>>> however I'm trying to find how to select the first item in the list
>>> using code.
>>>
>>> It was while doing this that I noticed another problem. It seems to be
>>> possible to enter code that, although being incorrect still allows the
>>> program to compile. Here's an example
>>>
>>> METHOD Form1_OnShowWindow( Sender ) CLASS Form1
>>> with object ::listbox1
>>> :addstring("1. .......................Sales Ledger ")
>>> :addstring("2. ....................Purchase Ledger ")
>>> :addstring("3. ...................Order Processing ")
>>> :addstring("4. ......................Stock Control ")
>>> :addstring('5. ................Systems Maintenance ')
>>> :addstring('6. ............Internal Systems Backup ')
>>> :addstring('0. ...............................Exit ')
>>>
>>> ::listbox1:height=32
>>> ::listbox1:height=32+147
>>> :anel1:height=::listbox1:height
>>>
>>> ::listbox1:itemindexw=0
>>> end
>>>
>>> The last line before the end is obviously incorrect, but still
>>> compiles. I also tried itemindex and selected, but this does not fix
>>> my earlier problem. They again compile, but do not provide the
>>> functionality I need.
>>>
>>> This is probably my biggest frustration with Visual xHarbour. I've
>>> been programming for in excess of 20 years and can pick up new
>>> languages very easily, but it's usually dependent on good
>>> documentation. The getting started guide is a good beginning, but I
>>> get the feeling a lot of properties are missing.
>>>
>>> Colin
>>>

>>
>>

>
>



Reply With Quote
  #8 (permalink)  
Old 10-17-2007, 05:08 PM
Randy Howe
Guest
 
Posts: n/a
Default Re: Visual xHarbour

"Ignacio OZ" <NoName@xailer.com> wrote

> All the documentation is availlable in English. Maybe some samples use
> spanish words for labels, or so, but I believe it should not be a
> problem.


Though it is not a problem, a sample with all english labels might be
a
"good idea" (just for those of us who only speak english). You could
have two samples and label one english and one spanish. - Randy Howe

> We have already a lot of happy english spoken users. Just ask on our
> English forum and you will see.


Yes! Thank you. You are most helpful.
I appreciate your company. Keep up the good work.
I hope many others will be motivated to get your product.
I also hope many others will be motivated to offer products
like yours. - Randy Howe


Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to open Visual Basic editor in sas program Alan Churchill Newsgroup comp.soft-sys.sas 0 08-21-2006 09:31 PM
Re: Interface between Microsoft Visual Basic and SAS Alan Churchill Newsgroup comp.soft-sys.sas 0 05-17-2006 02:29 PM
Re: looking for a book or a paper on VISUAL BASIC and SAS Alan Churchill Newsgroup comp.soft-sys.sas 0 09-11-2005 09:35 PM
SAS VS. 'Visual Basic' Alan Churchill Newsgroup comp.soft-sys.sas 0 11-22-2004 04:52 PM
Visual Basic vs. SAS AF Kenneth Lederman Newsgroup comp.soft-sys.sas 0 11-22-2004 04:42 PM



All times are GMT. The time now is 03:23 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.