By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 781 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

Problem creating an array in VB for Crystal Rpts10

P: 2
I am reading a table in PSQL v9.1. I want to select certain item numbers out to put in an array to use later in my Crystal Reports as separate subreports. I am a newbie to VB, here is what I have so far:

Expand|Select|Wrap|Line Numbers
  1. Dim BOMIems() as String
  2. Dim Index as Number
  3. Index = 0
  4. Dim TableItem as String
  5. TableItem = {ReportRecords.Forkey18_2}
  6.  
  7. Do While    {ReportRecords.Forkey5_4} = "F"
  8.   BOMItems(Index) = TableItem
  9.   Index = Index + 1
Please help me, I am at a loss and I have already used up my deadline.
Thanks anyone!
Jan 21 '08 #1
Share this Question
Share on Google+
3 Replies


Expert 5K+
P: 8,434
Expand|Select|Wrap|Line Numbers
  1. Dim BOMIems() as String
  2. Dim Index as Number
  3. Index = 0
  4. Dim TableItem as String
  5. TableItem = {ReportRecords.Forkey18_2}
  6.  
  7. Do While    {ReportRecords.Forkey5_4} = "F"
  8.   BOMItems(Index) = TableItem
  9.   Index = Index + 1
You didn't tell us what the problem is. I see, though, that you've used two different names for the same array.
Jan 22 '08 #2

P: 2
You didn't tell us what the problem is. I see, though, that you've used two different names for the same array.
Thank you for responding Killer42. The problem is I don't know how to complete my DO WHILE Loop. Also, don't know if my logic is right to
accomplish my results.
Thanks
Jan 22 '08 #3

Expert 5K+
P: 8,434
Thank you for responding Killer42. The problem is I don't know how to complete my DO WHILE Loop. Also, don't know if my logic is right to accomplish my results.
I hope someone else can help with that, as I'm not familiar with Crystal Reports at all.

For example, the {ReportRecords.Forkey18_2} means absolutely nothing to me.
Jan 22 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.