Thanks for the assistance Macropod. I didn't think there was any real way to do that programmatically because of unknown lengths. They'll just have to live with the name/address as the last text of a line, regardless of length, with the descriptive right below it. I showed them what I saw as...
It's not Illinois. We do business in a number of states, each one has its own regulations, and you have to be licensed or registered in every state you do business in. Also this business is a small, tiny corner of the larger insurance industry. There are no commercial applications like...
We use Word 2003.
As for 'why'; it is a document that has been approved by a State Insurance department. I have some small amount of leeway for inserting merge fields but "(name and address of...)" must be below the line that I'm filling in with a mergefield. The document was approved that...
Then I 'll have to come up with some other solution.
Anyone else have any ideas? - maybe a way to anchor a textbox? I thought they were only anchorable to a paragraph, but...
Thanks for trying,
Mike.
I think that would be acceptable as long as the paragraph could continue on the same line, like this:
Some long, boring, drawn out legal wording, blah blah blah... the purchaser
shall deliver to the escrow account held at SkipVought 1234 east
main street, etc. the sum of some dollar amount...
Ok, I need what you wrote in your earlier post, but it needs to be inside the paragraph, not as a set of discrete lines. Like this example, but I can't count on the merged field to be at the beginning of a line.
blah blah blah... the purchaser shall deliver to the escrow account held at...
Hi Skip,
That is much closer to what I need to do. One clarification: the underlined name & address needs to be in-line in a paragraph.
More like this:
blah blah blah... the purchaser shall deliver to the escrow account held at SkipVought 1234 east main street, etc. the sum of ... blah...
Skip, you aren't reading what I wrote. I said the merge field IS UNDERLINED PROPERLY. Please reread my query and see if you can address the actual problem. Getting it underlined is NOT the problem.
Mike.
Umm, ok, but that is NOT the problem. I'm apparently not explaining myself well.
1) Press Ctrl-U.
2) Press space twice.
3) Left arrow to position the cursor inside of those 2 spaces.
4) Press Alt-I, F, select Merge field, enter field name.
The merge field is underlined properly. The problem...
Yes I did, Skip. That's not the problem.
When the merge field inserts, which could be 20 chars or 250 chars of data, the descriptive text "(name and address blah blah)" may move because the merged space moved across the page due to other merged fields. I need the "(name and address blah...
I don't know if this is even possible, but I'm putting merge codes in a Word 2003 document and there's descriptive text under an underline I'm inserting the merge codes for, as well as other merge fields in the same paragraph before the text, which means the underlined area may move...
Ok, so I must be bored today... And my reading comprehension is bad... I reread it again, and in this case, recno() may work for you because you're just assigning a field first time:
replace all recordnum with recno() + 1000
That will make the first customer 1001, the second one 1002, etc...
DanyD,
2 things: First, I realized I made a typo above. the replace line should be:
replace CustID with CUSTID->CUSTID + 1;
CUSTID->CustID with CUSTID->CUSTID + 1
Second, I just reread the thread. It looks like you're trying to assign new customer ID's. In that case, use...
What you're asking is a function of the network's OS. I'm not sure dBase has any control over it. You can try to use the Flush() command, but I don't recall if it was working properly in VdB5.7. Also, make sure P2 closes the file before P1 tries to read the data.
Mike.
Danyd,
You reference it just like a field, memory variable or function like date():
?recno() displays the record number
if custid = recno()
do stuff
endif
replace custid with recno()
But, as Aiden suggested, it's better to roll your own. It has the advantage of being able to use any...
For dBase IV you need to code it yourself. The windows versions, starting with VdB 7 have an 'autoincrement' field type that does what you want, but it's not available in dBase IV.
Alternatively you could use the record number, but never, ever pack or sort your data file then.
Mike.
dBase 3 Plus (dBase III+) only knows 80x25. dBase IV knows EGA35, and maybe 43 & 50. dBase 5 for DOS knows VGA50. dBase is up to dBase Plus v 2.7 and is available at www.dbase.com. It's a whole new beast writing for windows, but much of the language is similar.
Mike.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.