Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to match the filed name from another field

Status
Not open for further replies.

tongw

Programmer
Oct 20, 2016
9
US
Hello,

I want to partially match the upload filename from another field.
e.g:

Field1: studentID 0023-ac02

Field2: upload filename will be like this: xyzsh-0023-ac02.ghure (upload filename with location)

And how can I ensure that the upload filename included Field1 on the filename.

Thanks!!


 
You need to build the filename as a string.
With your example it would be something like:

[pre]String ls, ls_value

ls = 'xyzsh-'

ls_value = dw_whatever.getitemstring(row, 'studentID')
If IsNull(ls_value) or ls_value = '' THEN
// cant use it - do something else​
ELSE
ls = ls + ls_value
// now assign to the other field using the SetItem method​
END IF[/pre]

Matt

"Nature forges everything on the anvil of time"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top