I prefer to ask the forum... Always the best answersAntonio Linares wrote:Dear Rick,
Code: Select all | Expand
#include "FiveWin.ch" function Main() local cAddress := "258 Shoreline Drive, Columbia, SC 29212" XBrowse( hb_ATokens( cAddress, "," ) ) return nil
Search found 11 matches: splitting
Searched query: splitting
- Thu Nov 16, 2023 11:38 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
- Wed Nov 15, 2023 11:54 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
Very interesting and fascinating.
If you ask "... And fivewin" then the answer is very different: To convert an Excel worksheet containing addresses with columns for Street, City, State, and Zip to a SQL table using Harbour and FiveWin, you can follow these steps:
1. Load the Excel file: Use the ...
If you ask "... And fivewin" then the answer is very different: To convert an Excel worksheet containing addresses with columns for Street, City, State, and Zip to a SQL table using Harbour and FiveWin, you can follow these steps:
1. Load the Excel file: Use the ...
- Wed Nov 15, 2023 11:17 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
... assumes that your addresses are formatted consistently.
harbour
Copy code
FUNCTION ParseAddress(cAddress)
LOCAL aAddress := {}
LOCAL nPos
// Splitting based on the assumption that the format is "Street, City, State ZIP"
nPos := RAT(",", cAddress) // Find the last comma
aAddress[1] := hb_substr ...
harbour
Copy code
FUNCTION ParseAddress(cAddress)
LOCAL aAddress := {}
LOCAL nPos
// Splitting based on the assumption that the format is "Street, City, State ZIP"
nPos := RAT(",", cAddress) // Find the last comma
aAddress[1] := hb_substr ...
- Wed Nov 15, 2023 11:04 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
Rick, I think it has created exactly the program AT() that you posted.
Best regards,
Otto
Best regards,
Otto
- Wed Nov 15, 2023 10:07 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
Otto
I am taking an Excel spreadsheet whos data is taken from a web form. I then have to take that Excel file and write a conversion program that starts at column 1 thru the end column ( whatever ) and take all those values and stuff them into a temp .dbf file. The SQL table has Street,City, State ...
I am taking an Excel spreadsheet whos data is taken from a web form. I then have to take that Excel file and write a conversion program that starts at column 1 thru the end column ( whatever ) and take all those values and stuff them into a temp .dbf file. The SQL table has Street,City, State ...
- Wed Nov 15, 2023 7:42 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
I think we are aging ... having to go back and look at previous code to remember "how we did it".
BTDT ...
BTDT ...
- Wed Nov 15, 2023 7:21 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
... language's syntax.
Features: It offers file inclusion, substitution facilities, and conditional compilation.
Modularity: Harbourino enables splitting complex functions or classes into smaller, manageable files. For example, you can have a separate file for each method of a class, adhering to ...
Features: It offers file inclusion, substitution facilities, and conditional compilation.
Modularity: Harbourino enables splitting complex functions or classes into smaller, manageable files. For example, you can have a separate file for each method of a class, adhering to ...
- Wed Nov 15, 2023 7:07 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
Rick, why searching your notes? Ask ChatGPT:
Additional Details: '
harbour'
:'
Help splitting up a character address string
Postby Rick Lipkin » Tue Nov 14, 2023 9:29 pm
To All
I seem to have lost my ability to substring an Address field into seperate cStreet, cCity, cState and cZip ...
Additional Details: '
harbour'
:'
Help splitting up a character address string
Postby Rick Lipkin » Tue Nov 14, 2023 9:29 pm
To All
I seem to have lost my ability to substring an Address field into seperate cStreet, cCity, cState and cZip ...
- Wed Nov 15, 2023 6:25 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
Antonio .. All
I had to dig out my old dBase\Harbour help file for the correct use of AT() and RAT() but I finially wrote a function I can use to take a full address field and break it into Street, City,State and Zip .. here is the code :
// test.prg
#INCLUDE "FIVEWIN.CH"
Function Main ...
I had to dig out my old dBase\Harbour help file for the correct use of AT() and RAT() but I finially wrote a function I can use to take a full address field and break it into Street, City,State and Zip .. here is the code :
// test.prg
#INCLUDE "FIVEWIN.CH"
Function Main ...
- Tue Nov 14, 2023 9:36 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Re: Help splitting up a character address string
Dear Rick,
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local cAddress := "258 Shoreline Drive, Columbia, SC 29212"
XBrowse( hb_ATokens( cAddress, "," ) )
return nil
- Tue Nov 14, 2023 9:29 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Help splitting up a character address string
- Replies: 10
- Views: 1980
Help splitting up a character address string
To All
I seem to have lost my ability to substring an Address field into seperate cStreet, cCity, cState and cZip variables ...
here is a address field I want to break out into the above fields
cAddress := "258 Shoreline Drive, Columbia, SC 29212"
Please help me with the code to breakout the ...
I seem to have lost my ability to substring an Address field into seperate cStreet, cCity, cState and cZip variables ...
here is a address field I want to break out into the above fields
cAddress := "258 Shoreline Drive, Columbia, SC 29212"
Please help me with the code to breakout the ...