Search found 14 matches: neater

Return to advanced search

Regex to extract numbers/alphabets only

Just wanna share my code that extracts only numbers, alphabets from a string using regex. Irrelevant character will be ignored. Maybe there is a neater code function cExtractAlphabets(cStr)  local a_  := hb_regexAll("[A-Za-z ]", cStr), cRet := "", aChar  if ...
by hua
Tue Jan 17, 2023 4:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Regex to extract numbers/alphabets only
Replies: 1
Views: 207

Re: The neatest way to remove email button from TPreview

...           ADel( :aControls, 10, .t. )            :BtnAdjust()         END         return nil         >  Cool! Way-way neater than what I had in mind. Thanks a bunch Rao Where do I place the code? At every report or just need to call them once from the main prg?
by hua
Tue Apr 30, 2019 2:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: The neatest way to remove email button from TPreview
Replies: 6
Views: 736

Re: understanding OOP returning more than value from a method

... result back. If the result is ever only going to be displayed you could pass it back in a single string. You could use an array, a hash would be neater. A better way would probably be to pass by reference nYears := 0nMonths := 0nDays := 0CalculateAge( dBirth, Date(), @nYears, @nMonths, ...
by xProgrammer
Wed May 05, 2010 9:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: understanding OOP returning more than value from a method
Replies: 14
Views: 3100

Re: Making Descend() available.

Thanks, that's a lot neater.

xProgrammer
by xProgrammer
Thu Jan 21, 2010 9:17 pm
 
Forum: FiveLinux / FiveDroid (Android)
Topic: Making Descend() available.
Replies: 2
Views: 834

Making Descend() available.

... to what functions are or are not available if they are not called specifically in the program but maybe used in a codeblock or macro and what is a neater way to get the linker to include them than insert dummy lines of code into one's program. Up until now I had thought that all standard function ...
by xProgrammer
Thu Jan 21, 2010 1:28 am
 
Forum: FiveLinux / FiveDroid (Android)
Topic: Making Descend() available.
Replies: 2
Views: 834

Re: Intermittant ADO xBrowse error ( thread with Antonio )

... try this and see if you are still getting errors ? VALID ( oBrw:lCreated := .f., oRs:Close(), .t. ) If this works we can suggest a neater modification to XBrowse. Note: If oBrw:lCrated is false, XBrowse does not paint. I have a hunch that this should work. If you still continue ...
by nageswaragunupudi
Wed Jul 22, 2009 4:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4166

I find it cleaner and neater to code it this way: @ 01,10 get oCpo var nCpo pict '9999' of oDlg when lWhen1 valid xFunc(oDlg, oCpo) . . FUNCTION xFunc(oDlg, oGet) MSGINFO('Testing...') lWhen2=.F. ...
by hua
Thu Aug 07, 2008 9:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A bug in a disable get
Replies: 11
Views: 1944

A simple month calendar

http://img66.imageshack.us/img66/2473/screenshotcalendar1yf2.png work in progress but now has slightly neater code and code to increment by any number of months (forward or backwards) and the same for years. That code looks slightly complicated but its to allow for ...
by xProgrammer
Tue Jul 29, 2008 12:56 am
 
Forum: FiveLinux / FiveDroid (Android)
Topic: A simple month calendar
Replies: 2
Views: 976

... is not ideal in that it depends upon the programmer updating the cargo value whenever the length of the array has altered. If there isn't a neater approach adding a new DATA to TBROWSE to hold this value would presumably be preferable. Your thoughts would be appreciated Regards Doug (xProgrammer)
by xProgrammer
Sat Jul 05, 2008 11:38 am
 
Forum: FiveLinux / FiveDroid (Android)
Topic: Problem with TWBrowse Class (linux) using UPDATE.
Replies: 7
Views: 1999

... to use CLASSDATA if you ever only instantiate one instance of the class. You could of course use a PUBLIC variable(s) - but using a CLASS would be neater in my opinion. The above of course assumes that you don't need to stop the user starting up a second instance of your software and being in the ...
by xProgrammer
Sun Jun 15, 2008 11:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to make it impos. in MDI, to open a appl.-part twice ?
Replies: 14
Views: 3380

Hi Being a Linux person these days I can't really help on the GUI side but it might be neater and quicker to use aule->l_mer[3] in place of SubStr(aule->l_mer, 3, 1) and given that you have a series of them look at using (nested) FOR EACHs and ...
by xProgrammer
Mon Jun 09, 2008 10:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Complex array into listbox: some one can help me please ?
Replies: 11
Views: 2665

Thanks

That should make what I want to do so much easier and neater!

Regards
Doug
(xProgrammer)
by xProgrammer
Tue Apr 29, 2008 2:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Can Properties (DATA) be added dynamically to an Object (CLA
Replies: 9
Views: 2789

My Thoughts

... maps to type "D" (length 8, decimals 0). xCHAR is just my single cahracter type - ie shorthand for type "C" length 1 decimals 0. I think its a lot neater and what's more a lot less to type! This post is getting a bit too long so just a bit about documenting code for now. xBase code should be very ...
by xProgrammer
Sun Sep 02, 2007 10:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: [OT]: Doxygen, source documentor
Replies: 4
Views: 1612

Just a suggestion re buildx.sh

... Do you want to run the compiled code? [Y/n]: read yesno if test $yesno = "Y" then ./$1 fi if test $yesno = "y" then ./$1 fi There's probably a neater way to test for Y or y rather than do 2 tests, but just looking quickly I didn't spot it. Also you could probably do something smarter with exit ...
by xProgrammer
Sun Jul 29, 2007 7:41 am
 
Forum: FiveLinux / FiveDroid (Android)
Topic: Just a suggestion re buildx.sh
Replies: 0
Views: 838

Return to advanced search